stations_ogimet: Scrapping a list of meteorological (Synop) stations for a...

View source: R/stations_ogimet.R

stations_ogimetR Documentation

Scrapping a list of meteorological (Synop) stations for a defined country from the Ogimet webpage

Description

Returns a list of meteorological stations with their coordinates from the Ogimet webpage. The returned list is valid only for a given day

Usage

stations_ogimet(
  country = "United Kingdom",
  date = Sys.Date(),
  add_map = FALSE,
  allow_failure = TRUE
)

Arguments

country

country name; Every word must be written with capital letters (e.g. "United Kingdom")

date

a day when measurements were done in all available locations

add_map

logical - whether to draw a map based on downloaded dataset (requires maps package)

allow_failure

logical - whether to proceed or stop on failure. By default set to TRUE (i.e. don't stop on error). For debugging purposes change to FALSE

Value

A data.frame with columns describing the synoptic stations in selected countries where each row represent a statation. If add_map = TRUE additional map of downloaded data is visualized.

Examples


  stations_ogimet(country = "Australia", add_map = TRUE)



climate documentation built on Oct. 19, 2024, 9:06 a.m.