GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NOAA-NWRFC/nwsrfs-hydro-models: Fortran source code wrappers, along with R and Python packages, for calibrating NWSRFS models at the NWRFC.

BranchesTags
Open more actions menu

Latest commit

 

History

412 Commits
412 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
dev
dev
 
 
docs/superpowers
docs/superpowers
 
 
model_source
model_source
 
 
nwsrfs_py
nwsrfs_py
 
 
nwsrfs_r
nwsrfs_r
 
 
pages
pages
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CITATION.cff
CITATION.cff
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
ROADMAP.md
ROADMAP.md
 
 
pixi.toml
pixi.toml
 
 

Repository files navigation

NWRFC Operational Hydrology Models

CRAN status PyPI version Test R Package Test Python Models

Overview

The Northwest River Forecast Center (NWRFC) uses the National Weather Service River Forecast System (NWSRFS) to support flood forecasting, water supply operations, drought monitoring, recreation, navigation, and environmental flow analyses.

This repository contains:

  • Original NWSRFS FORTRAN source code and wrappers used for modern integrations.
  • An R package (nwsrfsr).
  • A Python package (nwsrfspy).

The model suite includes SAC-SMA, SNOW-17, UNIT-HG, LAG-K, CHANLOSS, and CONS_USE.

Quick Start

R (nwsrfsr)

From CRAN:

install.packages('nwsrfsr')

Python (nwsrfspy)

Requires Python 3.11 or newer; CI and wheel builds cover Python 3.11–3.14.

Install from PyPI:

pip install nwsrfspy

Package-Specific Docs

  • Python package docs
  • R package docs

Development Environment (for compiling from source)

pixi manages the Python toolchain (Python, gfortran for the Python build, meson, quarto, etc.) in a reproducible environment from pixi.toml. The environment will be automatically activated when you run any pixi command.

To compile the R package from source, R needs to be installed and available on the system PATH along with gfortran. See dev/README.md for the one time R setup.

git clone https://github.com/NOAA-NWRFC/nwsrfs-hydro-models.git
cd nwsrfs-hydro-models

pixi install                  # create environment
pixi run install-py           # build & install Python package (editable)
pixi run install-r            # build & install R package
pixi run test-py              # run Python tests
pixi run test-r               # run R tests
pixi run test-all             # run both
pixi run check-r              # R CMD check (no manual)
pixi run build-r              # build R source tarball
pixi run check-r-cran         # CRAN submission check on built tarball
pixi run build-docs           # build all docs (Python + R + R README)
pixi run build-docs-py        # build Python Sphinx docs only
pixi run build-docs-r         # build R pkgdown docs only
pixi run build-docs-r-readme  # render R README.qmd to HTML

Related Repositories & Data

  • nwsrfs-hydro-autocalibration — Automated calibration framework for NWSRFS models using evolving dynamically dimensioned search (EDDS). Uses the R and Python packages from this repository.

  • Sample calibration data: DOI — Input data for 5 example basins (FSSO3, SAKW1, SFLN2, WCHW1, WGCM8) archived on Zenodo.

Credits and References

Please cite:

Walters, G., C. Bracken, B. Gillies, et al. 2026. “A Comprehensive Calibration Framework for the Northwest River Forecast Center.” JAWRA Journal of the American Water Resources Association 62, no. 2: e70112. https://doi.org/10.1111/1752-1688.70112

If adapting this code, please credit this repository as the original source.

NWSRFS References

For model background, see the NWSRFS User Manual

Acknowledgment

Guidance on compiling and running NWSRFS code was informed by work from Andy Wood ([email protected]) and collaborators. See NWS_hydro_models.

Legal Disclaimer

This is a scientific product and does not represent official communication from NOAA or the U.S. Department of Commerce. All code is provided "as is."

See full disclaimer: NOAA GitHub Policy

NWS-NOAA Banner

National Oceanographic and Atmospheric Administration | National Weather Service | Northwest River Forecast Center

About

Fortran source code wrappers, along with R and Python packages, for calibrating NWSRFS models at the NWRFC.

NOAA-NWRFC.github.io/nwsrfs-hydro-models/

Topics

autocalibrationcalibrationforecastinghydrologylagkmodelnwssac-smasnow17

Resources

Readme
License
Activity
Custom properties

Stars

4 stars

Watchers

1 watching

Forks

7 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.