imod.msw.PrecipitationMapping#

class imod.msw.PrecipitationMapping(precipitation: DataArray)[source]#

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

This class is responsible for the file svat2precgrid.inp.

Parameters:

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

__init__(precipitation: DataArray)[source]#

Methods

__init__(precipitation)

from_imod5_data(imod5_data)

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

get_non_grid_data(grid_names)

This function copies the attributes of a dataset that are scalars, such as options.

get_regrid_methods()

grid_mapping(svat, meteo_grid)

is_regridding_supported()

isel()

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

sel()

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

Write MetaSWAP package to its corresponding fixed format file.

write_dataframe_fixed_width(file, dataframe)

Write dataframe to fixed format file.

Attributes

auxiliary_data_fields

dataset

meteo