aemet_normal: Normal climatology values

aemet_normalR Documentation

Normal climatology values

Description

Get normal climatology values for a station (or all the stations with aemet_normal_clim_all(). Standard climatology from 1981 to 2010.

Usage

aemet_normal_clim(
  station = NULL,
  verbose = FALSE,
  return_sf = FALSE,
  extract_metadata = FALSE
)

aemet_normal_clim_all(
  verbose = FALSE,
  return_sf = FALSE,
  extract_metadata = FALSE
)

Arguments

station

Character string with station identifier code(s) (see aemet_stations()) or "all" for all the stations.

verbose

Logical TRUE/FALSE. Provides information about the flow of information between the client and server.

return_sf

Logical TRUE or FALSE. Should the function return an sf spatial object? If FALSE (the default value) it returns a tibble. Note that you need to have the sf package installed.

extract_metadata

Logical TRUE/FALSE. On TRUE the output is a tibble with the description of the fields. See also get_metadata_aemet().

Value

A tibble or a sf object

API Key

You need to set your API Key globally using aemet_api_key().

Note

Code modified from project https://github.com/SevillaR/aemet

See Also

Other aemet_api_data: aemet_daily_clim(), aemet_extremes_clim(), aemet_forecast_daily(), aemet_last_obs(), aemet_monthly, aemet_stations()

Examples



library(tibble)
obs <- aemet_normal_clim(c("9434", "3195"))
glimpse(obs)


climaemet documentation built on Aug. 30, 2023, 9:06 a.m.