Skip to contents

Utility function to create non-point source (NPS) ungaged land use and soil runoff coefficients

Usage

util_nps_landsoilrc(tbbase, yrexp = c(2021:2023))

Arguments

tbbase

Data frame returned from util_nps_tbbase containing land use and soil data.

yrexp

Years to expand the data frame to include all months for each year.

Value

A data frame with land use (CLUCSID) and soil runoff coefficients by year and month.

Examples

data(tbbase)

util_nps_landsoilrc(tbbase, yrexp = c(2021:2023))
#> # A tibble: 93,312 × 13
#>    bay_seg basin    drnfeat clucsid hydgrp    area dry_rc wet_rc    mo    rc
#>      <dbl> <chr>    <chr>     <dbl> <chr>    <dbl>  <dbl>  <dbl> <int> <dbl>
#>  1       1 02304500 CON           1 B      0.00757   0.18   0.28     1  0.18
#>  2       1 02304500 CON           1 B      0.00757   0.18   0.28     1  0.18
#>  3       1 02304500 CON           1 B      0.00757   0.18   0.28     1  0.18
#>  4       1 02304500 CON           1 B      0.00757   0.18   0.28     2  0.18
#>  5       1 02304500 CON           1 B      0.00757   0.18   0.28     2  0.18
#>  6       1 02304500 CON           1 B      0.00757   0.18   0.28     2  0.18
#>  7       1 02304500 CON           1 B      0.00757   0.18   0.28     3  0.18
#>  8       1 02304500 CON           1 B      0.00757   0.18   0.28     3  0.18
#>  9       1 02304500 CON           1 B      0.00757   0.18   0.28     3  0.18
#> 10       1 02304500 CON           1 B      0.00757   0.18   0.28     4  0.18
#> # ℹ 93,302 more rows
#> # ℹ 3 more variables: rca <dbl>, tot_rca <dbl>, yr <int>