Coding Challenge 178: Climate Spiral

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 มิ.ย. 2024
  • 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...
    🚀 Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-...
    🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
    🎥 Previous video: • Coding Challenge 177: ...
    🎥 All videos: • Coding Challenges
    References:
    🌥️ National Centre for Atmospheric Science: ncas.ac.uk
    🌥️ Ed Hawkin's website: edhawkins.org
    🌎 NASA Earth Observatory - Global Temperatures: earthobservatory.nasa.gov/wor...
    🌎 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/...
    🌎 Improvements in the GISTEMP Uncertainty Model: agupubs.onlinelibrary.wiley.c...
    🌊 National Centers for Environmental Information: www.ncei.noaa.gov/access/meta...
    🔗 Suggestion from ABohyn: github.com/CodingTrain/Sugges...
    🔗 p5.loadTable: p5js.org/reference/#/p5/loadT...
    🔗 p5.TableRow: p5js.org/reference/#/p5.TableRow
    🔗 lerpColor(): p5js.org/reference/#/p5/lerpC...
    Videos:
    🎥 Climate Spiral: • Climate Spiral
    🚂 Polar Coordinates: • 3.4 Polar Coordinates ...
    🚂 Translate, Rotate, Push/Pop: • How to Rotate Shapes i...
    Related Coding Challenges:
    🚂 48 White House Social Media Data Visualization: • Coding Challenge #48: ...
    🚂 58 3D Earthquake Data Visualization: • Coding Challenge #58: ...
    🚂 96 Visualizing the Digits of Pi: • Coding Challenge #96: ...
    🚂 109 Visualizing 500,000 Subscribers: • Coding Challenge #109:...
    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/pas...
    🚩 Suggest Topics: github.com/CodingTrain/Sugges...
    💡 GitHub: github.com/CodingTrain
    💬 Discord: thecodingtrain.com/discord
    💖 Membership: th-cam.com/users/thecodingtrainjoin
    🛒 Store: standard.tv/codingtrain
    🖋️ Twitter: / thecodingtrain
    📸 Instagram: / the.coding.train
    🎥 Coding Challenges: • Coding Challenges
    🎥 Intro to Programming: • Start learning here!
    🔗 p5.js: p5js.org
    🔗 p5.js Web Editor: editor.p5js.org/
    🔗 Processing: processing.org
    📄 Code of Conduct: github.com/CodingTrain/Code-o...
    This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
    #data #visualization #datavisualization #climatespiral #climatechange #p5js #javascript

ความคิดเห็น • 221

  • @TheQxY
    @TheQxY ปีที่แล้ว +54

    I like what this is trying to visualize, but I think it's a slightly misleading design. As the area of the circle of 1 degree is much larger, it will disproportionally look like there is more warmed temperatures, as it covers more of the canvas, while the colder temperatures are underrepresented by being encapsulated by a smaller circle. On top of that, this does not illustrate temperature densities very well, so I think introducing some opacity would be a good idea.

    • @TheCodingTrain
      @TheCodingTrain  ปีที่แล้ว +31

      Yes, this is such important feedback, maybe I can address this comment and help clarify for viewers on a live stream. If you have any language you'd suggest for the video description I'd be glad to add!

  • @chrismanning5232
    @chrismanning5232 ปีที่แล้ว +80

    I love how chaotic this coding challenge is, haha. Seems like it may have been a last minute video. These are always more fun to see your train of thought (pun intended), versus the well-produced + animated newer videos (imo).

    • @pajanightbadger1713
      @pajanightbadger1713 ปีที่แล้ว +3

      It was last minute - he was paid a hefty sum to do this video...

    • @chrismanning5232
      @chrismanning5232 ปีที่แล้ว +19

      🙄 the crazies out in full force in this comment section

    • @pajanightbadger1713
      @pajanightbadger1713 ปีที่แล้ว +1

      @@chrismanning5232 You only know yourself bro

    • @jayjasespud
      @jayjasespud ปีที่แล้ว +8

      @@pajanightbadger1713 Good, he should be paid for his work.

    • @98danielray
      @98danielray ปีที่แล้ว +10

      ​​@@pajanightbadger1713 you should unironically end it if you actually think he was paid by "big climate" for this

  • @ensabinha
    @ensabinha ปีที่แล้ว +48

    Love that you are back with the coding challenges! This is truly awesome.

  • @tofonofo4606
    @tofonofo4606 ปีที่แล้ว +6

    This was awesome Dan, thank you for taking us on this adventure. The new whiteboard transitions look super! Keep it up. Choo Choo!

  • @sherhy3689
    @sherhy3689 ปีที่แล้ว +7

    all these years, i am amazed at Daniel's character that shines through, whatever the coding challenge of that video may be

  • @simonabunker
    @simonabunker ปีที่แล้ว +6

    This is a really nice real world example. It would be great to see more visualisations using real world data. And great to see your train of thought - especially when things go wrong.

  • @mreazl6227
    @mreazl6227 ปีที่แล้ว +2

    I love all of your videos, I'm watching you since 2020-2021 and you have helped me solve lots of problems I have in programming! Unfortunately I quit programming but it's still fun to watch your videos and hear about your thinking process while you're programming these challenges, you really make my day when I see a video of yours!

    • @user-hq3ee4yy8o
      @user-hq3ee4yy8o ปีที่แล้ว

      If you don't mind me asking why did you quit programming

  • @clausewitzianwar
    @clausewitzianwar ปีที่แล้ว +15

    That buzzer sound is always such a jumpscare for me lol

    • @chrismanning5232
      @chrismanning5232 ปีที่แล้ว +3

      Same, it's way too loud

    • @michaeldamolsen
      @michaeldamolsen ปีที่แล้ว +1

      @@chrismanning5232 ... and a lot longer than it needs to be.

    • @TheCodingTrain
      @TheCodingTrain  ปีที่แล้ว +6

      Ah, apologies, this is the first time I'm getting this feedback. I am making a note to tone it down or consider something different in the future.

    • @michaeldamolsen
      @michaeldamolsen ปีที่แล้ว +2

      @@TheCodingTrain "... this is the first time I'm getting this feedback" - Yes, I think it is an "anomoly" :D Your usual videos have less mistakes so it has been much less annoying in the past.

    • @_rlb
      @_rlb ปีที่แล้ว +3

      @@michaeldamolsen *fewer mistakes. Less mistakes itself is a mistake ;)

  • @bkucenski
    @bkucenski ปีที่แล้ว +10

    JavaScript inadvertently teaches you to care about data types by being so miserable if you're not careful.

  • @mikejones-vd3fg
    @mikejones-vd3fg 9 หลายเดือนก่อน +2

    Hey Dan, long time no code, im just a hobby programmer, started out wanting to be a real one but got into other things, and recently Microcontrollers brought me back to programming with a renewed interest. Something about being closer to and being able to manipulate the hardware makes it so much more satisfying. Dont get me wrong, colourful flashing pixels is what brought me into programming in the first place, but i sort of grown tired of 2d graphics and starting to appreciate natures real graphics more, although ai has made things more interesting, we're still just starting at a 2d screen watching something act like its alive, when we could be making something come alive like a fountain or light or a drone or a robot flying to adromeda taking pictures on the way. Seeing how to interface the "nature of code" with real hardware and the real world would be very cool. Anyway Ive finally managed to blink the LED on a chinese knockoff microcontroller and in honour of this channel, i made it blink according to Perlin noise! which sets the delay between blink. So its not a random glitchy blinker, or a robotic perfectly on time blinker, its something a little more human, now i can look at it for hours, thank you.
    By the way, ive been playing around with chatgtp and processing and its been pretty impressive and frustrating at the same time, it takes some time to get what you want , almost as much if learned how to do it yourself id imagine, but it understand things like "make it a wavey moitoin" and it uses sin's and cos's all over the place to make the effects you verbalize.

  • @enricometzner
    @enricometzner ปีที่แล้ว +1

    I think about if you can set the fill- and stroke-color within beginShape() and endShape() for each vertex as it is possible in Processing Java. With this you would get also a nice color gradient along each line segment.
    But a great video and lovely chaos again. 😀

  • @marcogalo3631
    @marcogalo3631 ปีที่แล้ว +1

    Amazing work. Had you changed your mic?

  • @egor.okhterov
    @egor.okhterov ปีที่แล้ว +3

    Don't know why but I like this video so much! I don't like these polished synthetic videos where everything goes according to script. This one feels very alive :
    Would love to see 3D coding challenge! 😀

  • @elpioterro
    @elpioterro ปีที่แล้ว

    Man I love your content. Have a great day ❤️

  • @jonathanmeystrik6827
    @jonathanmeystrik6827 ปีที่แล้ว

    as always, an incredible video, so entertaining, so inspiring

  • @tech.corner
    @tech.corner ปีที่แล้ว

    Wow! This video is truly captivating! 👍

  • @bkucenski
    @bkucenski ปีที่แล้ว +35

    Imagine how much cooler the earth would be if we just moved the baseline up a couple degrees.

  • @kurishutofu
    @kurishutofu ปีที่แล้ว

    @12:14 It's the polar to cartesian coordinate song!

  • @RekhaGujar83
    @RekhaGujar83 ปีที่แล้ว +1

    Best channel for coding

  • @joshjh-xy8ey
    @joshjh-xy8ey ปีที่แล้ว +1

    That's so cool. I am studying Computer Science at the University of Reading. I think I have seen Ed around campus once or twice.

  • @DaSmokeDaddy
    @DaSmokeDaddy 5 หลายเดือนก่อน

    Are there any tutorials available for generating cross-eyed or parallel stereo pair 'videos' in processing v4.5?

  • @LoPhatKao
    @LoPhatKao ปีที่แล้ว

    always nice waking up to a new Coding Train

  • @shortnr
    @shortnr ปีที่แล้ว +4

    Would it be difficult to smooth out the lines with Bezier splines? I recall seeing a video where Bezier splines are constructed with a bunch of lerps anyway, haha.

    • @shortnr
      @shortnr ปีที่แล้ว

      @@var67 That's a really good point. I wonder how much more difficult it would be to pick the control points such that the individual data points were exact, but the connecting lines were still smooth and within 1-2% of the lerp between data points?

  • @CodingAdventures
    @CodingAdventures ปีที่แล้ว +1

    Super interesting subject.... as always ;-) Also, the video quality is very high ... did you upgrade your video lights or camera?

    • @TheCodingTrain
      @TheCodingTrain  ปีที่แล้ว +1

      Yes! I got a new camera! (and also adjusted some audio settings)

  • @siddharth_singh9
    @siddharth_singh9 ปีที่แล้ว

    amazing video as alwaysss

  • @IsaacPiera
    @IsaacPiera ปีที่แล้ว

    In my implementation each call to the loop draws the current month, then increases the month and if it overflows it resets it to zero and increases the year. The I don't delete the previous frame, so each loop draws on top of the previous one.

  • @igotapochahontas
    @igotapochahontas 11 หลายเดือนก่อน

    I'm definitely getting that book. But is it about p5 or processing? I'd prefer p5 cuz you already have a processing one 🤷‍♂️

  • @kipchickensout
    @kipchickensout ปีที่แล้ว

    i wonder what's the best way to do that thing where he coloured parts of each line depending on how cold it's at the part of the line, and not the whole line

  • @aiboard__board__adia1245
    @aiboard__board__adia1245 ปีที่แล้ว +1

    hello, for accuracy, the initial radius needs to be increased in order to accurately compare the initial and final results, is it possible to realize something like virtual zoom 3d for different radii, that is, to bend in spatial dimensions in the form of a tunnel inside which there is a climatic spiral.

  • @RenkoGSL
    @RenkoGSL ปีที่แล้ว

    You have an incredible amount of videos and they are all really amazing, but I searched this: the coding train gamma distribution and I was hoping to find it? Or maybe it doesn't exist? Hopefully we get one if not? Else maybe I can get a link? ty, keep up the good work.

  • @AtomicBl453
    @AtomicBl453 11 หลายเดือนก่อน

    This is great, think you could use gps coordinates + that data to generate a heatmap image of the world?

  • @frankbottcher4597
    @frankbottcher4597 ปีที่แล้ว +1

    thank you for the new video Dan. Nice excercise in Datavisualization and entrance to think in our world we are living on many areas. Keep your great work up!

  • @xnick_uy
    @xnick_uy ปีที่แล้ว +5

    Well done! For a moment there I was worried the code would _spiral_ out of control 🙂
    A couple of technical "details" about this representation:
    1) Not all months have really the same length. Some have 30 days, some have 31. Even worst, February has 28 days on about 75% of the years, and 29 on about 1/4th of the years (years 1900 and 2000 are special cases). If we want to be accurate with our representation (why? don't ask me why!) we should try to come up with some way to figure out an anomaly value for each single day of the period -- but not without checking the documentation too, to confirm whether the monthly averages have taken the real duration into account or not.
    2) I do agree that contributing to awareness about climate change is very, very important. But in this case, a common flaw in circular plots and pie charts is appearing: the farther you are from the center, the data points will have a stronger visual impact. Compare, for instance, extreme cases: imagine that one year happens to have a -1C anomaly for all months. This will be represented by a rather small circle/polygon; on the contrary, a year for which all months have a +1C anomaly will lead to a quite large circle/polygon. Although both anomalies are numerically comparable in size, using the radial visualization causes the impression of one being significantly larger than the other.
    This imbalance can be reduced by chosing the zeroRadius and oneRadius values closer to one another, althought the end result won't be visually as impactful...
    Best regards!

    • @TheCodingTrain
      @TheCodingTrain  ปีที่แล้ว +3

      Ah, this is such good an important feedback, thank you!

    • @TheCodingTrain
      @TheCodingTrain  ปีที่แล้ว +3

      Also, if you have any language you'd suggest for the description or a pinned comment to help clarify this point feel free to let me know!

    • @flameofthephoenix8395
      @flameofthephoenix8395 8 หลายเดือนก่อน

      Climate change has been around before humans. It's not exactly recent.

  • @CharIie83
    @CharIie83 4 หลายเดือนก่อน

    is the zero radius arbitrary though? or does it line up with the data

  • @Pheonix1328
    @Pheonix1328 ปีที่แล้ว

    What happens when you lerpColor and it goes above 1.0c? It just uses the max (255, 0, 0)?

  • @apog4mer193
    @apog4mer193 ปีที่แล้ว +1

    How do you find coding projects to do?

    • @TheCodingTrain
      @TheCodingTrain  ปีที่แล้ว

      I get suggestions! github.com/CodingTrain/Suggestion-Box (I also have a short on my channel about this)

  • @leannviolet
    @leannviolet ปีที่แล้ว +1

    Only things I can think of to make it even better is to actually lerp between points to get the spiral more spiral instead of dodecagonal. then also lerp color from +1 to yellow at +2 (so orange is at 1.5) 😁😁

  • @berni_schmorg
    @berni_schmorg ปีที่แล้ว +1

    Hey guys!
    I've been trying to follow the Lorenz Attractor video tutorial of his and I can't seem to get the P3D renderer to work; did this get changed? How do I managed to fix this?

    • @TheCodingTrain
      @TheCodingTrain  ปีที่แล้ว +3

      Can you pop into the discord and ask there? thecodingtrain.com/discord

    • @berni_schmorg
      @berni_schmorg ปีที่แล้ว +2

      @@TheCodingTrain oh my lord what a quick reply, I'm omw!

  • @Crazyclay78YT
    @Crazyclay78YT ปีที่แล้ว +6

    39:51 wow, my first thought was "i want to 3d print that" but i wouldnt know the first thing about doing this myself, generating an .stl file (or any other, .obj, .step, etc.) using javascript sounds kinda hard lmao. every year could be 1mm thick, making it 140mm or 5.5in unless you want it bigger.

    • @boycefenn
      @boycefenn ปีที่แล้ว

      ooh that soundsd fun, almost makes me want to try it out in blender

    • @Crazyclay78YT
      @Crazyclay78YT ปีที่แล้ว

      @@mehmeterendesign the thing is, i barely know how to code. i was somewhat decent at it like 2-5 years ago, but im still nowhere near being able to do what i want without having to google how. i barely made a checker board WITH GOOGLE'S HELP.

    • @Crazyclay78YT
      @Crazyclay78YT ปีที่แล้ว

      @@boycefenn can you run scripts in blender? tbh i only know the basics so good luck lmao

    • @boycefenn
      @boycefenn ปีที่แล้ว

      @@Crazyclay78YT you only know th baics? yup me too! no clue what im doing but where theres a will theres a way!

    • @Crazyclay78YT
      @Crazyclay78YT ปีที่แล้ว

      @@boycefenn best of luck to you then lmao

  • @Mel-mu8ox
    @Mel-mu8ox ปีที่แล้ว +5

    this video makes me want to collect my own data :D
    could measure the shadowed area outside my house and sun area in morning and find average.
    could even take my house temp and see how it lines up with my gas usage. Put both together see how it holds up :D

    • @pajanightbadger1713
      @pajanightbadger1713 ปีที่แล้ว

      Why don't you measure the amount of carbon dioxide in the atmosphere?

    • @Mel-mu8ox
      @Mel-mu8ox ปีที่แล้ว

      @@pajanightbadger1713 how would I do that?
      I can only use things I have in my household :(
      if you have a way to measure something like that using everyday household items from the kitchen I would love to hear how it could be done.
      I dont know much about measuring whats in the air, so not sure if this would affect anything or not.
      The air during summer in my area gets an orange haze to it from all the dust. I think its mainly clay and sand in the air, not sure if that would affect the test or not :/

    • @pajanightbadger1713
      @pajanightbadger1713 ปีที่แล้ว

      @@Mel-mu8ox The amount of carbon dioxide in the earth's atmosphere is 0.0412%, I'm sure it would be even less than that if you aren't in a city. How you'd measure it with everyday objects is beyond me though

    • @Mel-mu8ox
      @Mel-mu8ox ปีที่แล้ว

      @@pajanightbadger1713 :( that's a shame was kinda exited about trying your methods XD

  • @jamespeterson7979
    @jamespeterson7979 ปีที่แล้ว

    looks like it's getting warmer, looks like we are on a positive journey

  • @Jkauppa
    @Jkauppa ปีที่แล้ว

    try convex sector marching (raster casting/tracing)

    • @Jkauppa
      @Jkauppa ปีที่แล้ว

      for rendering, sounds and physics, 3-in-1 engine

  • @Tenecifer
    @Tenecifer ปีที่แล้ว +1

    39:59 It's a nice french cockade... 🙃

  • @markjreed
    @markjreed ปีที่แล้ว +2

    You didn't need to worry about an angle offset for drawing the data, once you had rearranged the months so March was first. Since you're calling get() with the month name rather than the index, your loop will always fetch the values for each year in the order of that array. And since you used that same order to draw the labels, you could shuffle the month array randomly and the data points would all still point to their corresponding month label, as long as you didn't also apply any offset to the angle..

  • @alwysrite
    @alwysrite ปีที่แล้ว

    happy birthday !

  • @ulgmail
    @ulgmail ปีที่แล้ว +4

    Great Video, but I think there's a little mistake. The visualized data doesn't match the month headers. @24:50 you can see that the gap between January and December is at the bottom of the circle and not at the top where it says Dec and Jan.
    Or am I wrong here?
    I think it's because of the hard coding of the month names instead of reading them out the same way as the anomaly data.
    EDIT: Oops, should have watched it further before commenting.... All good :)

  • @spinningaround
    @spinningaround ปีที่แล้ว +1

    Please, explain Entity Component System

  • @markczumbil4203
    @markczumbil4203 ปีที่แล้ว

    Wouldn't it be easier to add a sleep function, instead of being forced to use the framerate of the draw loop? 😅(it's harder in js compared to other languages, but it's pretty simple to make it using Promisses)

  • @theitalian94
    @theitalian94 ปีที่แล้ว

    Hey people,
    I might ask a dumb question, but:
    let zeroRadius = 125;
    let oneRadius = 200;
    should these not be like this:
    let zeroRadius = 100;
    let oneRadius = 200;
    because if you don't, you change the perspective of the negative values in an other way then the plus values, or am I wrong?
    So that the drawing would not be accurate in my opinion? in relation of the minus and plus values corresponding?
    Can anybody confirm or deny this?

  • @agentx7138
    @agentx7138 ปีที่แล้ว +2

    Lol you got a context note for this.

  • @jonas_oja
    @jonas_oja ปีที่แล้ว

    15:40 🎵 Do you remember
    The (21st night of) September?

  • @AleksanderFimreite
    @AleksanderFimreite ปีที่แล้ว

    I really enjoy data visualization videoes. Something satifsfying about observing large amounts of data in various ways.
    Hoping there will be more videoes like this. I personally have no reason to doubt that the climate is changing.
    With advancements to technology and increased demand for conveniences, that is just simple growth logic, nothing hidden about it.
    What I do have some doubt in though, is whether humanity is mindfully strong enough to set aside their conveniences to make a change.
    Because that is eventually what will need to happen in various ways to make a difference I think.
    Just to elaborate a bit on that point, one point of interest would of course be to look into use of personal cars / transportation.
    If we could eliminate most of that, it would surely be a significant step towards an improvement. But as it stands right now, people would just go "nah forget it, I need it".
    But what would it take to make more people comfortable with giving up their personal car? We need better alternatives first to make it viable.
    Right now, collective transport is for the most parts rather expensive to use regularly and inconvenient to use for many personal goals.
    It would need to become either the cheaper option overall, or become so convenient that public transport can take you anywhere your personal transport can about just as quickly.
    And those are some really difficult goals to reach for various reasons.
    This is of course not the only problem to solve. But surely the other problems will face a simular level of challenges.
    It's all a convenience for people in one way or another for them to live as they have a desire for.
    And when you go "hey, please stop having a good time for the good of the environment" it's just not received well.

    • @pajanightbadger1713
      @pajanightbadger1713 ปีที่แล้ว +1

      The climate's always changing - no-one's denying that. Obviously it's going to be warmer now than it was in the ice age as we leave the ice age and head for it's opposite.
      If this was really about the environment we'd be planting trees, investing in hemp science (which can easily replace almost all of our fossil fuels, plastics etc) and mushroom science (there are fungi which can break down any pollution) but instead we're chopping down trees for Greta Thunberg's new book and for newspapers with fearmongering climate headlines, we're taxing the common man whilst the same practices are continuing among the wealthy.
      If you can't smell a rat I really don't know what to say to you.

    • @fredesch3158
      @fredesch3158 ปีที่แล้ว

      "when you go "hey, please stop having a good time for the good of the environment" it's just not received well."
      tt
      It's not received well, as it shouldn't, climate change isn't caused in a individual level, peoples confort isn't what causes it, big corporations are the main cause, and when I say main cause I don't mean like 60%, I mean they are more than 90% of greenhouse gas emissions/polluters. Our economic system may make us think that this problem should fall to individuals, but it shouldn't, the greedy corporations are the ones causing it, we can't make a difference even if we stopped 100% of our individual impact, it wouldn't even be noticeable at the end.
      Obviously I'm not advocating for just giving up everything "because it's corporations fault", do your part, but do your part because it's right, not because you want to live the illusion that it makes a difference, because it doesn't. Being big corporations fault shouldn't deter anyone from doing the right thing, but we should acknowledge it constantly, and remember the biggest impact we can make is forcing comporations to be hold accountable for the damage they cause.

    • @AleksanderFimreite
      @AleksanderFimreite ปีที่แล้ว

      ​@@fredesch3158 I agree that corporations play a significant role in this whole loop. It was never my intention to make it come off as them being innocent.
      But as with most things in this world. Hardly anything is connected to just one variable. Neither inputs or outputs.
      Sure, we can destroy a significant portion of the infrastructure and production. But what are we then left with? Mayham and civil war most likely...
      I think the majority of people have become a bit spoiled in this day and age, and could use a bit more mindfullness in their daily lives before changes can realistically be applied.
      So that is what I was aiming at changing in general. Whether this applies to business or personal matters does not really change the core challenge I feel.

    • @pajanightbadger1713
      @pajanightbadger1713 ปีที่แล้ว

      @@AleksanderFimreite It simply isn't about the environment. Environmentalism has been abducted by the political class for political purposes. And it's not the only grassroots movement that has been abducted but that's beside the point.
      Not everything under the umbrella of science is tight like maths or chemistry - climate science especially. There are many others but that's also beside the point.
      If we're serious about sorting out the environment the last thing that we'd be worrying about is cows farting and taxing everyone.

    • @AleksanderFimreite
      @AleksanderFimreite ปีที่แล้ว +1

      ​@@pajanightbadger1713 Sounds like a really well educated answer... (sarcastic)
      You are assuming that since politics use it as point of interest to exploit. That it cannot be a real problem...
      Whilst all logical thinking based on current knowledge points in the same direction with or without politics.
      Data is changing over time from what we understand to be the norm!
      I'll humor the thought if we look at it from the standpoint of history, we are nothing but a generation on this planet.
      It would be highly likely that everything we "know" is just our interpretation of the current best approximation of information through time.
      Noone holds the absolute rules to the universe, all the "knowledge" we have is just observations that someone interperated. Sometimes mistakenly.
      For all we know, the changes in temperature is totally normal every million years, and the universe just resets itself. And we just have not experienced that scope yet.
      The concept of life itself "as described" has a tendency of reaching a maximum population and then starting to fall apart due to overpopulation. Repeating in cycles.
      It could just be that there is no way around making the planet uninhabitable for all we know...
      All I know, is that if someone devotes their entire life into studying something they will understand it alot better than the avrage person.
      And when the scientists all over the world are sharing simular information it's disrespect not to at least consider the possibility out of pure ego for ones personal life style.
      People are afraid of large changes. That is the nature of all of us. But those who does not dare, also does not deserve...

  • @sethpython8968
    @sethpython8968 ปีที่แล้ว +54

    I'm sure this comment section will be reasonable and take into account long accepted scientific fact

    • @axeman2638
      @axeman2638 ปีที่แล้ว +1

      it is a scientific fact that man's co2 emissions have no effect on the climate.

    • @pajanightbadger1713
      @pajanightbadger1713 ปีที่แล้ว +1

      Shill

    • @lbgstzockt8493
      @lbgstzockt8493 ปีที่แล้ว +1

      There are fewer retarded climate change deniers than anticipated, which is nice.

    • @Vancha112
      @Vancha112 5 หลายเดือนก่อน

      Looks that way :)

    • @KnakuanaRka
      @KnakuanaRka หลายเดือนก่อน

      This guy doesn’t really attract crazy people.

  • @TheSkepticSkwerl
    @TheSkepticSkwerl ปีที่แล้ว +1

    i think you got months you pre-wrote. which means it goes from march to december, back to january, and february then the next year
    Re-checking the video. yes, you are drawing months[i] so it starts in march, and loops back to january and february before going to the next year. otherwise it's all working as intended.

  • @superdepressif6047
    @superdepressif6047 ปีที่แล้ว

    i want to code along with you but this one seems pretty hard :p

  • @alexandrustefanmiron7723
    @alexandrustefanmiron7723 ปีที่แล้ว

    Especially near the tarmac of airports!

  • @charlene6306
    @charlene6306 ปีที่แล้ว

    Can this be done in using Python

    • @TheCodingTrain
      @TheCodingTrain  ปีที่แล้ว

      Absolutely! You would likely want to find an equivalent graphics engine. You can look at p5py or something like pygame too.

  • @smika710
    @smika710 4 หลายเดือนก่อน

    Working with big data made me think that 144 rows *is* a small sample, and 5 is just a print out.

  • @jvoynar5826
    @jvoynar5826 ปีที่แล้ว

    Dinner at Bertha's and a new Coding Challenge!?

  • @urlxdpop
    @urlxdpop ปีที่แล้ว +2

    👍

  • @GRHmedia
    @GRHmedia หลายเดือนก่อน

    The problem with using data from 1950-1980 is they thought we were in a cooling trend a that point and the linked it to aerosols. So you are going to use a period that is considered an anomaly in and of itself as a base line. That seems a not very scientific unless you are trying to make the data appear to be warming on purpose. But then again if we look at global temperatures over the last 5 million years of human civilization which we can via ice core samples. We can see it has fluctuated a lot and we survived it even without modern technology.

  • @julienbongars4287
    @julienbongars4287 ปีที่แล้ว +3

    I appreciate the video but I feel like most of these mistakes can be avoided if you used proper design patterns

  • @msoulforged
    @msoulforged ปีที่แล้ว

    Heh I missed these episodes

  • @lekoronkholise9935
    @lekoronkholise9935 ปีที่แล้ว

    I'm 90% convinced that you can code literally anything you want at this point, starting to have a hard time coming up with stuff you can't solve through code 😂😂

  • @fuckingdumbo
    @fuckingdumbo ปีที่แล้ว

    Ayo our emperor still going😭
    Thank you
    You helped me learn JS
    Haven't been into coding for a while
    Came to it today

  • @nicolaskeroack7860
    @nicolaskeroack7860 ปีที่แล้ว

    Next you should create a visualization on why, I hope its not us

  • @IsaacPiera
    @IsaacPiera ปีที่แล้ว +1

    "anomoly" is not an error if you type it wrong every time :)

    • @raphaelmorgan2307
      @raphaelmorgan2307 ปีที่แล้ว

      yeah honestly the buzzer is pretty jarring and idt it's worth it for a consistent misspelling
      doesn't mess anything up in the code 🤷

  • @Troy-ol5fk
    @Troy-ol5fk 8 หลายเดือนก่อน

    In the original video the line doesn't have sharp corners

  • @Bet0usky99
    @Bet0usky99 ปีที่แล้ว

    wow'

  • @Umbra451
    @Umbra451 ปีที่แล้ว +2

    GISS is one of those acronyms where you have to be really careful about your pronunciation

  • @zicada7661
    @zicada7661 ปีที่แล้ว

    Do a video refactoring this mess please 😅

  • @yoyofargo
    @yoyofargo 8 หลายเดือนก่อน

    All I'm saying is that if you made a tutorial in Godot it would be really topical.

  • @tasneemAlam-bj8me
    @tasneemAlam-bj8me 9 หลายเดือนก่อน

    want more more coding challenges

  • @Anuchan
    @Anuchan ปีที่แล้ว +6

    The problem with visualization. Scientists love graphs and number oriented visualization, but people out if the sciences aren't good at reading those. We need more visualizations that non analytical people can understand.

    • @axeman2638
      @axeman2638 ปีที่แล้ว +2

      what we need is for this climate change nonsense to stop and for people to realise man's tiny contribution to co2 emissions (3%) has no effect on the climate.

    • @Anuchan
      @Anuchan ปีที่แล้ว +13

      @@axeman2638 We should be in a cooling period. The fact the Earth is warming is evidence of man's effect.

    • @vinlandstates
      @vinlandstates ปีที่แล้ว +1

      @@Anuchan You'll never convince low IQ people that they're wrong. Just ignore them lol

    • @axeman2638
      @axeman2638 ปีที่แล้ว +1

      @@Anuchan it's not warming, they are faking the data.

    • @axeman2638
      @axeman2638 ปีที่แล้ว +1

      ​@@dominicsieli864 go and look at the work of Tony Heller, and go and look out your window. There have been hundreds of cold records smashed all over the world in the last few years, the Maldives are not underwater, the ice caps have not melted, you have been lied to. It was never anything but a big lie to justify totalitarian dictatorship by unelected elites. I used to believe it btw. then I went and looked critically at the so called "science", I'd suggest you do the same.

  • @AntonioNoack
    @AntonioNoack ปีที่แล้ว

    Your mapping of March to the first month was a little unnecessary. In map(i,0,numMonths,0,2pi), so could have offset i like map(i-3,0,numMonths,0,2pi)
    @39:00 no, the baseline is arbitrary. Feel free to choose a color scale, where the average is zero, and both sides are equally used.

  • @basicallybrand
    @basicallybrand ปีที่แล้ว

    Are you doing something with your voice in post? it sounds a bit off. Maybe it's just my imagination.

  • @lumotroph
    @lumotroph ปีที่แล้ว +1

    3D 3 D!

  • @anj000
    @anj000 ปีที่แล้ว +3

    I don't want to be all political, but it seems a little bit naive to pick 30-years period to calculate the average baseline. I didn't study the climate, but would we need something much longer? Like I don't know 200 years?

    • @avematthew
      @avematthew ปีที่แล้ว

      www.weather.gov/rah/ClimateNormals1991-2020
      Looks like they picked 30 years because in 1930, the first time anyone did it, they had data going back to 1901.
      To be fair, actual analyses don't just use the 30 year normals exclusively. I'm not a climate scientist either, but climate publications I have read usually used all the data they had available.
      I understand the normals to just be a convenient reference point. Like, daily vs monthly temperatures are both useful.

  • @chrismanning5232
    @chrismanning5232 ปีที่แล้ว +3

    The arg structure of that loadTable function is super smelly. Idk why p5 went with that over an options object, boolean flags, literally anything else besides specific strings haha

  • @toastyPredicament
    @toastyPredicament ปีที่แล้ว

    Why won't my script work. I'm angry

  • @videobenny3
    @videobenny3 ปีที่แล้ว

    My issue with the Goddard set is NASA is using land-based weather station data, rather than satellite data.
    Why is NASA, of all agencies, using terrestrial weather stations?
    Satellite coverage is consistent, and worldwide, although it’s from 1979.

    • @anon_y_mousse
      @anon_y_mousse ปีที่แล้ว

      Yay, limit the data set even more so it can be even more misleading.

  • @GuildOfCalamity
    @GuildOfCalamity ปีที่แล้ว +2

    A comma is probably the worst idea for a delimiter ever created.

    • @anon_y_mousse
      @anon_y_mousse ปีที่แล้ว +1

      What would you suggest then? Don't say space, as it is the worst possible delimiter.

    • @egor.okhterov
      @egor.okhterov ปีที่แล้ว +1

      Comma is good enough

  • @J3ff_K1ng
    @J3ff_K1ng ปีที่แล้ว +2

    Is it me or now you have a lower voice?

    • @pajanightbadger1713
      @pajanightbadger1713 ปีที่แล้ว +1

      It's lower because there's a gun pointing at his head just off camera

    • @TheCodingTrain
      @TheCodingTrain  ปีที่แล้ว +1

      I changed some audio settings with the mic for this video so it probably sounds different, I think it's better but welcome other feedback!

    • @J3ff_K1ng
      @J3ff_K1ng ปีที่แล้ว +1

      @@TheCodingTrain I think that in the beginning you were a bit cold yet and as the video goes you warm up and like get in the mood of the video because at the end your voice sounds higher

    • @jun0_
      @jun0_ ปีที่แล้ว

      @@TheCodingTrain It sounds calmer :) This is a really appreciated change.. thank you

  • @geoffwagner4935
    @geoffwagner4935 7 หลายเดือนก่อน

    we had record breaking snow last year in foothills of California, structures collapsed

  • @brucemcgee5749
    @brucemcgee5749 ปีที่แล้ว +1

    In the original climate spiral, line colour represents time, not temperature.

  • @souzamotasacul
    @souzamotasacul ปีที่แล้ว +2

    1st

  •  6 หลายเดือนก่อน

    This chart is useless. +1 circle has 4 times more surface area than -1. So what are we even looking at? Visualization is distorted and incorrectly represents data. As if it's made to mislead people...

  • @erik....
    @erik.... ปีที่แล้ว

    But.. but.. but climate is a myth, right?!

  • @pajanightbadger1713
    @pajanightbadger1713 ปีที่แล้ว +2

    Ice age denier confirmed

  • @Death-on1dq
    @Death-on1dq ปีที่แล้ว +1

    It's actually global cycling

    • @Death-on1dq
      @Death-on1dq ปีที่แล้ว +1

      If global warming was an actual long term thing, the ice age wouldn't have happened after the dinosaurs

    • @BoxEnjoyer
      @BoxEnjoyer ปีที่แล้ว +1

      @@Death-on1dq If you're referring to the cyclical warming and cooling of the earth according to milankovitch cycles, then we should be expecting cooling due to that right now.

  • @pajanightbadger1713
    @pajanightbadger1713 ปีที่แล้ว +1

    Q: What percentage of the Earth's atmosphere is carbon dioxide?
    A: 0.0412%
    Q: What percentage of the data about the planet's climate do we have?
    A: Less than 0.000,000,003%
    Traitor

    • @BoxEnjoyer
      @BoxEnjoyer ปีที่แล้ว +1

      "I see a small number therefore you must be wrong"

    • @pajanightbadger1713
      @pajanightbadger1713 ปีที่แล้ว +1

      @@BoxEnjoyer ^Ice-age denier^

  • @zuruckvor4994
    @zuruckvor4994 ปีที่แล้ว +1

    Climate... Of course... Anyone who is self-reliant should push climate narratively... *cough* Since I don't think they're stupid, it must be intentional..

  • @wherami
    @wherami ปีที่แล้ว +4

    Too bad this is all garbage data

    • @Ther3tr0
      @Ther3tr0 ปีที่แล้ว

      why

    • @chrismanning5232
      @chrismanning5232 ปีที่แล้ว +7

      He's one of the crazies, ignore him.

    • @wherami
      @wherami ปีที่แล้ว +1

      @@chrismanning5232 i suggest you spend the time to study the climate as I have for the past 12 yrs. Do not just take the fake data they give you as fact. The ice age is going to surprise you all.

    • @98danielray
      @98danielray ปีที่แล้ว +4

      nice bait

    • @pajanightbadger1713
      @pajanightbadger1713 ปีที่แล้ว +2

      @@98danielray Did you want to work in PR (propaganda) when you were a child or has life not really gone to plan?

  • @pajanightbadger1713
    @pajanightbadger1713 ปีที่แล้ว +1

    Manbearpig salesman confirmed

  • @skeleton_craftGaming
    @skeleton_craftGaming ปีที่แล้ว +3

    First off, no it is arguing about the earth. Isn't warming second off the average median difference between two thermometers, even made by the same manufacturer, in 1951 was like one and a half degrees Celsius, so really any temperature readings until like the '80s are kind of garbage

    • @skeleton_craftGaming
      @skeleton_craftGaming ปีที่แล้ว +1

      Or at least on a global scale

    • @chrismanning5232
      @chrismanning5232 ปีที่แล้ว +16

      Weird point about the thermometers of the time. You're assuming 1) these are regular, off-the-shelf consumer thermometers of the period, 2) these are single measurements. Even if they were +/- 1.5 degrees on those shitty thermometers (the data set isn't based on consumer thermometer measurements), the average of many of those measurements would still tend towards the correct measurement with a large enough sample.

    • @chrismanning5232
      @chrismanning5232 ปีที่แล้ว +9

      Said differently, for your point to be valid you would need evidence that all thermometers of the period recorded lower temperatures than the actual value, for some reason. Otherwise you're just making noise when faced with the trends this set shows.

    • @rosshoyt2030
      @rosshoyt2030 ปีที่แล้ว +3

      You're wrong and need to learn more about historical climate science if youre curious to know.

    • @bodanerius
      @bodanerius ปีที่แล้ว

      Scientific thermometers got reliable in the late 1800s. Before that the numbers are extrapolated from different sources.

  • @halilnevzat
    @halilnevzat ปีที่แล้ว