saber.fdc
fdc(flows, steps=101, col_name='Q')
Compute flow duration curve (exceedance probabilities) from a list of flows
Parameters:
Name | Type | Description | Default |
---|---|---|---|
flows |
np.array
|
array of flows |
required |
steps |
int
|
number of steps (exceedance probabilities) to use in the FDC |
101
|
col_name |
str
|
name of the column in the returned dataframe |
'Q'
|
Returns:
Type | Description |
---|---|
pd.DataFrame
|
pd.DataFrame with index 'p_exceed' and columns 'Q' (or col_name) |
Source code in saber/fdc.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
precalc_sfdcs(assign_row, gauge_data, hindcast_zarr)
Compute the scalar flow duration curve (exceedance probabilities) from two flow duration curves
Parameters:
Name | Type | Description | Default |
---|---|---|---|
assign_row |
pd.DataFrame
|
a single row from the assignment table |
required |
gauge_data |
str
|
string path to the directory of observed data |
required |
hindcast_zarr |
str
|
string path to the hindcast streamflow dataset |
required |
Returns:
Type | Description |
---|---|
pd.DataFrame
|
pd.DataFrame with index (exceedance probabilities) and a column of scalars |
Source code in saber/fdc.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
|
sfdc(sim_fdc, obs_fdc)
Compute the scalar flow duration curve (exceedance probabilities) from two flow duration curves
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sim_fdc |
pd.DataFrame
|
simulated flow duration curve |
required |
obs_fdc |
pd.DataFrame
|
observed flow duration curve |
required |
Returns:
Type | Description |
---|---|
pd.DataFrame
|
pd.DataFrame with index (exceedance probabilities) and a column of scalars |
Source code in saber/fdc.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|