Package: nwsrfsr 1.0.2

nwsrfsr: NWS Hydrology Models: SAC-SMA, SNOW17, UH, CONSUSE, CHANLOSS

Interface to the National Weather Service operational hydrology models, Sacramento Soil Moisture Accounting (SAC-SMA), Snow Accumulation and Ablation (SNOW17). Also provides an interface to the unit hydrograph routing model (UH), consumptive use (CONSUSE) and channel loss/gain modules (CHANLOSS). The Fortran code used in this package is considered "legacy" and is not supported officially by NWS, but it should not have any significant differences from current operational models.

Authors:Cameron Bracken [aut, cre], Geoffrey Walters [aut], Eric Anderson [ctb], George F. Smith [ctb], Janice M. Lewis [ctb], John E. Pask [ctb], Ondrej Certik [ctb], John Burkhardt [ctb], National Oceanic and Atmospheric Administration [cph], Battelle Memorial Institute [cph]

nwsrfsr_1.0.2.tar.gz
nwsrfsr_1.0.2.zip(r-4.7)nwsrfsr_1.0.2.zip(r-4.6)nwsrfsr_1.0.2.zip(r-4.5)
nwsrfsr_1.0.2.tgz(r-4.6-x86_64)nwsrfsr_1.0.2.tgz(r-4.6-arm64)nwsrfsr_1.0.2.tgz(r-4.5-x86_64)nwsrfsr_1.0.2.tgz(r-4.5-arm64)
nwsrfsr_1.0.2.tar.gz(r-4.7-arm64)nwsrfsr_1.0.2.tar.gz(r-4.7-x86_64)nwsrfsr_1.0.2.tar.gz(r-4.6-arm64)nwsrfsr_1.0.2.tar.gz(r-4.6-x86_64)
nwsrfsr_1.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
nwsrfsr/json (API)

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

Bug tracker:https://github.com/noaa-nwrfc/nwsrfs-hydro-models/issues

Uses libs:
  • fortran– Runtime library for GNU Fortran applications
Datasets:

On CRAN:

Conda:

fortranglibc

1.70 score 4 scripts 26 exports 0 dependencies

Last updated from:c54da901fd. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK206
linux-devel-x86_64OK199
source / vignettesOK198
linux-release-arm64OK197
linux-release-x86_64OK197
macos-release-arm64OK168
macos-release-x86_64OK502
macos-oldrel-arm64OK136
macos-oldrel-x86_64OK397
windows-develOK185
windows-releaseOK182
windows-oldrelOK166
wasm-releaseOK103

Exports:adc3adjustqadjustq_load_examplechanlossconsusefa_adj_nwrfcfa_nwrfcforcing_adjust_map_pet_ptpsforcing_adjust_matinterp_falagkload_examplenwsrfs_runpet_hsrsnwelevsac_snowsac_snow_statessac_snow_uhsac_snow_uh_lagksfc_pressureuhuh2puh2p_cfs_inuh2p_get_scaleuh2p_get_scale_rupdate_pars

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Areal depeletion curve using a 3 parameter modeladc3
AdjustQ: Create upstream flow timeseries from observations and simulationadjustq
Load AdjustQ exampleadjustq_load_example
Area-elevation curve for the zones of SFLN2area_elev_curve
Seasonal chanlosschanloss
Daily consuse modelconsuse
Conduct NWRFC style forcing adjustmentsfa_adj_nwrfc
Conduct NWRFC style forcing adjustmentsfa_nwrfc
Adjust monthly climo based on 4 parametersforcing_adjust_map_pet_ptps
Adjust monthly climo based on 4 parametersforcing_adjust_mat
Format state output from sac_snow_statesformat_states
Interpolate forcing adjustment factorsinterp_fa
Lag-K Routing for any number of upstream pointslagk
Load and run a bundled example datasetload_example
NRKW1 observed daily flownrkw1_daily_flow
NRKW1 forcing datanrkw1_forcing
NRKW1 observed instantaneous flownrkw1_inst_flow
NRKW1 optimal parametersnrkw1_pars
NRKW1 upstream flow datanrkw1_upflow
Run the full NWSRFS model chainnwsrfs_run
nwsrfsr: NWS River Forecast System Hydrologic Modelsnwsrfsr-package nwsrfsr
Daily Potential Evapotranspiration using Hargreaves-Semani equationspet_hs
Print method for nwsrfs_run objectsprint.nwsrfs_run
Replace ptps column with ptps derived using rain snow line code (lapse rate + MAT)rsnwelev
Execute SAC-SMA, SNOW17, return total channel inflow per zone, and model statessac_snow
Execute SAC-SMA, SNOW17, return total channel inflow per zone, and model statessac_snow_states
Execute SAC-SMA, SNOW17 and UH with given parameterssac_snow_uh
Execute SAC-SMA, SNOW17, UH and LAG-K with given parameterssac_snow_uh_lagk
Find a reasonable scale upper limit for optimizationscale_uplimit
Conputes surface pressure in hPa from a given elevationsfc_pressure
SFLN2 observed daily flowsfln2_daily_flow
SFLN2 forcing datasfln2_forcing
SFLN2 observed instantaneous flowsfln2_inst_flow
SFLN2 optimal parameterssfln2_pars
Two parameter unit hydrograph routing for one or more basin zonesuh
R port of the nwsrfs UH fortran codeuh2p
Create a 2 parameter gamma unit hydrograph with units cfs/inuh2p_cfs_in
Get the scale parameter from a 2 parameter gamma unit hydrograph given the shape parameter and time of concentration.uh2p_get_scale
Get the scale parameter from a 2 parameter gamma unit hydrograph given the shape parameter and time of concentration.uh2p_get_scale_r
root finding function for finding a scale parameter given shape and tocuh2p_root
Objective function for finding a scale parameter given shape and tocuh2p_seek
Objective function for finding a scale parameter given shape and tocuh2p_seek2
Update parameters and re-run model chainupdate_pars