imod.mf6.Recharge.from_imod5_data#
- classmethod Recharge.from_imod5_data(imod5_data: dict[str, dict[str, ~xarray.core.dataarray.DataArray | ~xugrid.core.wrap.UgridDataArray]], target_dis: ~imod.mf6.dis.StructuredDiscretization, regridder_types: ~imod.mf6.regrid.regrid_schemes.RechargeRegridMethod | None = None, regrid_cache: ~imod.mf6.utilities.regrid.RegridderWeightsCache = <imod.mf6.utilities.regrid.RegridderWeightsCache object>) Recharge [source]#
Construct an rch-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.target_dis (GridDataArray) – The discretization package for the simulation. Its grid does not need to be identical to one of the input grids.
regridder_types (RechargeRegridMethod, optional) – Optional dataclass with regridder types for a specific variable. Use this to override default regridding methods.
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.
- Return type:
Modflow 6 rch package.