ogimet_daily: Scrapping daily meteorological (Synop) data from the Ogimet...

View source: R/ogimet_daily.R

ogimet_dailyR Documentation

Scrapping daily meteorological (Synop) data from the Ogimet webpage

Description

Downloading daily (meteorological) data from the Synop stations available in the https://www.ogimet.com/ repository. The data are processed only if temperature or precipitation fields are present.

Usage

ogimet_daily(
  date = c(Sys.Date() - 30, Sys.Date()),
  coords = FALSE,
  station = NA,
  hour = 6,
  allow_failure = TRUE
)

Arguments

date

start and finish of date (e.g., date = c("2018-05-01","2018-07-01") ). By default last 30 days.

coords

add geographical coordinates of the station (logical value TRUE or FALSE)

station

WMO ID of meteorological station(s). Character or numeric vector

hour

time for which the daily raport is generated. Set default as hour = 6 (i.e. 6 UTC)

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

data.frame with historical meteorological data for the daily summaries

Examples


  # downloading daily summaries for last 30 days. station: New York - La Guardia
  new_york = ogimet_daily(station = 72503, coords = TRUE)



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