rubem.configuration.input_table_files.InputTableFiles

class InputTableFiles(**data)[source]

Bases: BaseModel

Represents the lookup table files used by the model.

Parameters:
  • rainy_days – Path to the rainy days lookup table file.

  • a_i – Path to the impervious area fraction lookup table file.

  • a_o – Path to the open water area fraction lookup table file.

  • a_s – Path to the bare soil area fraction lookup table file.

  • a_v – Path to the vegetated area fraction lookup table file.

  • manning – Path to the Manning’s roughness coefficient lookup table file.

  • bulk_density – Path to the bulk density lookup table file.

  • k_sat – Path to the saturated hydraulic conductivity lookup table file.

  • t_fcap – Path to the field capacity lookup table file.

  • t_sat – Path to the saturated content lookup table file.

  • t_wp – Path to the wilting point lookup table file.

  • rootzone_depth – Path to the rootzone depth lookup table file.

  • kc_min – Path to the minimum crop coefficient lookup table file.

  • kc_max – Path to the maximum crop coefficient lookup table file.

  • lai_max – Path to the maximum leaf area index lookup table file, read per land use class when ModelConstants.leaf_area_interception_max_from_table is True. Defaults to None.

  • validate_input – If True, checks that every file given exists and is not empty. Defaults to True.

Raises:
  • FileNotFoundError – If any of the input lookup table files does not exist.

  • ValueError – If any of the input lookup table files is empty.

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

rainy_days

a_i

a_o

a_s

a_v

manning

bulk_density

k_sat

t_fcap

t_sat

t_wp

rootzone_depth

kc_min

kc_max

lai_max

validate_input

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

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