All Projects → cortinah → hockeystick

cortinah / hockeystick

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
Download and Visualize Essential Global Heating Data in R

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to hockeystick

pi-eco-indicator
Display at-a-glance data of carbon intensity or Octopus Agile prices on a Pimoroni Blinkt! display or a Pimoroni Inky pHAT display.
Stars: ✭ 15 (-64.29%)
Mutual labels:  climate, carbon, carbon-emissions, climate-change
patch-ruby
Patch's Ruby client library - https://www.patch.io
Stars: ✭ 50 (+19.05%)
Mutual labels:  climate, carbon, carbon-emissions, climate-change
openair-cyan
DIY small-scale open hardware direct air carbon capture device called Cyan. Our documentation is on https://openair-collective.github.io/openair-cyan
Stars: ✭ 54 (+28.57%)
Mutual labels:  climate, carbon, climate-change
awesome-climate-data
Data sources, programming libraries and open source organisations that are working on the climate emergency
Stars: ✭ 17 (-59.52%)
Mutual labels:  climate-data, climate-science, climate-change
Climate-Change-Datasets
Here is a list of Climate Change Public Datasets 🌦🌪🌫🌀💧🌊
Stars: ✭ 115 (+173.81%)
Mutual labels:  climate, climate-data, climate-change
pcmdi metrics
Self contained packages to run PCMDI Metrics
Stars: ✭ 44 (+4.76%)
Mutual labels:  climate, climate-data, climate-science
cloud-carbon-footprint
Cloud Carbon Footprint is a tool to estimate energy use (kilowatt-hours) and carbon emissions (metric tons CO2e) from public cloud usage
Stars: ✭ 510 (+1114.29%)
Mutual labels:  climate, carbon-emissions
mptrac
Massive-Parallel Trajectory Calculations (MPTRAC) is a Lagrangian particle dispersion model for the analysis of atmospheric transport processes in the troposphere and stratosphere.
Stars: ✭ 19 (-54.76%)
Mutual labels:  climate, climate-science
cft
Climate futures toolbox: easy MACA (MACAv2) climate data access 📦
Stars: ✭ 16 (-61.9%)
Mutual labels:  climate, climate-data
hector
The Hector Simple Climate Model
Stars: ✭ 72 (+71.43%)
Mutual labels:  climate, climate-change
trends.earth
trends.earth - measure land change
Stars: ✭ 69 (+64.29%)
Mutual labels:  climate, climate-change
netpositive-money.github.io
Bitcoiners contributing to climate change solutions - the website
Stars: ✭ 17 (-59.52%)
Mutual labels:  climate, climate-change
openclimate-demo
Open Climate Repo
Stars: ✭ 54 (+28.57%)
Mutual labels:  climate, climate-change
blockchain-carbon-accounting
This project implements blockchain applications for climate action and accounting, including emissions calculations, carbon trading, and validation of climate claims. It is part of the Linux Foundation's Hyperledger Climate Action and Accounting SIG.
Stars: ✭ 123 (+192.86%)
Mutual labels:  climate, climate-change
hacktoberfest-2020
Let's tackle the Climate-Change together with Open-Source 🌍 + 👩‍💻
Stars: ✭ 23 (-45.24%)
Mutual labels:  climate, climate-change
pygac
A python package to read and calibrate NOAA and Metop AVHRR GAC and LAC data
Stars: ✭ 14 (-66.67%)
Mutual labels:  climate, noaa
open-climate-investing
Application and data for analyzing and structuring portfolios for climate investing.
Stars: ✭ 20 (-52.38%)
Mutual labels:  climate-data, climate-change
climate
The R climate package: an interface for downloading in-situ meteorological (and hydrological) dataset
Stars: ✭ 51 (+21.43%)
Mutual labels:  climate, climate-data
ClimateChangeProjections
An embeddable map that shows climate change projections. How hot will it be by 2070 if we don't do something about it? Accessible at https://climatechange.codeforafrica.org
Stars: ✭ 29 (-30.95%)
Mutual labels:  climate, climate-change
HydroData
An R 📦 for finding and getting geospatial earth systems data
Stars: ✭ 30 (-28.57%)
Mutual labels:  climate, noaa

hockeystick

Lifecycle: stable R-CMD-check CRAN status

The goal of hockeystick is to make essential Global Heating datasets easily available in R to non-climate experts. hockeystick users can download the latest raw data from authoritative sources as well as view it via pre-defined ggplot2 charts. Datasets include atmospheric CO2 and CH4, carbon emissions, instrumental, reconstructed, and paleo ice-core temperature records, sea levels, hurricanes, and Arctic/Antarctic sea-ice.

The choice of data was originally based on Professor Stefan Rahmstorf’s presentation on The 5 Most Important Data Sets of Climate Science. I came across this on a post on the Open Mind blog. I wrote my own post on obtaining and visualizing this data (now out of date), which is the basis for this package. Additional datasets and visualizations have been added over The name of the package stems from the well known hockeystick temperature chart.

hockeystick was highlighted on the RStudio RViews blog by Joseph Rickert as one of the “Top 40” new packages on CRAN in February 2021.

New in version 0.7.0: Globally averaged methane (CH4) concentration from NOAA (see below).

New in version 0.7.0: Cumulative emissions by country visualization (see below).

New in version 0.6.0: Global CO2 emissions by region and country from GCP.

New in version 0.5.0: North Atlantic hurricane data from NOAA.

Installation

To install the latest hockeystick release from CRAN type:

install.packages("hockeystick")

You may alternatively install the development version from https://github.com/cortinah/hockeystick with:

remotes::install_github("cortinah/hockeystick")

Downloading and viewing global heating data

Retrieve NOAA/ESRL Mauna Loa CO2 Observatory concentration data and plot:

library(hockeystick)
ml_co2 <- get_carbon()
plot_carbon(ml_co2)

Retrieve GCP global CO2 emissions and plot:

emissions <- get_emissions()
plot_emissions(emissions)

Visualize cumulative emissions by country:

emissions_map()

Retrieve NASA/GISS global surface temperature anomaly data and plot:

anomaly <- get_temp()
plot_temp(anomaly)

Visualize warming using Ed Hawkins styled “warming stripes”:

warming_stripes()

warming_stripes(stripe_only = TRUE, col_strip = viridisLite::viridis(11))

Retrieve tide gauge and satellite sea level data and plot:

gmsl <- get_sealevel()
plot_sealevel(gmsl)

Retrieve July annual Arctic Sea Ice Index and plot:

seaice <- get_seaice()
plot_seaice(seaice)

get_seaice() arguments can be modified to download Antarctic sea ice, and allow any month.

You can also visualize sea ice by month and year:

arcticice <- get_icecurves()
plot_icecurves(arcticice)

Retrieve Common Era temperature reconstruction and plot it with instrumental record:

anomaly2k <- get_temp2k()
plot_temp2k(anomaly2k)

Retrieve NOAA HURDAT2 hurricane data and plot:

hurricanes <- get_hurricanes()
plot_hurricanes(hurricanes)

plot_hurricane_nrg(hurricanes)

Retrieve NOAA/ESRL CH4 Globally averaged mean data and plot:

library(hockeystick)
ch4 <- get_methane()
plot_methane(ch4)

Retrieve Vostok paleo ice core data and plot:

vostok <- get_paleo()
plot_paleo(vostok)

Managing the cache

By default, no climate data is cached, and all data is downloaded every time any of the get_ functions is called. To cache data for future use, use the write_cache = TRUE option, available in all of the get_ functions. To download and cache all data use hockeystick_update_all(). To view the files, date, and size of cached data use hockeystick_cache_details(). To re-download data from the source use the use_cache = FALSE argument in any of the get_ functions, for example: get_carbon(use_cache = FALSE, write_cache = TRUE). To delete all cached data use hockeystick_cache_delete_all().

Users may also cache data by default by adding options(hs_write_cache = TRUE)to their script or .Rprofile file.

All together now: climate data grid

climate_grid()

Acknowledgments

Notes and resources

  • All data is compiled to the best of my ability from reliable and peer-reviewed sources. Please open an issue if you are aware of enhanced or additional data that may be added to the package. Building hockeystick is driven by my interest in tracking climate data and making it easily available to the community.
  • Here are some online resources I have found very helpful to learn mo re about climate science:
  • MIT edX Global Warming Science. https://www.edx.org/course/global-warming-science
  • SDG Academy: Climate Change: The Science and Global Impact. https://sdgacademy.org/course/climate-change-the-science-and-global-impact/
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].