All Projects → ropensci → Gsodr

ropensci / Gsodr

Licence: other
Global Surface Summary of the Day ('GSOD') Weather Data Client for R

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Gsodr

riem
✈️ ☀️ R package for accessing ASOS data via the Iowa Environment Mesonet ☁️ ✈️
Stars: ✭ 38 (-47.22%)
Mutual labels:  weather, rstats, r-package
nasapower
API Client for NASA POWER Global Meteorology, Surface Solar Energy and Climatology in R
Stars: ✭ 79 (+9.72%)
Mutual labels:  weather, rstats, r-package
Webmockr
R library for stubbing and setting expectations on HTTP requests
Stars: ✭ 37 (-48.61%)
Mutual labels:  r-package, rstats
Hexagon
◀️⏹▶️ R package for creating hexagon shaped xy data frames.
Stars: ✭ 40 (-44.44%)
Mutual labels:  r-package, rstats
Tl
tldr for R!
Stars: ✭ 52 (-27.78%)
Mutual labels:  r-package, rstats
Graphql
Bindings to libgraphqlparser for R
Stars: ✭ 31 (-56.94%)
Mutual labels:  r-package, rstats
Cld2
R Wrapper for Google's Compact Language Detector 2
Stars: ✭ 34 (-52.78%)
Mutual labels:  r-package, rstats
Notary
🔏📦 Signing & verification of R packages
Stars: ✭ 48 (-33.33%)
Mutual labels:  r-package, rstats
Ieeer
Search IEEE publications in R
Stars: ✭ 12 (-83.33%)
Mutual labels:  r-package, rstats
Lawn
⛔ ARCHIVED ⛔ turf.js R client
Stars: ✭ 57 (-20.83%)
Mutual labels:  r-package, rstats
Nodbi
Document DBI connector for R
Stars: ✭ 56 (-22.22%)
Mutual labels:  r-package, rstats
Mixomics
Development repository for the Bioconductor package 'mixOmics '
Stars: ✭ 58 (-19.44%)
Mutual labels:  r-package, rstats
Sofa
easy R interface to CouchDB
Stars: ✭ 30 (-58.33%)
Mutual labels:  r-package, rstats
Wellknown
WKT <-> GeoJSON
Stars: ✭ 15 (-79.17%)
Mutual labels:  r-package, rstats
Cricketdata
International cricket data for men and women, Tests, ODIs and T20s
Stars: ✭ 35 (-51.39%)
Mutual labels:  r-package, rstats
Originr
Species origin data from the web in R
Stars: ✭ 13 (-81.94%)
Mutual labels:  r-package, rstats
Getlandsat
get landsat 8 images and metadata
Stars: ✭ 47 (-34.72%)
Mutual labels:  r-package, rstats
Feddata
Functions to Automate Downloading Geospatial Data Available from Several Federated Data Sources
Stars: ✭ 70 (-2.78%)
Mutual labels:  r-package, rstats
Spenv
Combine environmental and spatial data
Stars: ✭ 8 (-88.89%)
Mutual labels:  r-package, rstats
Rtimicropem
😷 R Package for the Analysis of RTI MicroPEM Output Files 😷
Stars: ✭ 9 (-87.5%)
Mutual labels:  r-package, rstats

GSODR

tic codecov DOI CRAN_Status_Badge Project Status: Active – The project has reached a stable, usable state and is being actively developed. JOSS


A Global Surface Summary of the Day (GSOD) Weather Data Client for R

Introduction

The GSOD or Global Surface Summary of the Day (GSOD) data provided by the US National Centers for Environmental Information (NCEI) are a valuable source of weather data with global coverage. GSODR aims to make it easy to find, transfer and format the data you need for use in analysis and provides five main functions for facilitating this:

  • get_GSOD() - this function queries and transfers files from the NCEI's web server, reformats them and returns a data frame.

  • reformat_GSOD() - this function takes individual station files from the local disk and re-formats them returning a data frame.

  • nearest_stations() - this function returns a vector of station IDs that fall within the given radius (kilometres) of a point given as latitude and longitude in order from nearest to farthest.

  • update_station_list() - this function downloads the latest station list from the NCEI's server updates the package's internal database of stations and their metadata.

  • get_inventory() - this function downloads the latest station inventory information from the NCEI's server and returns the header information about the latest version as a message in the console and a tidy data frame of the stations' inventory for each month that data are reported.

When reformatting data either with get_GSOD() or reformat_GSOD(), all units are converted to International System of Units (SI), e.g., inches to millimetres and Fahrenheit to Celsius. File output is returned as a data.table object, summarising each year by station, which also includes vapour pressure and relative humidity elements calculated from existing data in GSOD. Additional data are calculated by this R package using the original data and included in the final data. These include vapour pressure (ea and es) and relative humidity calculated using the improved August-Roche-Magnus approximation (Alduchov and Eskridge 1996).

For more information see the description of the data provided by NCEI, https://www7.ncdc.noaa.gov/CDO/GSOD_DESC.txt.

How to Install

Stable Version

A stable version of GSODR is available from CRAN.

install.packages("GSODR")

Development Version

A development version is available from from GitHub. If you wish to install the development version that may have new features or bug fixes before the CRAN version does (but also may not work properly), please install the remotes package, available from CRAN. We strive to keep the main branch on GitHub functional and working properly.

if (!require("remotes")) {
  install.packages("remotes", repos = "http://cran.rstudio.com/")
  library("remotes")
}

install_github("ropensci/GSODR")

Other Sources of Weather Data in R

There are several other sources of weather data and ways of retrieving them through R. Several are also rOpenSci projects.

The GSODTools by Florian Detsch is an R package that offers similar functionality as GSODR, but also has the ability to graph the data and working with data for time series analysis.

The gsod package from DataBrew aims to streamline the way that researchers and data scientists interact with and utilise weather data and relies on GSODR, but provides data in the package rather than downloading so it is faster (though available data may be out of date).

rnoaa, from rOpenSci offers tools for interacting with and downloading weather data from the United States National Oceanic and Atmospheric Administration but lacks support for GSOD data.

stationaRy, from Richard Iannone offers hourly meteorological data from stations located all over the world. There is a wealth of data available, with historic weather data accessible from nearly 30,000 stations.

bomrang, from rOpenSci provides functions to interface with Australia Government Bureau of Meteorology (BoM) data, fetching current and historical data including précis and marine forecasts, current weather data from stations, agriculture bulletin data, BoM 0900 or 1500 weather bulletins and satellite and radar imagery.

riem from rOpenSci allows to get weather data from Automated Surface Observing System (ASOS) stations (airports) in the whole world thanks to the Iowa Environment Mesonet website.

weathercan from rOpenSci makes it easier to search for and download multiple months/years of historical weather data from Environment and Climate Change Canada (ECCC) website.

clifro from rOpenSci is a web portal to the New Zealand National Climate Database and provides public access (via subscription) to around 6,500 various climate stations (see https://cliflo.niwa.co.nz/ for more information). Collating and manipulating data from CliFlo (hence clifro) and importing into R for further analysis, exploration and visualisation is now straightforward and coherent. The user is required to have an Internet connection, and a current CliFlo subscription (free) if data from stations, other than the public Reefton electronic weather station, is sought.

Notes

WMO Resolution 40. NOAA Policy

Users of these data should take into account the following (from the NCEI website):

"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." WMO Resolution 40. NOAA Policy

Meta

  • Please report any issues or bugs.

  • License: MIT

  • To cite GSODR, please use: Adam H Sparks, Tomislav Hengl and Andrew Nelson (2017). GSODR: Global Summary Daily Weather Data in R. The Journal of Open Source Software, 2(10). DOI: 10.21105/joss.00177.

  • Please note that the GSODR project is released with a Contributor Code of Conduct By participating in the GSODR project you agree to abide by its terms.

ropensci

References

Alduchov, O.A. and Eskridge, R.E., 1996. Improved Magnus form approximation of saturation vapor pressure. Journal of Applied Meteorology and Climatology, 35(4), pp. 601-609 DOI: 10.1175/1520-0450(1996)035<0601:IMFAOS>2.0.CO;2.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].