Skip to contents

Data access

Retrieve observations, locations, alerts and climatology data.

Observations and locations

Work with weather stations, beaches, alerts and latest observations.

aemet_alerts() experimental
AEMET meteorological alerts
aemet_last_obs()
Latest observations from weather stations
aemet_alert_zones()
AEMET alert zones
aemet_beaches()
AEMET beaches
aemet_stations()
AEMET stations

Climatology

Retrieve daily, monthly and extreme climatology values and climatological normals.

aemet_daily_clim() aemet_daily_period() aemet_daily_period_all()
Daily and annual climatology values
aemet_extremes_clim()
Extreme values for a station
aemet_monthly_clim() aemet_monthly_period() aemet_monthly_period_all()
Monthly and annual climatology values
aemet_normal_clim() aemet_normal_clim_all()
Climatological normal values

Forecasts

Retrieve and process municipality, beach and wildfire forecasts.

aemet_forecast_daily() aemet_forecast_hourly()
Forecast weather in municipalities
aemet_forecast_beaches()
Forecast weather at beaches
aemet_forecast_fires()
AEMET wildfire risk forecast
aemet_forecast_tidy() aemet_forecast_vars_available() experimental
Extract values from forecasts

API access

Configure authentication and query arbitrary AEMET API endpoints.

Authentication

Install, detect and inspect AEMET API keys.

aemet_api_key()
Install an AEMET API key
aemet_detect_api_key() aemet_show_api_key()
Check for an AEMET API key

Low-level requests

Retrieve data and metadata from arbitrary API endpoints.

Visualize data

Create Walter-Lieth climate diagrams, warming stripes and wind roses.

Walter-Lieth climate diagrams

Plot Walter-Lieth climate diagrams.

climatogram_normal()
Walter-Lieth climate diagram from climatological normals
climatogram_period()
Walter-Lieth climate diagram for a time period
ggclimat_walter_lieth() experimental
Walter-Lieth climate diagram with ggplot2

Warming stripes

Visualize long-term temperature change.

climatestripes_station()
Warming stripes for a weather station
ggstripes()
Plot warming stripes

Wind roses

Visualize wind speed and direction.

ggwindrose()
Plot a wind rose
windrose_days()
Wind rose for a range of days
windrose_period()
Wind rose for a range of years

Helpers

Convert coordinates, work with calendar years and view package news.

climaemet_news()
Show the latest climaemet news
first_day_of_year() last_day_of_year()
First and last day of a year
dms2decdegrees() dms2decdegrees_2()
Convert DMS coordinates to decimal degrees

Datasets

Explore the example datasets included with climaemet.

aemet_munic
Municipalities of Spain
climaemet_9434_climatogram
Climatological normals for Zaragoza Airport ("9434"), 1981–2010
climaemet_9434_temp
Average annual temperatures for Zaragoza Airport ("9434"), 1950–2020
climaemet_9434_wind
Wind conditions for Zaragoza Airport ("9434"), 2000–2020

Package

Package-level documentation.

climaemet climaemet-package
climaemet: Access and Visualize AEMET Weather and Climate Data