find_nws: Get National Weather Service (NWS) flood stage/discharge...

Description Usage Arguments Value Note Examples

View source: R/flood_val.R

Description

Use National Weather Service designated flood stages/discharges as flood thresholds. These come in four levels: "action", "flood", "moderate", and "major".

Usage

1
find_nws(site_no, type = "flood")

Arguments

site_no

Character vector with USGS gage IDs of stream gage sites to pull.

type

Character string with the type of flood stage to be used. Can be one of four options: "action", "flood", "moderate", and "major". Defaults to "flood".

Value

Data frame of gage IDs and the corresponding NWS flood value, if available.

Note

Since most USGS gages do not have these values specified (or may not have all levels), using this definition of the flood threshold can severely limit the sample size of the data output.

Examples

1
2
3
4
va_counties <- get_county_cd("Virginia")
va_gages <- get_gages(va_counties, start_date = "2015-01-01",
                      end_date = "2015-12-31")
va_nws <- find_nws(site_no = va_gages$site_no, type = "moderate")

countyfloods documentation built on May 2, 2019, 2:38 a.m.