Skip to contents

Get data

Query the AEMET API with these functions.

aemet_alerts() experimental
AEMET Meteorological warnings
aemet_alert_zones()
AEMET alert zones
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()
Forecast database by municipality
aemet_forecast_beaches()
Forecast database for beaches
aemet_forecast_fires()
AEMET fires forecast
aemet_last_obs()
Last observation values for a station
aemet_monthly_clim() aemet_monthly_period() aemet_monthly_period_all()
Monthly/annual climatology
aemet_normal_clim() aemet_normal_clim_all()
Normal climatology values
aemet_stations()
AEMET stations

Forecasts

Get forecast data.

aemet_forecast_daily() aemet_forecast_hourly()
Forecast database by municipality
aemet_forecast_beaches()
Forecast database for beaches
aemet_forecast_fires()
AEMET fires forecast
aemet_forecast_tidy() aemet_forecast_vars_available() experimental
Helper functions for extracting forecasts

Authentication

API Key management.

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

Plot data

Complementary functions to create different plot types.

climatestripes_station()
Station climate stripes graph
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 and Lieth climatic diagram on ggplot2
ggstripes()
Warming stripes graph
ggwindrose()
Windrose (speed/direction) diagram
windrose_days()
Windrose (speed/direction) diagram of a station over a days period
windrose_period()
Windrose (speed/direction) diagram of a station over a time period

Helpers

Helper functions used on this package.

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

Datasets

Example datasets included on the package.

aemet_munic
Data set with all the municipalities of Spain
climaemet_9434_climatogram
Climatogram data for Zaragoza Airport ("9434") period 1981-2010
climaemet_9434_temp
Average annual temperatures for Zaragoza Airport ("9434") period 1950-2020
climaemet_9434_wind
Wind conditions for Zaragoza Airport ("9434") period 2000-2020

About the package

climaemet climaemet-package
climaemet: Climate AEMET Tools