GSODR: Global Summary Daily Weather Data in R

Provides automated downloading, parsing, cleaning, unit conversion and formatting of Global Surface Summary of the Day (GSOD) weather data from the from the USA National Climatic Data Center (NCDC) for use in R. All units are converted from from United States Customary System (USCS) units to International System of Units (SI). Stations may be individually checked for number of missing days defined by the user, where stations with too many missing observations are omitted. Only stations with valid reported latitude and longitude values are permitted in the final data. Additional useful variables, saturation vapour pressure (es), actual vapour pressure (ea) and relative humidity are calculated from the original data and included in the final data set. The resulting data include station identification information, state, country, latitude, longitude, elevation, weather observations and associated flags. Data may be automatically saved to disk. File output may be returned as a comma-separated values (CSV) or GeoPackage (GPKG) file. Additional data are included with this R package: a list of elevation values for stations between -60 and 60 degrees latitude derived from the Shuttle Radar Topography Measuring Mission (SRTM). For information on the GSOD data from NCDC, please see the GSOD readme.txt file available from, <>.

Version: 1.0.1
Depends: R (≥ 3.2.0)
Imports: curl, data.table, dplyr, fields, plyr, purrr (≥ 0.2.0), R.utils, readr, rgdal (≥ 1.1-9), sp, stats, utils
Suggests: ggalt, ggplot2, knitr, lubridate, plotKML, raster, reshape2, rgeos, rmarkdown, spacetime, testthat, tibble, tidyr, covr
Published: 2017-01-27
Author: Adam Sparks [aut, cre], Tomislav Hengl [aut], Andrew Nelson [aut]
Maintainer: Adam Sparks <adamhsparks at>
License: MIT + file LICENSE
NeedsCompilation: no
Citation: GSODR citation info
Materials: README NEWS
CRAN checks: GSODR results


Reference manual: GSODR.pdf
Vignettes: GSODR
GSODR use case: Specified years/stations vignette
Working with spatial and climate data from GSODR
Package source: GSODR_1.0.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X Mavericks binaries: r-release: GSODR_1.0.1.tgz, r-oldrel: GSODR_1.0.1.tgz
Old sources: GSODR archive


Please use the canonical form to link to this page.