county_wind {hurricaneexposure} | R Documentation |
Hurricane exposure by wind for counties
Description
This function takes a list of US counties, based on their 5-digit Federal Information Processing Standard (FIPS) codes, boundaries on the range of years to be considered, and thresholds for wind speed (in meters per second) (or, alternatively, duration of winds at or above 20 m / s in minutes) for each county to be considered "exposed" to the storm. Based on these inputs, the function returns a dataframe with the subset of Atlantic basin storms meeting those criteria for each of the listed counties.
Usage
county_wind(
counties,
start_year,
end_year,
wind_limit,
wind_var = "vmax_sust",
wind_source = "modeled"
)
Arguments
counties |
Character vector of the five-digit Federal Information Processing Standard (FIPS) codes for counties for which the user wants to determine storm exposure. |
start_year |
Four-digit integer with first year to consider. |
end_year |
Four-digit integer with last year to consider. |
wind_limit |
A numeric vector of length one giving the minimum
wind speed (in meters per second) or duration of winds of 20 m / s or more
(in minutes) to use in the filter. The units of this variable will depend on
the user's choice for the |
wind_var |
A character string giving the wind variable to use. Choices
are |
wind_source |
A character string specifying the source to use for the winds. Options
are |
Details
For more information on how wind speeds are modeled in this data,
see the documentation for the stormwindmodel
R package.
Value
Returns a dataframe with a row for each county-storm pair and with columns for:
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) codemax_sust
: Maximum sustained wind speed (in m / s)max_gust
: Maximum gust wind speed (in m / s)sust_dur
: Minutes sustained wind speed was 20 m / s or highergust_dur
: Minutes gust wind speed was 20 m / s or higher (only returned if the modeled winds are requested usingwind_source
)usa_atcf_id
: United States Automated Tropical Cyclone Forecasting storm identifierclosest_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.storm_dist
: Minimum distance (in kilometers) between the storm's track and the county's population mean center.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_date
: Date (based on local time) of the closest approach of the storm to the county's population mean center.
Note
Only counties in states in the eastern half of the United States can
be processed by this function. Winds are modeled at 15-minute increments, so
all duration estimates (sust_dur
and gust_dur
in the output)
will be divisible by 15.
Examples
# 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_wind(counties = c("22071", "51700"),
start_year = 1988, end_year = 2005,
wind_limit = 20, wind_var = "vmax_sust")
}