Skip to main content

event_errors

Function event_errors 

Source
pub fn event_errors(
    obs: &[f64],
    sim: &[f64],
    area_km2: f64,
    dt_h: f64,
) -> GbtEventErrors
Expand description

Compute the GB/T 22482-2008 event errors for one flood.

area_km2 is the basin drainage area; dt_h the time-step in hours. Both are needed to convert the discharge hydrograph to runoff depth (mm). Returns zeros (the Default value) when any input is empty or non-positive.