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
After #961 is fixed, we can expand this method for the BoundaryCondition package to do:
Test if planar grid included (no layer)
Allocate cells (for RCH, GHB, RIV, DRN)
Distribute conductances (for GHB, RIV, DRN)
This can be done in function with something like maybe_allocate_to_layers()
classBoundaryCondition:
...
@classmethoddeffrom_imod5_package(cls, dis_pkg, npf_pkg, **data):
# target grid is idomaintarget=dis_pkg.dataset["idomain"]
# Regrid to one consistent datasetdataset=cls._regrid_like(target, **data)
# Allocate to layers, if has planar gridsdataset_allocated=maybe_allocate_to_layers(dataset, dis_pkg, npf_pkg)
returncls(**dataset_allocated)
...
The text was updated successfully, but these errors were encountered:
JoerivanEngelen
changed the title
Add classmethod to convert BoundaryCondition data
Add classmethod to construct BoundaryCondition from iMOD5 data
Apr 29, 2024
After #961 is fixed, we can expand this method for the
BoundaryCondition
package to do:This can be done in function with something like
maybe_allocate_to_layers()
The text was updated successfully, but these errors were encountered: