Skip to contents

Get data

Retrieve observations, climatology values, alerts and station data.

aemet_alert_zones()
AEMET alert zones
aemet_alerts() experimental
AEMET meteorological alerts
aemet_beaches()
AEMET beaches
aemet_daily_clim() aemet_daily_period() aemet_daily_period_all()
Daily/annual climatology values
aemet_extremes_clim()
Extreme values for a station
aemet_forecast_daily() aemet_forecast_hourly()
Municipality forecast dataset
aemet_forecast_beaches()
Beach forecast dataset
aemet_forecast_fires()
AEMET wildfire risk forecast
aemet_last_obs()
Last observation values for a station
aemet_monthly_clim() aemet_monthly_period() aemet_monthly_period_all()
Monthly/annual climatology values
aemet_normal_clim() aemet_normal_clim_all()
Normal climatology values
aemet_stations()
AEMET stations

Forecasts

Retrieve daily, hourly, beach and wildfire forecasts.

aemet_forecast_daily() aemet_forecast_hourly()
Municipality forecast dataset
aemet_forecast_beaches()
Beach forecast dataset
aemet_forecast_fires()
AEMET wildfire risk forecast
aemet_forecast_tidy() aemet_forecast_vars_available() experimental
Helper functions for extracting forecasts

Authentication

Manage AEMET API keys.

aemet_api_key()
Install an AEMET API key
aemet_detect_api_key() aemet_show_api_key()
Check whether an AEMET API key is present for the current session

Plot data

Create climate visualizations and diagnostic plots.

climatestripes_station()
Station climate stripes plot
climatogram_normal()
Walter & Lieth climatic diagram from normal climatology values
climatogram_period()
Walter & Lieth climatic diagram for a time period
ggclimat_walter_lieth() experimental
Walter & Lieth climatic diagram with ggplot2
ggstripes()
Warming stripes graph
ggwindrose()
Windrose (speed/direction) diagram
windrose_days()
Windrose (speed/direction) diagram of a station over a period of days
windrose_period()
Windrose (speed/direction) diagram of a station over a time period

Helpers

Work with API clients and helper utilities.

first_day_of_year() last_day_of_year()
First and last day of a year
dms2decdegrees() dms2decdegrees_2()
Convert dms format to decimal degrees
get_data_aemet() get_metadata_aemet()
Client tool for the AEMET API

Datasets

Use example datasets included in the package.

aemet_munic
Municipalities of Spain
climaemet_9434_climatogram
Climatogram data 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

About the package

climaemet climaemet-package
climaemet: Tools for AEMET Climate Data