get_stations_info_from {meteospain} | R Documentation |
Get meteorological stations info
Description
Obtain info and metadata for the available stations in the different services
Usage
get_stations_info_from(
service = c("aemet", "meteocat", "meteoclimatic", "meteogalicia", "ria"),
options
)
Arguments
service |
Character with the service name (in lower case). |
options |
List with the needed service options. See |
Details
Depending on the service the metadata available can be different. Also, some services only offer
info for active stations (i.e. AEMET), not historical stations, so some mismatch can occur between
the stations returned by this function and the stations returned by get_meteo_from
for
historical dates.
Value
An sf (spatial) object with the stations metadata.
Cache
To avoid unnecessary API calls (especially in rate-limited APIs), results are cached to
memory in a cache_mem
object. This cache is limited to the actual
R session and invalidates after 24h.
This cache can be cleared with clear_meteospain_cache
.
Examples
library(meteospain)
library(keyring)
# AEMET (we need a key)
# key_set('aemet')
api_options <- aemet_options(api_key = key_get('aemet'))
get_stations_info_from('aemet', api_options)