GSODR: Global Summary Daily Weather Data in R

Published in The Journal of Open Source Software, 2017

Recommended citation: GSODR: Global Summary Daily Weather Data in R. Adam H Sparks, Tomislav Hengl, Andrew Nelson. The Journal of Open Source Software 2.10 (Feb. 2017). The Open Journal. DOI: 10.21105/ joss.00177 10.21105.joss.00177.pdf

The GSODR package (Sparks, Hengl, and Nelson 2017) is an R package (R Core Team 2016) providing automated downloading, parsing and cleaning of Global Surface Summary of the Day (GSOD) (United States National Oceanic and Atmospheric Administration National Climatic Data Center 2016) weather data for use in R or saving as local files in either a Comma Separated Values (CSV) or GeoPackage (GPKG) (Open Geospatial Consortium 2014) file. It builds on or complements several other scripts and packages. We take advantage of modern techniques in R to make more efficient use of available computing resources to complete the process, e.g., data.table (Dowle et al. 2015), plyr (Wickham 2011) and readr (Wickham, Hester, and Francois 2016), which allow the data cleaning, conversions and disk input/output processes to function quickly and efficiently. The rnoaa (Chamberlain 2016) package already offers an excellent suite of tools for interacting with and downloading weather data from the United States National Oceanic and Atmospheric Administration, but lacks options for GSOD data retrieval. Several other APIs and R packages exist to access weather data, but most are region or continent specific, whereas GSOD is global. This package was developed to provide: two functions that simplify downloading GSOD data and formatting it to easily be used in research; and a function to help identify stations within a given radius of a point of interest.

Download paper here

Recommended citation: GSODR: Global Summary Daily Weather Data in R. Adam H Sparks, Tomislav Hengl, Andrew Nelson. The Journal of Open Source Software 2.10 (Feb. 2017). The Open Journal. DOI: 10.21105/ joss.00177