Learn R Programming

climate (version 1.2.1)

meteo_noaa_hourly: Hourly NOAA Integrated Surface Hourly (ISH) meteorological data

Description

Downloading hourly (meteorological) data from the SYNOP stations available in the NOAA ISD collection. Some stations in the dataset are dated back even up to 1900. By default only records that follow FM-12 (SYNOP) convention are processed. Further details available at: https://www1.ncdc.noaa.gov/pub/data/noaa/readme.txt

Usage

meteo_noaa_hourly(
  station = NULL,
  year = 2019,
  fm12 = TRUE,
  allow_failure = TRUE
)

Value

data.frame with historical meteorological data in hourly intervals

Arguments

station

ID of meteorological station(s) (characters). Find your station's ID at: https://www1.ncdc.noaa.gov/pub/data/noaa/isd-history.txt

year

vector of years (e.g., 1966:2000)

fm12

use only FM-12 (SYNOP) records (TRUE by default)

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

Examples

Run this code
# \donttest{
# London-Heathrow, United Kingdom
  noaa = meteo_noaa_hourly(station = "037720-99999", year = 1949)
# }

Run the code above in your browser using DataLab