meteo_pull_monitors(monitors, keep_flags = FALSE, date_min = NULL, date_max = NULL, var = "all")
ghcnd_stations
function. To identify stations within a certain radius of a location, the
user can use the meteo_nearby_stations
function."all"
(pull all
available weather parameters for the site) or the weather parameters to
keep in the final data (e.g., c("TMAX", "TMIN")
to only keep
maximum and minimum temperature). Example choices for this argument include:
PRCP
: Precipitation, in tenths of millimeters
TAVG
: Average temperature, in tenths of degrees Celsius
TMAX
: Maximum temperature, in tenths of degrees Celsius
TMIN
: Minimum temperature, in tenths of degrees Celsius
A full list of possible weather variables is available in NOAA's README file for the GHCND data (http://www1.ncdc.noaa.gov/pub/data/ghcn/daily/readme.txt). Most weather stations will only have a small subset of all the possible weather variables, so the data generated by this function may not include all of the variables the user specifies through this argument.
id
: Character string with the weather station site id
date
: Date of the observation
prcp
: Precipitation, in tenths of mm
tavg
: Average temperature, in tenths of degrees Celsius
tmax
: Maximum temperature, in tenths of degrees Celsius
tmin
: Minimum temperature, in tenths of degrees Celsius
awnd
: Average daily wind speed, in meters / second
wsfg
: Peak gust wind speed, in meters / second
var
argument is something other than "all", then
only variables included in that argument will be included in the output
data frame. All variables are in the units specified in the linked file
(note that, in many cases, measurements are given in tenths of the units
more often used, e.g., tenths of degrees for temperature). All column names
correspond to variable names in the linked file, but with all uppercase
letters changed to lowercase.
Menne, M.J., I. Durre, R.S. Vose, B.E. Gleason, and T.G. Houston, 2012: An overview of the Global Historical Climatology Network-Daily Database. Journal of Atmospheric and Oceanic Technology, 29, 897-910, doi:10.1175/JTECH-D-11-00103.1.
## Not run:
#
# monitors <- c("ASN00003003", "ASM00094299", "ASM00094995", "ASM00094998")
# all_monitors_clean <- meteo_pull_monitors(monitors)
#
# ## End(Not run)
Run the code above in your browser using DataLab