Description Usage Arguments Details Value See Also Examples
View source: R/calculate_fdc.R
CalcFdcSpline
generates a spline fit function for a flow duration
curve.
1 | CalcFdcSpline(strDf, strCol = "q_cms")
|
strDf |
The streamflow time series dataframe (e.g., output from
|
strCol |
The name of the column containing the streamflow values (DEFAULT="q_cms"). |
CalcFdcSpline
reads the percent exceedances generated by
CalcFdc
and outputs a fitted spline function useful for
plotting or estimating flow at specified exceedance thresholds (e.g., 20%
exceedance probability).
A spline function fitted to flow (y) vs. flow exceedance probabilities (x).
Other flowDurationCurves: CalcFdc
,
PlotFdcCompare
, PlotFdc
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Take a time series of observed 5-minute streamflow values for Fourmile
## Creek (stored in the dataframe obsStr5min.fc in the column "q_cms") that
## has already been processed through "CalcFdc" (so also contains a column
## named "q_cms.fdc") and return a spline fit function.
## Not run:
fdc.obsStr5min.fc <- CalcFdcSpline(obsStr5min.fc, "q_cms")
## Use the spline function to estimate the flow value that is exceeded 20% of the time.
fdc.obsStr5min.fc(0.2)
> 0.72
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.