imod.msw.AnnualCropFactors#

class imod.msw.AnnualCropFactors(soil_cover: xarray.core.dataarray.DataArray, leaf_area_index: xarray.core.dataarray.DataArray, interception_capacity: xarray.core.dataarray.DataArray, vegetation_factor: xarray.core.dataarray.DataArray, interception_factor: xarray.core.dataarray.DataArray, bare_soil_factor: xarray.core.dataarray.DataArray, ponding_factor: xarray.core.dataarray.DataArray)[source]#

For each vegetation type specify a yearly trend in vegetation factors and interception characteristics. These are used if WOFOST is not used.

This class is responsible for the file fact_svat.inp.

Parameters
  • soil_cover (array of floats (xr.DataArray)) – Soil cover in m2/m2. Must have a “vegetation_index” and “day_of_year” a coordinates.

  • leaf_area_index (array of floats (xr.DataArray)) – Leaf area index in m2/m2. Must have a “vegetation_index” and “day_of_year” a coordinates.

  • interception_capacity (array of floats (xr.DataArray)) – Interception capacity in m3/m2. Must have a “vegetation_index” and “day_of_year” a coordinates.

  • vegetation_factor (array of floats (xr.DataArray)) – Vegetation factor. Must have a “vegetation_index” and “day_of_year” a coordinates.

  • interception_factor (array of floats (xr.DataArray)) – Interception evaporation factor. Must have a “vegetation_index” and “day_of_year” a coordinates.

  • bare_soil_factor (array of floats (xr.DataArray)) – Bare soil evaporation factor. Must have a “vegetation_index” and “day_of_year” a coordinates.

  • ponding_factor (array of floats (xr.DataArray)) – Ponding factor. Must have a “vegetation_index” and “day_of_year” a coordinates.

__init__(soil_cover: xarray.core.dataarray.DataArray, leaf_area_index: xarray.core.dataarray.DataArray, interception_capacity: xarray.core.dataarray.DataArray, vegetation_factor: xarray.core.dataarray.DataArray, interception_factor: xarray.core.dataarray.DataArray, bare_soil_factor: xarray.core.dataarray.DataArray, ponding_factor: xarray.core.dataarray.DataArray)[source]#

Methods

__init__(soil_cover, leaf_area_index, ...)

isel()

sel()

write(directory, index, svat)

Write MetaSWAP package to its corresponding fixed format file.

write_dataframe_fixed_width(file, dataframe)

Write dataframe to fixed format file.