rubem.configuration.model_constants.ModelConstants

class ModelConstants(**data)[source]

Bases: BaseModel

Constants of the model.

Parameters:
  • fraction_photo_active_radiation_max – Maximum fraction of photosynthetically active radiation [-].

  • fraction_photo_active_radiation_min – Minimum fraction of photosynthetically active radiation [-].

  • leaf_area_interception_max – Maximum leaf area index [-].

  • leaf_area_interception_max_from_table – Whether the maximum leaf area index is read per land use class from the lai_max lookup table instead of leaf_area_interception_max. Defaults to False.

  • impervious_area_interception – Impervious area interception [mm].

Raises:

ValueError – If a value is outside the configured range, the FPAR bounds are not 0 < min < max < 1, or the maximum leaf area index is not positive.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Methods

Attributes

fraction_photo_active_radiation_max

fraction_photo_active_radiation_min

leaf_area_interception_max

leaf_area_interception_max_from_table

impervious_area_interception

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].