getStationData_single: Data retrieval from NOAA's Integrated Surface Database (ISD)...

View source: R/getStationData_single.R

getStationData_singleR Documentation

Data retrieval from NOAA's Integrated Surface Database (ISD) for single station

Description

Retrieves climate data from a single ISD station for a given year range. getStationData_single() expands on rnoaa's isd() function, by allowing to append data for multiple years in the same data frame and catching and ignoring errors.

Usage

getStationData_single(years, usaf, wban)

Arguments

years

year range (numeric).

usaf

station USAF (United States Air Force) ID number (numeric).

wban

station WBAN (Weather Bureau Army Navy) ID number (numeric).

Value

Returns a data frame with the data for the available years in the range given.

Note

USAF and WBAN numbers for a station can be found with the function getStationInfo() if the name of the station is known, or with rnoaa's isd_stations_search() if the station location is known.

Examples

stmatthewsIsland  <- getStationData_single(1945, 749231, 99999)
adakIsland        <- getStationData_single(2010:2018, 997380, 99999) # With error message
mtl               <- getStationData_single(1954:1956, 713721, 99999) # With warning message
borabora          <- getStationData_single(1942:1945, 919300, 99999) # With warning and error message

cbrais/risd documentation built on June 14, 2022, 12:25 a.m.