View source: R/get_ensemble_forecast.R
get_ensemble_forecast | R Documentation |
Download point-level ensemble weather forecasting using open-meteo API
get_ensemble_forecast(
latitude,
longitude,
site_id = NULL,
forecast_days,
past_days,
model = "gfs_seamless",
variables = c("relative_humidity_2m", "precipitation", "wind_speed_10m", "cloud_cover",
"temperature_2m", "shortwave_radiation")
)
latitude |
latitude degree north |
longitude |
longitude degree east |
site_id |
name of site location (optional, default = NULL) |
forecast_days |
Number of days in the future for forecast (starts at current day) |
past_days |
Number of days in the past to include in the data |
model |
id of forest model https://open-meteo.com/en/docs/ensemble-api |
variables |
vector of name of variable(s) https://open-meteo.com/en/docs/ensemble-api |
data frame with the results from the call to the open-meteo API. The data frame is in a long format and has the following columns: "datetime", "reference_datetime", "site_id", "model_id", "ensemble", "variable", "prediction","unit".
get_ensemble_forecast(
latitude = 37.30,
longitude = -79.83,
forecast_days = 7,
past_days = 2,
model = "gfs_seamless",
variables = c("temperature_2m"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.