Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_inventory

Download and return a data.table object GSOD weather station data inventories


Description

The NCEI maintains a document, https://www1.ncdc.noaa.gov/pub/data/noaa/isd-inventory.txt, which lists the number of weather observations by station-year-month from the beginning of the stations' records. This function retrieves that document and prints an information header displaying the last update time with a data frame of the inventory information for each station-year-month.

Usage

get_inventory()

Value

A data.table object of station inventories

Note

While GSODR does not distribute GSOD weather data, users of the data should note the conditions that the U.S. NCEI places upon the GSOD data. “The following data and products may have conditions placed on their international commercial use. They can be used within the U.S. or for non- commercial international activities without restriction. The non-U.S. data cannot be redistributed for commercial purposes. Re-distribution of these data by others must provide this same notification. A log of IP addresses accessing these data and products will be maintained and may be made available to data providers.”

Author(s)

Adam H. Sparks, adamhsparks@gmail.com

Examples

inventory <- get_inventory()
inventory

GSODR

Global Surface Summary of the Day ('GSOD') Weather Data Client

v3.1.0
MIT + file LICENSE
Authors
Adam H. Sparks [aut, cre] (<https://orcid.org/0000-0002-0061-8359>), Tomislav Hengl [aut] (<https://orcid.org/0000-0002-9921-5129>), Andrew Nelson [aut] (<https://orcid.org/0000-0002-7249-3778>), Hugh Parsonage [cph, ctb] (<https://orcid.org/0000-0003-4055-0835>), Taras Kaduk [ctb] (Suggestion for handling bulk station downloads more efficiently), Gwenael Giboire [ctb] (Several bug reports in early versions and testing feedback), Łukasz Pawlik [ctb] (Reported bug in windspeed conversion calculation), Ross Darnell [ctb] (Reported bug in 'Windows OS' versions causing 'GSOD' data untarring to fail, <https://orcid.org/0000-0002-7973-6322>), Tyler Widdison [ctb] (Reported bug where `nearest_stations()` did not return stations in order of nearest to farthest.)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.