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 Centers for Environmental Information (NCEI) for use in R. 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 elements, 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 NCEI, please see the GSOD readme.txt file available from, .

Maintainer: Adam Sparks <adamhsparks at gmail.com>

Author(s): Adam Sparks* (http://orcid.org/0000-0002-0061-8359), Tomislav Hengl* (http://orcid.org/0000-0002-9921-5129), Andrew Nelson* (http://orcid.org/0000-0002-7249-3778)

Install package and any missing dependencies by running this line in your R console:

install.packages("GSODR")

Depends R (>= 3.2.0)
Imports curl, data.table, dplyr, fields, magrittr, purrr(>=0.2.0), R.utils, readr, rgdal(>=1.1-9), sp, stats, utils
Suggests ggplot2, knitr, lubridate, plotKML, raster, reshape2, rgeos, rmarkdown, roxygen2(>=6.0.1), spacetime, testthat, tibble, tidyr, covr
Enhances
Linking to
Reverse
depends
Reverse
imports
Reverse
suggests
Reverse
enhances
Reverse
linking to

Package GSODR
Materials
URL https://github.com/ropensci/GSODR
Task Views
Version 1.0.3
Published 2017-06-13
License MIT + file LICENSE
BugReports https://github.com/ropensci/GSODR/issues
SystemRequirements
NeedsCompilation no
Citation
CRAN checks GSODR check results
Package source GSODR_1.0.3.tar.gz