Skip to contents

Get data

Query the AEMET API with these functions.

aemet_daily_clim() aemet_daily_period() aemet_daily_period_all()
Daily/annual climatology values
aemet_extremes_clim()
Extreme values for a station
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

Authentication

API Key management.

aemet_api_key()
Install an AEMET API Key
aemet_detect_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()
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.

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

Datasets

Example datasets included on the package.

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