meteo_process_geographic_data(station_data, lat, long, units = "deg")
ghcnd_stations()[[1]]
, which is
a current list of weather stations available through NOAA for the GHCND
dataset. The format of this is a dataframe
with one row per weather station. Latitude and longitude for the station
locations should be in columns with the names "latitude" and "longitude",
consistent with the output from ghcnd_stations()[[1]]
. To save time, run the
ghcnd_stations
call and save the output to an object, rather than
rerunning the default every time (see the examples in
meteo_nearby_stations
).deg
: Degrees (default);
rad
: Radians.
station_data
dataframe that is input, but with a
distance
column added that gives the distance to the location
(in kilometers), and re-ordered by distance between each station and
the location (closest weather stations first).
## Not run:
# station_data <- ghcnd_stations()[[1]]
# meteo_process_geographic_data(station_data, -33, 151)
# ## End(Not run)
Run the code above in your browser using DataLab