imod.msw.SprinklingPoints.from_imod5_data#

classmethod SprinklingPoints.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 point (IPF) variant. For grid data (IDF), use imod.msw.SprinklingGrid.from_imod5_data() instead.

The iMOD5 data is expected to contain one grid (IDF) and one table with points for sprinkling (IPF):

  1. The "artificial_recharge" grid contains a mapping of grid cells to wellids in the point data.

  2. The "artificial_recharge_layer" variable was defined as point data (IPF), this table contains wellids with an abstraction capacity and layer.

  3. The "artificial_recharge_capacity" is ignored as the abstraction capacity is already defined in the point data.

This is an n:1 mapping: multiple grid cells can map to one 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().

Returns:

  • SprinklingPoints package. The art_grid will be only active for the

  • rural landuse (subunit=0). Urban areas (subunit=1) will not have

  • active art_grid cells.