Skip to contents

Loads NRKW1 or SFLN2 bundled example data and runs the full NWSRFS model chain.

Usage

load_example(
  lid = "NRKW1",
  forcing_adj = TRUE,
  shift_sf = TRUE,
  return_inst = TRUE
)

Arguments

lid

Station identifier: "NRKW1" or "SFLN2"

forcing_adj

Apply forcing adjustments. TRUE adjusts all forcings, FALSE adjusts none, and a character vector naming a subset of "map", "mat", "ptps" and "pet" adjusts only those. Default TRUE.

shift_sf

Logical; shift UH flow forward one timestep. Default TRUE.

return_inst

Logical; return instantaneous streamflow rather than period average. Default TRUE.

Value

A list with class "nwsrfs_run" (see nwsrfs_run())

Examples

run = load_example("NRKW1")
plot(run$sim, type = "l")