metar_get_historical: Get historical METAR reports.

View source: R/metar_get_historical.R

metar_get_historicalR Documentation

Get historical METAR reports.

Description

Download a set of historical METAR weather reports. The default source is the Iowa Environmental Mesonet web page of Iowa State University ASOS-AWOS-METAR
https://mesonet.agron.iastate.edu/AWOS/
The secondary source of METAR reports is Weather Information Service provided by Ogimet https://www.ogimet.com/. However for this source the requested period is limited to 31 days. METAR reports are available from the year 2005.

Usage

metar_get_historical(
  airport = "EPWA",
  start_date = "2020-01-01",
  end_date = "2020-01-10",
  from = "iastate"
)

Arguments

airport

character; ICAO or IATA airport code.

start_date

character; start date in the format YYYY-MM-DD.

end_date

character; end date in the format YYYY-MM-DD.

from

character; selection of online METAR database,
the default value is "iastate" downolading METAR reports from Iowa Environmental Mesonet ASOS-AWOS-METAR https://mesonet.agron.iastate.edu/AWOS/.
Setting the parameter from to "ogimet" allows to use Weather Information Service provided by Ogimet https://www.ogimet.com/.

Value

a data frame character vectors with historical METAR weather report.

Examples


metar_get_historical("EPWA", start_date = "2017-11-20", end_date = "2017-11-25")
metar_get_historical("MAD", start_date = "2015-06-01", end_date = "2015-06-02",
from = "iastate")
metar_get_historical("CYUL", start_date = "2016-07-01", end_date = "2016-07-05",
from = "ogimet")



pmetar documentation built on Oct. 26, 2023, 1:08 a.m.