imod.couplers.metamod.RechargeSvatMapping#

class imod.couplers.metamod.RechargeSvatMapping(svat: DataArray, recharge: Recharge)[source]#

This contains the data to connect MODFLOW 6 recharge cells to MetaSWAP svats.

This class is responsible for the file rchindex2svat.dxc.

Parameters:
  • svat (array of floats (xr.DataArray)) – SVAT units. This array must have a subunit coordinate to describe different land uses.

  • recharge (mf6.Recharge) – Modflow 6 Recharge package to connect to. Note that the recharge rate should be provided as a 2D grid with a (y, x) dimension. MetaModMapping will throw an error if a grid is provided with different dimensions.

__init__(svat: DataArray, recharge: Recharge)[source]#

Methods

__init__(svat, recharge)

isel()

sel()

write(directory, index, svat)

Write mapping to .dxc file.

write_dataframe_fixed_width(file, dataframe)