imod.msw.AnnualCropFactors#

class imod.msw.AnnualCropFactors(soil_cover: DataArray, leaf_area_index: DataArray, interception_capacity: DataArray, vegetation_factor: DataArray, interception_factor: DataArray, bare_soil_factor: DataArray, ponding_factor: 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: DataArray, leaf_area_index: DataArray, interception_capacity: DataArray, vegetation_factor: DataArray, interception_factor: DataArray, bare_soil_factor: DataArray, ponding_factor: 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.