Get Nearest NOAA GHCN-Daily Weather Stations with Available Variables
get_ghcn_daily_stations.Rd
This function retrieves the nearest weather stations from the NOAA GHCN-Daily dataset given a latitude and longitude coordinate. It returns information about each station, including its location, elevation, the date range of available data, and available variables.
Value
A data frame containing information about the nearest weather stations, including:
- id
Character. The station identifier.
- name
Character. The name of the station.
- latitude
Numeric. The station's latitude.
- longitude
Numeric. The station's longitude.
- elevation
Numeric. The station's elevation.
- mindate
Date. The earliest date for which the station has data.
- maxdate
Date. The latest date for which the station has data.
- distance
Numeric. The calculated distance from the input coordinates in degrees.
- available_vars
Character. Comma-separated list of available variables.
Examples
if (FALSE) { # \dontrun{
stations <- get_ghcn_daily_stations(lat = 40.7128, lon = -74.006, token = "your_noaa_token_here")
print(stations)
} # }