isd_fips_stations: Get station list for a particular U.S. county.

Description Usage Arguments Value Examples

Description

A wrapper to the isd_stations_search function in the rnoaa package, allowing you to search by FIPS code rather than having to know the latitude and longitude of the center of each county. The isd_stations_search function requires a radius within which to search for stations. This radius is estimated from 2010 U.S. Census Land Area data.

Usage

1
isd_fips_stations(fips, verbose = FALSE)

Arguments

fips

A five-digit FIPS county code.

verbose

TRUE / FALSE to indicate if you want the function to print the county or vector of counties it's saving files for as the function runs.

Value

A list with four elements. The first element, stations, is a dataframe of monitors within a calculated radius of the geographic center of the county specified by the FIPS code. This will have the same dataframe format as the output from the isd_stations_search function in the rnoaa package. The second element, radius, gives the radius (in km) within which stations were pulled from the county's geographic center. Elements lat_center and lon_center are the latitude and longitude of the county's population-weighted center.

Examples

1
2
3
4
5
6
## Not run: 
fips_list <- isd_fips_stations(fips = "12086")
ids <- fips_list$stations
head(ids)

## End(Not run)

countyweather documentation built on May 1, 2019, 6:35 p.m.