county_rain(counties, start_year, end_year, rain_limit, dist_limit, days_included = c(-2, -1, 0, 1))
days_included
), that must fall in a
county for the county to be classified as "exposed" to the storm.c(-1, 0, 1)
would calculate rain for a county as the sum of the
rainfall for the day before, the day of, and the day after the date when
the storm center was closest to the county center. Values can range from
-5 to 3 (i.e., at most, you can calculate the total rainfall from five days
to three days after the day when the storm is closest to the
county).storm_id
: Unique storm identifier with the storm name and year,
separated by a hyphen(e.g., "Alberto-1988",
"Katrina-2005")
fips
: County's 5-digit Federal Information Processing Standard
(FIPS) code
closest_date
: Date (based on local time) of the closest
approach of the storm to the county's population
mean center.
storm_dist
: Minimum distance (in kilometers) between the storm's
track and the county's population mean center.
tot_precip
: Cumulative rainfall, in millimeters, in the
county for the days selected using the
days_included
option.
local_time
: Local time of the closest approach of the storm to the
county's population mean center, based on storm tracks
linearly interpolated to 15-minute increments.
closest_time_utc
: Time, in UTC, of the closest approach of the
storm to the county's population mean center,
based on storm tracks linearly interpolated to
15-minute increments.
North America Land Data Assimilation System (NLDAS) Daily Precipitation years 1979-2011 on CDC WONDER Online Database, released 2012. http://wonder.cdc.gov/wonder/help/Precipitation.html
Rui H, Mocko D, 2014. README Document for North America Land Data Assimilation System Phase 2 (NLDAS-2) Products. Goddard Earth Sciences Data and Information Services Center.
# Ensure that data package is available before running the example.
# If it is not, see the `hurricaneexposure` package vignette for details
# on installing the required data package.
if (requireNamespace("hurricaneexposuredata", quietly = TRUE)) {
county_rain(counties = c("22071", "51700"),
start_year = 1995, end_year = 2005,
rain_limit = 100, dist_limit = 100)
}
Run the code above in your browser using DataLab