imod.mf6.Modflow6Simulation.from_imod5_data#
- classmethod Modflow6Simulation.from_imod5_data(imod5_data: dict[str, dict[str, DataArray | UgridDataArray]], period_data: dict[str, dict[str, DataArray | UgridDataArray]], allocation_options: SimulationAllocationOptions, distributing_options: SimulationDistributingOptions, times: list[datetime], regridder_types: dict[str, RegridMethodType] = {}) Modflow6Simulation [source]#
Imports a GroundwaterFlowModel (GWF) from the data in an IMOD5 project file. It adds the packages for which import from imod5 is supported. Some packages (like OC) must be added manually later.
- Parameters:
imod5_data (dict[str, dict[str, GridDataArray]]) – dictionary containing the arrays mentioned in the project file as xarray datasets, under the key of the package type to which it belongs
allocation_options (SimulationAllocationOptions) – object containing the allocation options per package type. If you want a package to have a different allocation option, then it should be imported separately
distributing_options (SimulationDistributingOptions) – object containing the conductivity distribution options per package type. If you want a package to have a different allocation option, then it should be imported separately
times (list[datetime]) – time discretization of the model to be imported.
regridder_types (dict[str, RegridMethodType]) – the key is the package name. The value is the RegridMethodType object containing the settings for regridding the package with the specified key