Package: discharge 1.0.0

discharge: Fourier Analysis of Discharge Data

Computes discrete fast Fourier transform of river discharge data and the derived metrics. The methods are described in J. L. Sabo, D. M. Post (2008) <doi:10.1890/06-1340.1> and J. L. Sabo, A. Ruhi, G. W. Holtgrieve, V. Elliott, M. E. Arias, P. B. Ngor, T. A. Räsänsen, S. Nam (2017) <doi:10.1126/science.aao1053>.

Authors:Samarth Shah [aut, cre], Albert Ruhi [aut], Future H2O [cph]

discharge_1.0.0.tar.gz
discharge_1.0.0.zip(r-4.5)discharge_1.0.0.zip(r-4.4)discharge_1.0.0.zip(r-4.3)
discharge_1.0.0.tgz(r-4.4-any)discharge_1.0.0.tgz(r-4.3-any)
discharge_1.0.0.tar.gz(r-4.5-noble)discharge_1.0.0.tar.gz(r-4.4-noble)
discharge_1.0.0.tgz(r-4.4-emscripten)discharge_1.0.0.tgz(r-4.3-emscripten)
discharge.pdf |discharge.html
discharge/json (API)

# Install 'discharge' in R:
install.packages('discharge', repos = c('https://sbshah10.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.56 score 36 scripts 131 downloads 29 exports 33 dependencies

Last updated 6 years agofrom:c58d359b21. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 27 2024
R-4.5-winOKOct 27 2024
R-4.5-linuxOKOct 27 2024
R-4.4-winOKOct 27 2024
R-4.4-macOKOct 27 2024
R-4.3-winOKOct 27 2024
R-4.3-macOKOct 27 2024

Exports:allstatsannualExtremesannualnoiseasStreamflowcirc.scompare.periodsfft_metricsfftmetricsfilterBaselinefourierAnalysisgetFPExtgetHSAFgetHSAMgetIDIgetIFIgetLSAFgetLSAMgetNAAgetSignalPartsgetTimingHSAMgetTimingLSAMgetTransitionTimeindependentEventslp3Eventsparameters.listprepareBaselineresidplot.extremesigmaHighFlowssigmaLowFlows

Dependencies:backportsbootcheckmateCircStatsclicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclelmommagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Calculate all characteristic stats for a siteallstats
Calculate annual extreme flows.annualExtremes
Annual noise colorannualnoise summary.annualnoise
Check for equal length inputsassert.equal.length
Check 'for.year' argumentassert.for.year
Check for numeric vectorassert.numeric.vector
Create streamflow objectasStreamflow print.streamflow summary.streamflow
Estimate directional statistics for one-sigma eventscirc.s
Compare residual variability across time periodscompare.periods plot.compflows
Etowah River Dataetowah
Discrete Fourier Transform Metricsfft_metrics
Summary of spectral anomolies for a specified year.fftmetrics
Filter the baseline signal for a given time windowfilterBaseline
Find median valuefindMed
Extract seasonal signal from time seriesfourierAnalysis plot.ssignal summary.ssignal
Flood Pulse Extent (FPExt)getFPExt
High Spectral Anomaly Frequency (HSAF)getHSAF
High Spectral Anomaly Mangitude (HSAM)getHSAM
Inter-Draught Interval (IDI)getIDI
Inter-Flood Interval (IFI)getIFI
Low Spectral Anomaly Frequency (LSAF)getLSAF
Low Spectral Anomaly Mangitude (LSAM)getLSAM
Net Annual Anomaly (NAA)getNAA
Signal partsgetSignalParts
Time of occurence of High Spectral Anomaly Magnitude (HSAM)getTimingHSAM
Time of occurence of Low Spectral Anomaly Magnitude (LSAM)getTimingLSAM
Transition TimegetTransitionTime
Independent high- or low-flow eventsindependentEvents
Find 2- and 10-year return levelslp3Events
Calculate all characteristic stats from a list of filesparameters.list
Build baseline signalprepareBaseline
Plot annual extreme residualsresidplot.extreme
Plot events by day of the yearsigmaeventsplot
Estimate catastrophic flow variabilitysigmaHighFlows
Estimate catastrophic flow variabilitysigmaLowFlows
Sycamore Creek Datasycamore