You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each iMOD5 river/drain system needs to become a separate package
Add classmethod to Package which can initiate a new package.
In pseudocode:
classPackage:
...
@classmethoddeffrom_imod5_package(cls, dis_pkg, **data):
# target grid is idomaintarget=dis_pkg.dataset["idomain"]
# Regrid to one consistent datasetdataset=cls._regrid_like(target, **data)
returncls(**dataset_allocated)
...
For the Structured Discretization, the target grid is the smallest grid in the package.
This is picked up in #964
Therefore the method needs to be overloaded:
classStructuredDiscretization:
...
@classmethoddeffrom_imod5_package(cls, **data):
# Find most fine-grained gridsize in data to regrid to# Clip to smallest extenttarget=find_smallest_grid(data)
# Regrid to one consistent datasetdataset=cls._regrid_like(target, **data)
# Add logic to prepare the dataset in the following way here:# IBOUND < 0 -> IDOMAIN = 0# TOP 3D -> TOP 2D# Thickness <0 -> IDOMAIN = -1returncls(**dataset)
further refinement 06-05
This issue focusses on packages that are in the Flow model, and that are not boundary conditions, and that contain grid -data (unlike the buoyancy package for example). This means sto, npf and ic. But npf was covered in a previous issue, so for this one it's sto and ic. for this issue.
The text was updated successfully, but these errors were encountered:
Fixes#961
# Description
implements importing from a imod5 project file for storage and initial
conditions.
# Checklist
- [X] Links to correct issue
- [ ] Update changelog, if changes affect users
- [X] PR title starts with ``Issue #nr``, e.g. ``Issue #737``
- [X] Unit tests were added
- [ ] **If feature added**: Added/extended example
---------
Co-authored-by: Joeri van Engelen <[email protected]>
The iMOD5 data model has the following peculiarities we need to deal with:
Good to know:
For iMOD Python this requires the following work:
Add classmethod to Package which can initiate a new package.
In pseudocode:
For the Structured Discretization, the target grid is the smallest grid in the package.
This is picked up in #964
Therefore the method needs to be overloaded:
further refinement 06-05
This issue focusses on packages that are in the Flow model, and that are not boundary conditions, and that contain grid -data (unlike the buoyancy package for example). This means sto, npf and ic. But npf was covered in a previous issue, so for this one it's sto and ic. for this issue.
The text was updated successfully, but these errors were encountered: