ww_wyUSGS {whitewater} | R Documentation |
Water Year Stats (USGS)
Description
This function uses the results of the ww_dvUSGS object to generate mean, maximum, median, standard deviation and some normalization methods (drainage area, scaled by log and standard deviation) per water year.
Usage
ww_wyUSGS(procDV, sites = NULL, parallel = FALSE, verbose = TRUE, ...)
Arguments
procDV |
A previously created ww_dvUSGS object. |
sites |
A |
parallel |
|
verbose |
|
... |
arguments to pass on to future_map and/or ww_dvUSGS. |
Value
A tibble
filtered by water year with added meta-data.
Note
If a previously created ww_dvUSGS object is not used then the user needs to
provide a sites
vector. This will run ww_dvUSGS in the background.
Examples
## Not run:
library(whitewater)
yaak_river_dv <- ww_dvUSGS('12304500',
parameter_cd = '00060',
wy_month = 10)
yaak_river_wy <- ww_wyUSGS(yaak_river_dv)
#parallel
#get sites
huc17_sites <- dataRetrieval::whatNWISdata(huc = 17,
siteStatus = 'active',
service = 'dv',
parameterCd = '00060')
library(future)
#need to call future::plan()
plan(multisession(workers = availableCores()-1))
pnw_dv <- ww_dvUSGS(huc17_sites$site_no,
parameter_cd = '00060',
wy_month = 10,
parallel = TRUE)
pnw_wy <- ww_wyUSGS(pnw_dv,
parallel = TRUE)
## End(Not run)
[Package whitewater version 0.1.3 Index]