imod.msw.GridData#

class imod.msw.GridData(area: DataArray, landuse: DataArray, rootzone_depth: DataArray, surface_elevation: DataArray, soil_physical_unit: DataArray, active: DataArray)[source]#

This contains the grid data of MetaSWAP.

This class is responsible for the file area_svat.inp

Parameters:
  • area (array of floats (xr.DataArray)) – Describes the area of SVAT units. This array must have a subunit coordinate to describe different landuses.

  • landuse (array of integers (xr.DataArray)) – Describes the landuse type of SVAT units. This array must have a subunit coordinate.

  • rootzone_depth (array of floats (xr.DataArray)) – Describes the rootzone depth of SVAT units. This array must have a subunit coordinate to describe different landuses.

  • surface_elevation (array of floats (xr.DataArray)) – Describes the surface elevation of SVAT units. This array must not have a subunit coordinate.

  • soil_physical_unit (array of integers (xr.DataArray)) – Describes the physical parameters of SVAT units. These parameters will be looked up in a table according to the given integers. 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__(area: DataArray, landuse: DataArray, rootzone_depth: DataArray, surface_elevation: DataArray, soil_physical_unit: DataArray, active: DataArray)[source]#

Methods

__init__(area, landuse, rootzone_depth, ...)

generate_index_array()

Generate index arrays to be used on other packages

get_non_grid_data(grid_names)

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

get_regrid_methods()

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