imod.mf6.NodePropertyFlow.from_imod5_data#
- classmethod NodePropertyFlow.from_imod5_data(imod5_data: dict[str, dict[str, ~xarray.core.dataarray.DataArray | ~xugrid.core.wrap.UgridDataArray]], target_grid: ~xarray.core.dataarray.DataArray | ~xugrid.core.wrap.UgridDataArray, regridder_types: ~imod.mf6.regrid.regrid_schemes.NodePropertyFlowRegridMethod | None = None, regrid_cache: ~imod.mf6.utilities.regrid.RegridderWeightsCache = <imod.mf6.utilities.regrid.RegridderWeightsCache object>) NodePropertyFlow [source]#
Construct an npf-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_grid (GridDataArray) – The grid that should be used for the new package. Does not need to be identical to one of the input grids.
regridder_types (RegridMethodType, 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 npf package.