ghcnd
and cleans up
the data into a tidy form.
meteo_tidy_ghcnd(stationid, keep_flags = FALSE, var = "all", date_min = NULL, date_max = NULL)
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 mm
tavg
: Average temperature, in degrees Celsius
tmax
: Maximum temperature, in degrees Celsius
tmin
: Minimum temperature, in degrees Celsius
awnd
: Average daily wind speed, in meters / second
wsfg
: Peak gust wind speed, in meters / second
prcp
, tmax
, tmin
, and tavg
have all been converted from tenths of their metric to the metric (e.g.,
from tenths of degrees Celsius to degrees Celsius). All other variables
are in the units specified in the linked file.
meteo_pull_monitors
## Not run:
# # One station in Australia is ASM00094275
# meteo_tidy_ghcnd(stationid = "ASN00003003")
# meteo_tidy_ghcnd(stationid = "ASN00003003", var = "tavg")
# meteo_tidy_ghcnd(stationid = "ASN00003003", date_min = "1950-01-01")
# ## End(Not run)
Run the code above in your browser using DataLab