Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/washingtonpost/data-2c-beyond-the-limit-usa
The Washington Post's analysis of NOAA climate change data for the contiguous United States
https://github.com/washingtonpost/data-2c-beyond-the-limit-usa
Last synced: 5 days ago
JSON representation
The Washington Post's analysis of NOAA climate change data for the contiguous United States
- Host: GitHub
- URL: https://github.com/washingtonpost/data-2c-beyond-the-limit-usa
- Owner: washingtonpost
- License: other
- Created: 2020-08-07T12:59:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-16T22:20:27.000Z (over 3 years ago)
- Last Synced: 2024-11-05T23:02:38.708Z (8 days ago)
- Language: HTML
- Homepage:
- Size: 16.7 MB
- Stars: 62
- Watchers: 4
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.html
- License: LICENSE
Awesome Lists containing this project
README
code{white-space: pre;}
pre:not([class]) {
background-color: white;
}if (window.hljs) {
hljs.configure({languages: []});
hljs.initHighlightingOnLoad();
if (document.readyState && document.readyState === "complete") {
window.setTimeout(function() { hljs.initHighlighting(); }, 0);
}
}h1 {
font-size: 34px;
}
h1.title {
font-size: 38px;
}
h2 {
font-size: 30px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 18px;
}
h5 {
font-size: 16px;
}
h6 {
font-size: 12px;
}
.table th:not([align]) {
text-align: left;
}.main-container {
max-width: 940px;
margin-left: auto;
margin-right: auto;
}
code {
color: inherit;
background-color: rgba(0, 0, 0, 0.04);
}
img {
max-width:100%;
height: auto;
}
.tabbed-pane {
padding-top: 12px;
}
.html-widget {
margin-bottom: 20px;
}
button.code-folding-btn:focus {
outline: none;
}$(document).ready(function () {
window.buildTabsets("TOC");
});Climate change in the contiguous United States
This repository contains analysis code and data supporting The Washington Post’s series, “2ºC: Beyond the Limit.” The following stories are based on this analysis:
“Extreme climate change has arrived in America,” published August 13, 2019
“Fires, floods and free parking: California’s unending fight against climate change,” published December 5, 2019
“In fast-warming Minnesota, scientists are trying to plant the forests of the future,” published April 29, 2020
“This giant climate hot spot is robbing the West of its water,” published August 7, 2020Note that the first two stories, published in 2019, used an earlier version of this analysis that ran through 2018.
About our analysis
To analyze warming temperatures in the United States, The Washington Post used the National Oceanic and Atmospheric Administration’s Climate Divisional Database (nClimDiv) and Gridded 5km GHCN-Daily Temperature and Precipitation Dataset (nClimGrid) data sets, which provide monthly temperature data between 1895 and 2019 for the Lower 48 states. We calculated annual mean temperature trends in each state and county in the Lower 48 using linear regression — analyzing both annual average temperatures and temperatures for the three-month winter season (December, January and February).
How to use the data
We are offering several data files that are the product of our analysis of climate change in the contiguous United States from 1895-2019.
Annual average temperatures for each state
/data/processed/climdiv_state_year.csv
. and county/data/processed/climdiv_county_year.csv
. The code to produce this file can be found in/analysis/process_nclimdiv.Rmd
. Each row has the following variables:
year
fips
A five digit fips code for the countytemp
The average annual temperature in Fahrenheittempc
The average annual temperature in CelsiusTemperature change estimates for each of the Lower 48 states
/data/processed/model_state.csv
. The code to produce this file is found in/analysis/model_temperature_change.Rmd
. Each row has the following variables
fips
A two digit fips code for the stateSTATE_NAME
the state nameAnnual
Estimate of annual average temperature change in Celsius for the state, 1895-2019Fall
temperature change in September, October and NovemberSpring
temperature change in March, April and MaySummer
temperature change in June, July and AugustWinter
temperature change in December and the following January and Februarymax_warming_season
the season where temperatures are increasing fastestTemperature change estimates for counties in the contiguous U.S. can be found in
/data/processed/model_county.csv
. The code to produce this file is found in/analysis/model_temperature_change.Rmd
. Each row has the following variables
fips
A five digit fips code for the countyCTYNAME
the name of the countySTNAME
the name of the stateAnnual
Estimate of annual average temperature change in Celsius for the county, 1895-2019Fall
temperature change in September, October and NovemberSpring
temperature change in March, April and MaySummer
temperature change in June, July and AugustWinter
temperature change in December and the following January and Februarymax_warming_season
the season where temperatures are increasing fastestCounty temperature change data joined to a shapefile in GeoJSON format
/data/processed/model_county.geojson
. The code to produce this file is found in/analysis/model_temperature_change.Rmd
.Gridded emperature change data for the contiguous U.S. in GeoTiff format
/data/processed/nclimgrid_slopes_1895_2019.tif
. The code to produce this file is found in/analysis/analyze_nclimgrid.Rmd
.When publishing a story, graphic or other work based on this data set, please credit The Washington Post, link to this repository and send us an email so that we can track the ways in which this data is used.
Reproducing the Post’s analysis
We have included code that can be used to reproduce our analysis in the following RMarkdown notebooks:
These files were generated using R version 3.5.1 and the following packages:
tidyverse
,sf
,raster
,scales
.Licensing
All code in this repository is available under the MIT License. Files in the
data/processed/
directory are available under the Creative Commons Attribution 4.0 International (CC BY 4.0) license.
// add bootstrap table styles to pandoc tables
function bootstrapStylePandocTables() {
$('tr.header').parent('thead').parent('table').addClass('table table-condensed');
}
$(document).ready(function () {
bootstrapStylePandocTables();
});(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
document.getElementsByTagName("head")[0].appendChild(script);
})();