imod.msw.Infiltration#

class imod.msw.Infiltration(infiltration_capacity: xarray.core.dataarray.DataArray, downward_resistance: xarray.core.dataarray.DataArray, upward_resistance: xarray.core.dataarray.DataArray, bottom_resistance: xarray.core.dataarray.DataArray, extra_storage_coefficient: xarray.core.dataarray.DataArray)[source]#

This contains the infiltration data.

This class is responsible for the file infi_svat.inp

Parameters
  • infiltration_capacity (array of floats (xr.DataArray)) – Describes the infiltration capacity of SVAT units. This array must have a subunit coordinate to describe different land uses.

  • downward_resistance (array of floats (xr.DataArray)) – Describes the downward resisitance of SVAT units. Set to -9999.0 to make MetaSWAP ignore this resistance. This array must not have a subunit coordinate.

  • upward_resistance (array of floats (xr.DataArray)) – Describes the upward resistance of SVAT units. Set to -9999.0 to make MetaSWAP ignore this resistance. This array must not have a subunit coordinate.

  • bottom_resistance (array of floats (xr.DataArray)) – Describes the infiltration capacity of SVAT units. Set to -9999.0 to make MetaSWAP ignore this resistance. This array must not have a subunit coordinate.

  • extra_storage_coefficient (array of floats (xr.DataArray)) – Extra storage coefficient of phreatic layer. This array must not have a subunit coordinate.

  • active (array of bools (xr.DataArray)) – Describes whether SVAT units are active or not. This array must not have a subunit coordinate.

__init__(infiltration_capacity: xarray.core.dataarray.DataArray, downward_resistance: xarray.core.dataarray.DataArray, upward_resistance: xarray.core.dataarray.DataArray, bottom_resistance: xarray.core.dataarray.DataArray, extra_storage_coefficient: xarray.core.dataarray.DataArray)[source]#

Methods

__init__(infiltration_capacity, ...)

isel()

sel()

write(directory, index, svat)

Write MetaSWAP package to its corresponding fixed format file.

write_dataframe_fixed_width(file, dataframe)

Write dataframe to fixed format file.