Skip to contents

Execute SAC-SMA, SNOW17, UH and LAG-K with given parameters

Usage

sac_snow_uh_lagk(dt_hours, forcing, uptribs, pars)

Arguments

dt_hours

timestep in hours

forcing

data frame with columns for forcing inputs

uptribs

data frame with columns for upstream flow data

pars

sac parameters

Value

Vector of routed flow in cfs

Examples

# Simple: full model chain via the bundled example (NRKW1 has upstream tribs)
run <- load_example("NRKW1")
head(run$sim)
#> [1] 1373.031 1464.383 1302.676 1335.454 1296.860 1287.284

# Low-level: populate etd_mm / pet_mm via fa_nwrfc first, then chain
# SAC-SMA / SNOW17 / UH with Lag-K routing of upstream tributaries.
data(nrkw1_forcing)
data(nrkw1_pars)
data(nrkw1_upflow)
dt_hours <- 6
forcing_adj <- fa_nwrfc(dt_hours, nrkw1_forcing, nrkw1_pars)
flow_cfs <- sac_snow_uh_lagk(dt_hours, forcing_adj, nrkw1_upflow, nrkw1_pars)