wolfhece.hydrology.Internal_variables
Module Contents
- class wolfhece.hydrology.Internal_variables.Internal_Variable[source]
Class for managing internal variables in hydrological models.
- get_time_serie(directory, prefix_file: str = '', interval: tuple[datetime.datetime, datetime.datetime] | None = None) tuple[numpy.ndarray, numpy.ndarray] [source]
Get the time series of the internal variable.
- Parameters:
interval – Optional interval for the time series.
- Returns:
Time series of the internal variable.
- get_filename(directory: str, prefix: str = '') tuple[str, str] [source]
Get the filename of the internal variable.
- Parameters:
directory – Directory where the file is located.
prefix – Prefix for the filename.
- Returns:
Tuple containing the name of the file only and the full path of the internal variable.
- class wolfhece.hydrology.Internal_variables.Param_to_Activate(key: str = '', group: str = '', file: str = '', all_variables: list[Internal_Variable] = [])[source]
Class for managing parameters to activate in hydrological models.
- all_variables: list[Internal_Variable][source]
- add_variable(variable: Internal_Variable | list[Internal_Variable])[source]
Add one or a list of internal variable(s) to the list of variables.
- activate(directory: str, prefix_file: str = '', type_of_var: int = ALL_VAR)[source]
Activate the parameters for the internal variables.
- deactivate(directory: str, prefix_file: str = '')[source]
Deactivate the parameters for the internal variables.
- get_iv_timeseries(directory: str, prefix_file: str = '', interval: tuple[datetime.datetime, datetime.datetime] | None = None, type_of_var: int = ALL_VAR) dict[str, numpy.ndarray] [source]
Get the time series of the internal variables.
- Parameters:
directory – Directory where the file is located.
prefix_file – Prefix for the filename.
interval – Optional interval for the time series.
- Returns:
List of tuples containing the time and internal variable data.
- class wolfhece.hydrology.Internal_variables.Group_to_Activate(name: str = '', all_params: list[Param_to_Activate] = [])[source]
Class for managing groups of parameters to activate in hydrological models.
- all_params: list[Param_to_Activate][source]
- activate_all(directory: str, prefix_file: str = '', type_of_var: int = ALL_VAR)[source]
Activate all parameters in the group.
- deactivate_all(directory: str, prefix_file: str = '')[source]
Deactivate all parameters in the group.
- get_all_iv_timeseries(directory: str, prefix_file: str = '', interval: tuple[datetime.datetime, datetime.datetime] | None = None, type_of_var: int = ALL_VAR) dict[str, numpy.ndarray] [source]
Get the time series of all internal variables in the group.
- Parameters:
directory – Directory where the file is located.
prefix_file – Prefix for the filename.
interval – Optional interval for the time series.
- Returns:
List of tuples containing the time and internal variable data.