Create Flow-To-Suitable-Area Curve (with Duration HSI applied) for Reach

habitat_fsa_duration_reach(
  reach,
  streamgage,
  habitat_type = "rearing",
  units = "ft",
  run = "fall",
  wy_group = "Dry",
  gradient = "Valley Foothill"
)

Arguments

reach

Integer comid identifier for reach

streamgage

Three-letter CDEC identifier for the streamgage

habitat_type

Either "rearing" or "spawning"

units

Desired units for output, either "ft" for square ft per linear ft, or "ac" for total acres

run

One of "fall" (default), "late fall", "winter", "spring", or "steelhead"

wy_group

Either "Dry" or "Wet" for water year type scenario

gradient

For rearing, either "Valley Foothill" (default) or "Valley Lowland"

Value

A tibble with columns for flow (flow_cfs) and suitable habitat (habitat)

Examples


habitat_fsa_duration_reach(reach = 7978069, streamgage = "FSB")
#> Error in approx(x = fsa_weighted$q, xout = fsa$flow_cfs, y = fsa_weighted$durwua,     rule = 2:2, na.rm = F): need at least two non-NA values to interpolate