Create Flow-To-Suitable-Area Curve for Reach, Mainstem, or Watershed

habitat_fsa(reach, mainstem, watershed, habitat_type = "rearing", units = "ft")

Arguments

reach

Integer comid identifier for reach (must provide either reach, mainstem, OR watershed)

mainstem

String name for mainstem (refer to cv_mainstems dataset for options)

watershed

String name for watershed (refer to cv_watersheds dataset for options)

habitat_type

Either "rearing" (default) or "spawning"

units

Either "ft" for square ft per linear ft, or "ac" for total acres

Value

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

Examples


habitat_fsa(reach = 7978069, units = "ft")
#> # A tibble: 50 x 2
#>    flow_cfs habitat
#>       <dbl>   <dbl>
#>  1     50.1   0.145
#>  2     56.2   0.145
#>  3     63.1   0.146
#>  4     70.8   0.146
#>  5     79.4   0.146
#>  6     89.1   0.147
#>  7    100     0.148
#>  8    112.    0.152
#>  9    126.    0.152
#> 10    141.    0.156
#> # i 40 more rows

habitat_fsa(mainstem = "Feather River", units = "ac")
#> # A tibble: 50 x 2
#>    flow_cfs habitat
#>       <dbl>   <dbl>
#>  1     50.1   0.811
#>  2     56.2   0.821
#>  3     63.1   0.836
#>  4     70.8   0.845
#>  5     79.4   0.857
#>  6     89.1   0.895
#>  7    100     0.934
#>  8    112.    0.970
#>  9    126.    1.00 
#> 10    141.    1.04 
#> # i 40 more rows