Skip to contents

R interface to NWSRFS Fortran hydrologic models used operationally by NOAA's National Weather Service River Forecast Centers. Includes SAC-SMA soil moisture accounting, SNOW-17 snow accumulation/ablation, gamma unit hydrograph routing, Lag-K channel routing, channel loss/gain, and consumptive use modules.

Low-level model wrappers

Individual model components callable via Fortran interface: sac_snow(), uh(), lagk(), chanloss(), consuse(), fa_nwrfc()

High-level orchestration

nwsrfs_run() reads NWRFC autocalibration directories and runs the full model chain. load_example() provides bundled example data for NRKW1 and SFLN2.

AdjustQ preprocessing

adjustq() replicates the CHPS FEWS AdjustQ tool for creating upstream flow timeseries from observed and simulated data.

Author

Maintainer: Cameron Bracken cameron.bracken@pnnl.gov (ORCID)

Authors:

Other contributors:

  • Eric Anderson (Original SNOW-17 and SAC-SMA Fortran code (NOAA/HRL)) [contributor]

  • George F. Smith (Original LAG-K Fortran code (NOAA/HRL)) [contributor]

  • Janice M. Lewis (Interpolation and LAG-K Fortran code (NOAA/HRL)) [contributor]

  • John E. Pask (Original sorting routines (LLNL); see inst/COPYRIGHTS) [contributor]

  • Ondrej Certik (MIT-licensed fortran-utils sorting and types modules; see inst/COPYRIGHTS) [contributor]

  • Jacob Williams (BSD-3-clause roots-fortran library (src/root_module.f90); see inst/LICENSE_roots_fortran.md and inst/COPYRIGHTS) [contributor, copyright holder]

  • National Oceanic and Atmospheric Administration (International-rights holder for U.S. Government-authored components, including legacy NWSRFS Fortran and contributions by NOAA employees (C. Bracken through 2022-06-30, G. Walters); see inst/COPYRIGHTS) [copyright holder]

  • Battelle Memorial Institute (Copyright holder for PNNL-authored contributions by C. Bracken from 2022-07-01 onward; see inst/COPYRIGHTS) [copyright holder]