getStationInfo: Station information from NOAA's Integrated Surface Database...

View source: R/getStationInfo.R

getStationInfoR Documentation

Station information from NOAA's Integrated Surface Database (ISD)

Description

Retrieves information (including station name and USAF and WBAN numbers) for a station in the ISD based on its name OR its USAF and WBAN numbers.

Usage

getStationInfo(name = NULL, usaf = NULL, wban = NULL)

Arguments

usaf

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

wban

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

stnname

station name (character).

Value

Returns a data frame containing metadata for all stations that are a match for the name (station name contains stnname):

USAF (United States Air Force) number, WBAN (Weather Bureau Army Navy) number, Station name, Country, State, icao (International Civil Aviation Organization) code, Latitude (decimal degrees), Longitude (decimal degrees), Elevation (meters), Data start date, Data end date.

Note

Trying to use only a usaf or wban number (not both) will result in an error message.

Examples

adakInfo <- getStationInfo("adak")            # Getting station metadata on Adak, Alaska
mtlInfo <- getStationInfo(name = "montreal")  # Getting station metadata on Montreal, Quebec
adakNASInfo <- getStationInfo("ADAK (NAS)")   # Getting station metadata on Adak (NAS) station, Alaska
boraboraInfo <-getStationInfo(name = "bora")  # Getting station metadata on Bora Bora, French Polynesia
# Note that the previous example includes stations that are not Bora Bora, and that using "bora bora" would exclude
# stations that are Bora Bora (such as Bora-Bora). So use caution!

adakNASInfo <- getStationInfo(usaf = 704540, wban = 99999) # Getting station metadata on Adak (NAS) station, Alaska
mtlEstInfo <- getStationInfo(usaf = 713721, wban = 99999)  # Getting station metadata on Montreal-Est station, Quebec

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