Package: GSODR
Type: Package
Title: Global Summary Daily Weather Data in R
Version: 0.3
Date: 2016-10-16
Authors@R: c(person("Adam", "Sparks", role = c("aut", "cre"),
email = "adamhsparks@gmail.com"),
person("Tomislav", "Hengl", role = "aut",
email = "tom.hengl@isric.org"),
person("Andrew", "Nelson", role = "aut",
email = "dr.andy.nelson@gmail.com"))
Maintainer: Adam Sparks <adamhsparks@gmail.com>
URL: https://github.com/adamhsparks/GSODR
BugReports: https://github.com/adamhsparks/GSODR/issues
Description: The GSODR package offers automated downloading, parsing, cleaning
and converting of Global Surface Summary of the Day (GSOD) weather data from
the from the USA National Climatic Data Center (NCDC) into Comma Separated
Values (CSV) or Geopackage (GPKG) files. The get_GSOD() function retrieves
data from the NCDC's public FTP site and reformats it from United States
Customary System (USCS) units to International System of Units (SI).
Stations are individually checked for number of missing days as defined by
the user to help ensure data quality. Stations files with too many missing
observations are omitted from the final file. Only stations with valid
reported latitude and longitude values are permitted in the final derived
data set. A list of values for 200 metre buffered elevation data, derived
from the CGIAR-CSI SRTM hole-filled 90 metre data set (Jarvis et al. 2008)
are included for stations between -60 and 60 degrees latitude with valid
latitude and longitude values. File output is returned as a comma-separated
values (CSV) or GeoPackage (GPKG) file written to a local disk in a location
selected by the user, which summarises each year by station. 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 files can be as larger than 500mb
depending on the user's stringency for missing data and geographic area of
interest. Be sure to have sufficient RAM and disk space as well as a
reasonably fast Internet connection to use this package to perform this
operation for a global data set over many years. However, for much smaller
and more manageable data sets, an individual country of interest may be
selected as well as only stations falling between -60 and 60 degrees
latitude for agroclimatology work or individual stations if the station ID
is known. The resulting files include station data (e.g., station name,
country, latitude, longitude, elevation) for use in a geographic
information system (GIS). The function was largely based on T. Hengl's
'getGSOD.R' script, available from
<http://spatial-analyst.net/book/system/files/getGSOD.R> with enhancements
to be cross-platform, more efficient with computing resources and more
flexible. For information on the original data from NCDC, please see the
GSOD readme.txt file available from,
<http://www1.ncdc.noaa.gov/pub/data/gsod/readme.txt>.
Depends:
R (>= 3.2.0)
License: GPL (>= 3)
Imports:
data.table,
doParallel,
foreach,
iterators,
parallel,
RCurl,
readr,
rgdal,
sp,
stats,
utils
Suggests:
chillR,
dplyr,
plotKML,
spacetime,
ggalt,
ggplot2,
knitr,
lubridate,
rgeos,
rmarkdown,
testthat,
tibble,
tidyr
RoxygenNote: 5.0.1
Encoding: UTF-8
NeedsCompilation: no
Repository: CRAN
LazyData: TRUE
ByteCompile: TRUE
VignetteBuilder: knitr
Confirm each of the following by checking the box. This package:
Summary
The GSODR package offers an R interface for downloading Global Surface
Summary of the Day weather data files from the United States National Climatic
Data Center, applies rules for cleaning and parses them into files useful for
researchers.
https://github.com/adamhsparks/GSODR
Researchers who use daily weather data. Most individuals I've encountered so far
are crop or plant disease modellers, hydrological modellers, etc. However,
I'm there that there are others that I'm just unaware of due to my work-sphere.
gsod: obtain daily weather data" from Jacob Van Etten, 2013
This package was written for a instructional course and has not been submitted
to CRAN or updated in some time. It does offer the same corrected elevation that
GSODR offers, however the station list is not updated from the NCDC server,
meaning that the station list provided with this package is over two years old.
It is part of a crop modelling course, not designed to only download and clean
GSOD data. GSODR also offers different types of file outputs, Geopackage or
comma-separated values (CSV).
GSODTools: R functions to select, download, and process GSOD data
This package is well written and maintained on GitHub only. The package is not
available on CRAN at this date, either. It offers many of the same functions as
GSODR. However, it does not automatically convert the values to International
System of Units (SI), which GSODR does. It also does not offer the corrected
elevation values that GSODR offers. Florian indicated that this project was
not top priority during the completion of his PhD but was happy to consider
working together in the future.
rnoaa: R interface to many NOAA data APIs
This package offers an interface to several of NOAA's weather data sets. However,
GSOD is not among the data sets that are available through this package.
Requirements
Confirm each of the following by checking the box. This package:
Publication options
paper.mdwith a high-level description in the package root or ininst/.Detail
R CMD check(ordevtools::check()) succeed? Paste and describe any errors or warnings:Scott Chamberlain, https://github.com/sckott
Brooke Anderson, https://github.com/geanders
Florian Detsch, https://github.com/fdetsch
Jeff Hansen, https://github.com/jeffreyhanson