imod.msw.SprinklingGrid.from_imod5_data#
- classmethod SprinklingGrid.from_imod5_data(imod5_data: Imod5DataDict) Self[source]#
Import sprinkling data from imod5 data artificial recharge grids. Abstraction data for sprinkling is defined in iMOD5 either with grids (IDF) or points (IPF) combined with a grid. This class can handle only the purely grid (IDF) variant. For point data (IPF), use
imod.msw.SprinklingPoints.from_imod5_data()instead.The iMOD5 data is expected to contain three grids for sprinkling:
The
"artificial_recharge"grid contains types which point to the type of abstraction:0: no abstraction
1: groundwater abstraction
2: surfacewater abstraction
The
"artificial_recharge_layer"defines in which layer a groundwater abstraction well should be placed.The
"artificial_recharge_capacity"grid/constant defines the capacity of each groundwater or surfacewater abstraction. This is converted from mm/d to m3/d using the cell area of the SVAT grid.
This is an
1:1mapping: Each grid cell maps to a separate well.- 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, as returned by
imod.formats.prj.open_projectfile_data().- Return type:
Sprinkling package