imod.mf6.GeneralHeadBoundary.from_imod5_data#

classmethod GeneralHeadBoundary.from_imod5_data(key: str, imod5_data: dict[str, dict[str, ~xarray.core.dataarray.DataArray | ~xugrid.core.wrap.UgridDataArray]], period_data: dict[str, list[~datetime.datetime]], target_dis: ~imod.mf6.dis.StructuredDiscretization, target_npf: ~imod.mf6.npf.NodePropertyFlow, time_min: ~datetime.datetime, time_max: ~datetime.datetime, allocation_option: ~imod.prepare.topsystem.allocation.ALLOCATION_OPTION, distributing_option: ~imod.prepare.topsystem.conductance.DISTRIBUTING_OPTION, regridder_types: ~imod.util.regrid_method_type.RegridMethodType | None = None, regrid_cache: ~imod.mf6.utilities.regrid.RegridderWeightsCache = <imod.mf6.utilities.regrid.RegridderWeightsCache object>) GeneralHeadBoundary[source]#

Construct a GeneralHeadBoundary-package from iMOD5 data, loaded with the imod.formats.prj.open_projectfile_data() function.

Note

The method expects the iMOD5 model to be fully 3D, not quasi-3D.

Parameters:
  • imod5_data (dict) – Dictionary with iMOD5 data. This can be constructed from the imod.formats.prj.open_projectfile_data() method.

  • period_data (dict) – Dictionary with iMOD5 period data. This can be constructed from the imod.formats.prj.open_projectfile_data() method.

  • target_dis (StructuredDiscretization package) – The grid that should be used for the new package. Does not need to be identical to one of the input grids.

  • target_npf (NodePropertyFlow package) – The conductivity information, used to compute GHB flux

  • allocation_option (ALLOCATION_OPTION) – allocation option.

  • time_min (datetime) – Begin-time of the simulation. Used for expanding period data.

  • time_max (datetime) – End-time of the simulation. Used for expanding period data.

  • distributing_option (dict[str, DISTRIBUTING_OPTION]) – distributing option.

  • regrid_cache (RegridderWeightsCache, optional) – stores regridder weights for different regridders. Can be used to speed up regridding, if the same regridders are used several times for regridding different arrays.

  • regridder_types (RegridMethodType, optional) – Optional dataclass with regridder types for a specific variable. Use this to override default regridding methods.

Return type:

A Modflow 6 GeneralHeadBoundary packages.