Download point-level historical weather (ERA5) using open-meteo API
Source:R/get_historical_weather.R
get_historical_weather.RdDownload point-level historical weather (ERA5) using open-meteo API
Usage
get_historical_weather(
latitude,
longitude,
site_id = NULL,
start_date,
end_date,
variables = c("relative_humidity_2m", "precipitation", "wind_speed_10m", "cloud_cover",
"temperature_2m", "shortwave_radiation")
)Arguments
- latitude
latitude in decimal degrees north
- longitude
longitude in decimal degrees east
- site_id
optional site label added to output; defaults to "latitude_longitude"
- start_date
earliest date requested (ISO format "YYYY-MM-DD"). ERA5 is available from 1940-01-01 to present.
- end_date
latest date requested (ISO format "YYYY-MM-DD"). Note that ERA5 has a processing delay of approximately 5 days.
- variables
character vector of variable names. See https://open-meteo.com/en/docs/historical-weather-api for the full list.