-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #1313 recharge from imod5 cap data #1315
Issue #1313 recharge from imod5 cap data #1315
Conversation
This reverts commit c520599.
Quality Gate passedIssues Measures |
@@ -330,6 +330,9 @@ def from_imod5_data( | |||
wel_key, imod5_data, times | |||
) | |||
|
|||
if "cap" in imod5_keys: | |||
result["msw-rch"] = Recharge.from_imod5_cap_data(imod5_data) # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would reconsider the place you put you converter code. The Recharge package now needs to now about the imod5 model. What would happen if we add another converter e.g. flopy? Then mf6 module also needs to know about that.
I would recommend moving all the converter code to a separate module. And in that module the code then knows about the imod5 data/packages and the mf6 data/packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but it would be too large of a task to fix in this PR. I created a separate issue for this: #1319
8461d63
into
issue_#1260_from_imod5_data_metaswap
Fixes #1313
Description
Construct an rch-package from iMOD5 data in the CAP package, loaded with the
open_projectfile_data
function. Package isused to couple MODFLOW6 to MetaSWAP models. Active cells will have a recharge rate of 0.0.
At the moment, MetaSWAP can only be coupled to the first layer, as this is also the case for
primod
. iMOD Coupler these days supports coupling to other layers as well, butprimod
doesn't. Picking this up for iMOD Python andprimod
is worthy a separate story.In detail:
Recharge.from_imod5_cap_data
class method, to construct an empty Recharge package with 0.0 rate.GridData
helper functions tomsw/utilities/imod5_converter.py
, so that they can be reused.Checklist
Issue #nr
, e.g.Issue #737