imod.msw.EvapotranspirationMapping#

class imod.msw.EvapotranspirationMapping(evapotranspiration: DataArray)[source]#

This contains the data to connect evapotranspiration grid cells to MetaSWAP svats. The evapotranspiration grid does not have to be equal to the metaswap grid: connections between the evapotranspiration cells to svats will be established using a nearest neighbour lookup.

This class is responsible for the file svat2etrefgrid.inp.

Parameters:

evapotransporation (array of floats (xr.DataArray)) – Describes the evapotransporation data. The extend of the grid must be larger than the MetaSvap grid. The data must also be coarser than the MetaSvap grid.

__init__(evapotranspiration: DataArray)[source]#

Methods

__init__(evapotranspiration)

clip_box([time_min, time_max, x_min, x_max, ...])

Clip a package by a bounding box (time, y, x).

from_imod5_data(imod5_data)

Construct a MetaSWAP EvapotranspirationMapping package from iMOD5 data in the CAP package, loaded with the imod.formats.prj.open_projectfile_data() function.

get_regrid_methods()

Returns the default regrid methods for this package.

regrid_like(target_grid, regrid_cache[, ...])

Returns a deepcopy of this instance, as regridding this package is irrelevant: The meteo data is not on model grid and the mapping is determined upon writing.

write(directory, index, svat, mf6_dis, mf6_well)

Write MetaSWAP package to its corresponding fixed format file.

Attributes

auxiliary_data_fields

dataset