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, ...)- 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, target_dis)- Construct a MetaSWAP GridData package from iMOD5 data in the CAP package, loaded with the - imod.formats.prj.open_projectfile_data()function.- Generate index array and svat grid to be used on other packages. - Returns the default regrid methods for this package. - regrid_like(target_grid, regrid_cache[, ...])- Creates a package of the same type as this package, based on another discretization. - write(directory, index, svat, mf6_dis, mf6_well)- Write MetaSWAP package to its corresponding fixed format file. - Attributes - auxiliary_data_fields- dataset