nwm_metrics.event_metric_functions#
Functions to compute event-based metrics.
- Functions:
identify_events: Conduct first-round event detection using hydrotools.events.event_detection.
separate_compound_events: Separate compound/multi-peak events into single-peak events.
pair_events: One-to-one pairing of observed and model events with optional virtual events.
compute_event_metrics: Compute event-based metrics given paired observed and model events.
preprocess_series: Resample to hourly and interpolate short gaps.
split_into_valid_chunks: Split time series into continuous NaN-free chunks.
plot_event_timeseries: Plot observed and simulated streamflow time series with event peak markers.
validate_events: Validate event chronology and non-overlap.
event_based_metrics: Compute event-based metrics: PKBIAS, PKTE, EVBIAS. Optionally, plot time series with event markers.
get_event_peaks: Get observed and modeled event peaks.
Functions
Compute event-based metrics given paired observed and model events. |
|
Compute event-based metrics: PKBIAS, PKTE, EVBIAS. |
|
Get observed and modeled event peaks. |
|
Conduct first-round event detection using hydrotools.events.event_detection. |
|
Merge events shorter than the minimum duration with the nearest neighboring event. |
|
One-to-one pairing of observed and model events with optional virtual events. |
|
Plot observed and simulated streamflow time series with event peak markers. |
|
Resample to hourly and interpolate short gaps. |
|
Separate compound/multi-peak events into single-peak events. |
|
Split time series into continuous NaN-free chunks. |
|
Validate event chronology and non-overlap. |