imod.mf6.GroundwaterFlowModel.from_imod5_data#

classmethod GroundwaterFlowModel.from_imod5_data(imod5_data: dict[str, dict[str, DataArray | UgridDataArray]], period_data: dict[str, list[datetime]], allocation_options: SimulationAllocationOptions, distributing_options: SimulationDistributingOptions, times: list[datetime], regridder_types: dict[str, RegridMethodType]) GroundwaterFlowModel[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

  • time_min (datetime) – Begin-time of the simulation.

  • time_max (datetime) – End-time of the simulation.

  • regridder_types (dict[str, RegridMethodType]) – the key is the package name. The value is a subclass of RegridMethodType.

Returns:

  • A GWF model containing the packages that could be imported form IMOD5. Users must still

  • add the OC package to the model.