Uploaded April 2023 | Updated September 2026, 1 week ago
Learn to create your own climate spiral using p5.js and temperature data. Originally designed by the climate scientist Ed Hawkins, the climate spiral is a visual representation of the changing temperatures over time, illustrating the urgent need to address climate change. Code: thecodingtrain.com/challenges/178-climate-spiral
π Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-coding-challenge-178-visualizing-data
πΉοΈ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/sketches/r69De6khN
π₯ Previous video: youtu.be/IxdGyqhppis?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π₯οΈ National Centre for Atmospheric Science: ncas.ac.uk
π₯οΈ Ed Hawkin's website: edhawkins.org
π NASA Earth Observatory - Global Temperatures: earthobservatory.nasa.gov/world-of-change/global-temperatures
π GISS Surface Temperature Analysis (GISTEMP v4): data.giss.nasa.gov/gistemp
π GISS Surface Temperature Analysis FAQ: data.giss.nasa.gov/gistemp/faq
π GLOBAL SURFACE TEMPERATURE CHANGE: pubs.giss.nasa.gov/docs/2010/2010_Hansen_ha00510u.pdf
π Improvements in the GISTEMP Uncertainty Model: agupubs.onlinelibrary.wiley.com/doi/10.1029/2018JD029522
π National Centers for Environmental Information: ncei.noaa.gov/access/metadata/landing-page/bin/iso?id=gov.noaa.ncdc:C00934
π Suggestion from ABohyn: github.com/CodingTrain/Suggestion-Box/issues/1789
π p5.loadTable: p5js.org/reference/#/p5/loadTable
π p5.TableRow: p5js.org/reference/#/p5.TableRow
π lerpColor(): p5js.org/reference/#/p5/lerpColor
Videos:
π₯ Climate Spiral: youtube.com/watch?v=jWoCXLuTIkI
π Polar Coordinates: youtu.be/O5wjXoFrau4
π Translate, Rotate, Push/Pop: youtu.be/o9sgjuh-CBM
Related Coding Challenges:
π 48 White House Social Media Data Visualization: youtu.be/UrznYJltZrU
π 58 3D Earthquake Data Visualization: youtu.be/dbs4IYGfAXc
π 96 Visualizing the Digits of Pi: youtu.be/WEd_UIKG-uc
π 109 Visualizing 500,000 Subscribers: youtu.be/Ae73YY_GAU8
Timestamps:
0:00 Welcome to a special Earth Day Coding Challenge!
0:35 What is a temperature anomaly?
2:28 NASA Goddard Institute for Space Studies website
3:17 Preview the data
4:34 Upload the data
5:13 Use loadTable() to preload the data
7:01 Check out the data
9:28 Set up the base pattern
10:42 Polar Coordinates
12:36 Add the month labels
16:11 Time for the data!
17:05 Draw the spiral
18:09 Set up global variables
19:04 Map the x, y positions to the data
20:27 Loop through all of the data
21:57 Check for null values
22:43 Animate the spiral
25:17 Add one month at a time
28:47 Add color to the spiral
29:42 Connect the points with a line segment
34:45 Use lerpColor() to vary color
38:00 Use parseFloat() to convert a string to a float
38:40 We have the climate spiral
40:16 Suggestions for possible variations
40:42 Outro
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#data #visualization #datavisualization #climatespiral #climatechange #p5js #javascript
Learn to create your own climate spiral using p5.js and temperature data. Originally designed by the climate scientist Ed Hawkins, the climate spiral is a visual representation of the changing temperatures over time, illustrating the urgent need to address climate change. Code: thecodingtrain.com/challenges/178-climate-spiral
π Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-coding-challenge-178-visualizing-data
πΉοΈ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/sketches/r69De6khN
π₯ Previous video: youtu.be/IxdGyqhppis?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π₯οΈ National Centre for Atmospheric Science: ncas.ac.uk
π₯οΈ Ed Hawkin's website: edhawkins.org
π NASA Earth Observatory - Global Temperatures: earthobservatory.nasa.gov/world-of-change/global-temperatures
π GISS Surface Temperature Analysis (GISTEMP v4): data.giss.nasa.gov/gistemp
π GISS Surface Temperature Analysis FAQ: data.giss.nasa.gov/gistemp/faq
π GLOBAL SURFACE TEMPERATURE CHANGE: pubs.giss.nasa.gov/docs/2010/2010_Hansen_ha00510u.pdf
π Improvements in the GISTEMP Uncertainty Model: agupubs.onlinelibrary.wiley.com/doi/10.1029/2018JD029522
π National Centers for Environmental Information: ncei.noaa.gov/access/metadata/landing-page/bin/iso?id=gov.noaa.ncdc:C00934
π Suggestion from ABohyn: github.com/CodingTrain/Suggestion-Box/issues/1789
π p5.loadTable: p5js.org/reference/#/p5/loadTable
π p5.TableRow: p5js.org/reference/#/p5.TableRow
π lerpColor(): p5js.org/reference/#/p5/lerpColor
Videos:
π₯ Climate Spiral: youtube.com/watch?v=jWoCXLuTIkI
π Polar Coordinates: youtu.be/O5wjXoFrau4
π Translate, Rotate, Push/Pop: youtu.be/o9sgjuh-CBM
Related Coding Challenges:
π 48 White House Social Media Data Visualization: youtu.be/UrznYJltZrU
π 58 3D Earthquake Data Visualization: youtu.be/dbs4IYGfAXc
π 96 Visualizing the Digits of Pi: youtu.be/WEd_UIKG-uc
π 109 Visualizing 500,000 Subscribers: youtu.be/Ae73YY_GAU8
Timestamps:
0:00 Welcome to a special Earth Day Coding Challenge!
0:35 What is a temperature anomaly?
2:28 NASA Goddard Institute for Space Studies website
3:17 Preview the data
4:34 Upload the data
5:13 Use loadTable() to preload the data
7:01 Check out the data
9:28 Set up the base pattern
10:42 Polar Coordinates
12:36 Add the month labels
16:11 Time for the data!
17:05 Draw the spiral
18:09 Set up global variables
19:04 Map the x, y positions to the data
20:27 Loop through all of the data
21:57 Check for null values
22:43 Animate the spiral
25:17 Add one month at a time
28:47 Add color to the spiral
29:42 Connect the points with a line segment
34:45 Use lerpColor() to vary color
38:00 Use parseFloat() to convert a string to a float
38:40 We have the climate spiral
40:16 Suggestions for possible variations
40:42 Outro
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#data #visualization #datavisualization #climatespiral #climatechange #p5js #javascript










