hydroflows.methods.discharge.fluvial_design_events#
Derive fluvial design events from a discharge time series.
- class hydroflows.methods.discharge.fluvial_design_events.FluvialDesignEvents(discharge_nc: Path, event_root: Path = 'data/events/discharge', rps: list[int] | None = None, event_names: list[str] | None = None, wildcard: str = 'event', **params)[source]#
Derive fluvial design events from a discharge time series.
- Parameters:
discharge_nc (Path) – The file path to the discharge time series in NetCDF format.
event_root (Path, optional) – The root folder to save the derived design events, by default “data/events/discharge”.
rps (List[float], optional) – Return periods of the design events, by default [1, 2, 5, 10, 20, 50, 100].
event_names (List[str], optional) – List of event names of the design events, by default “q_event{i}”, where i is the event number.
wildcard (str, optional) – The wildcard key for expansion over the design events, by default “event”.
**params – Additional parameters to pass to the FluvialDesignEvents Params instance. See
fluvial_design_events Params
.
See also
fluvial_design_events Input
fluvial_design_events Output
fluvial_design_events Params
hydromt.stats.extremes
Create a new expand method instance.
- pydantic model hydroflows.methods.discharge.fluvial_design_events.Input[source]#
Input parameters for the
FluvialDesignEvents
method.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.
- Fields:
- field discharge_nc: Path [Required]#
The file path to the discharge time series in NetCDF format which is used to apply EVA and derive design events. This file should contain an index dimension and a time dimension for several (gauge) locations.
The discharge time series can be produced either by the Wflow toolchain (via the
hydroflows.methods.wflow.wflow_update_forcing.WflowBuild
,hydroflows.methods.wflow.wflow_update_forcing.WflowUpdateForcing
, andhydroflows.methods.wflow.wflow_run.WflowRun
methods) or can be directly supplied by the user.When the design events are used in Sfincs using the
hydroflows.methods.sfincs.sfincs_update_forcing.SfincsUpdateForcing
method, the index dimension should correspond to the index of the Sfincs source points, providing the corresponding time series at specific locations.
- pydantic model hydroflows.methods.discharge.fluvial_design_events.Output[source]#
Output parameters for the
FluvialDesignEvents
method.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.
- field event_set_yaml: Annotated[Path, AfterValidator(func=filedir_validator)] [Required]#
The path to the event set yml file that contains the derived fluvial event configurations. This event set can be created from a dictionary using the
hydroflows.methods.events.EventSet
class.
- field event_yaml: Annotated[Path, AfterValidator(func=filedir_validator)] [Required]#
The path to the event description file, see also
hydroflows.methods.events.Event
.
- pydantic model hydroflows.methods.discharge.fluvial_design_events.Params[source]#
Parameters for the
FluvialDesignEvents
method.See also
hydromt.stats.extremes
For more details on the event selection, EVA and peak hydrographs using HydroMT.
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.
- Fields:
- field ev_type: Literal['BM', 'POT'] = 'BM'#
Method to select events/peaks. Valid options are ‘BM’ for block maxima or ‘POT’ for Peak over threshold.
- field event_names: <lambda>, json_schema_input_type=PydanticUndefined)] | None = None#
List of event names derived from the design events.
- field event_root: Annotated[Path, AfterValidator(func=outputdirpath_validator)] [Required]#
“Root folder to save the derived design events.
- field index_dim: str = 'Q_gauges'#
Index dimension of the input time series provided in
Input
class.
- field min_sample_perc: int = 80#
Minimum sample percentage in a valid block. Peaks of invalid bins are set to NaN
- field n_peaks: int = None#
Number of largest peaks to get hydrograph. If None (default) all peaks are used.
- field plot_fig: bool = True#
Determines whether to plot figures, including the derived design hydrograph per location and return period, as well as the EVA fits.
- field rps: <lambda>, json_schema_input_type=PydanticUndefined)] [Required]#
Return periods of of design events.