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).
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.
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!
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.
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.
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!
@@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.
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!
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! 😀
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.
@@Techne89 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.
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.
@@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?
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.
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 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 :/
@@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
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.
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. 😀
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?
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) 😁😁
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 :)
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?
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..
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.
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.
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.
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
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!
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.
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.
@@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.
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.
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)
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 😂😂
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.
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.
"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.
@@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.
@@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.
@@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...
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?
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.
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.
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
@@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
we had record breaking snow last year in foothills of California, structures collapsed
Рік тому
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...
@@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.
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..
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
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
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.
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.
@@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.
Love that you are back with the coding challenges! This is truly awesome.
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).
It was last minute - he was paid a hefty sum to do this video...
🙄 the crazies out in full force in this comment section
@@chrismanning5232 You only know yourself bro
@@pajanightbadger1713 Good, he should be paid for his work.
@@pajanightbadger1713 you should unironically end it if you actually think he was paid by "big climate" for this
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.
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!
This was awesome Dan, thank you for taking us on this adventure. The new whiteboard transitions look super! Keep it up. Choo Choo!
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.
Leadership - Good work bravely stepping into a hot potato sticking with measurements and knowns. Hats Off to you Sir!
all these years, i am amazed at Daniel's character that shines through, whatever the coding challenge of that video may be
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.
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!
If you don't mind me asking why did you quit programming
That buzzer sound is always such a jumpscare for me lol
Same, it's way too loud
@@chrismanning5232 ... and a lot longer than it needs to be.
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.
@@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.
@@michaeldamolsen *fewer mistakes. Less mistakes itself is a mistake ;)
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!
Ah, this is such good an important feedback, thank you!
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!
Climate change has been around before humans. It's not exactly recent.
As always a joy to watch these videos - thank you so much
Imagine how much cooler the earth would be if we just moved the baseline up a couple degrees.
Best channel for coding
JavaScript inadvertently teaches you to care about data types by being so miserable if you're not careful.
looks like it's getting warmer, looks like we are on a positive journey
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! 😀
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.
ooh that soundsd fun, almost makes me want to try it out in blender
@@Techne89 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.
@@boycefenn can you run scripts in blender? tbh i only know the basics so good luck lmao
@@Crazyclay78YT you only know th baics? yup me too! no clue what im doing but where theres a will theres a way!
@@boycefenn best of luck to you then lmao
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.
Amazing work. Had you changed your mic?
@12:14 It's the polar to cartesian coordinate song!
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.
@@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?
always nice waking up to a new Coding Train
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.
Super interesting subject.... as always ;-) Also, the video quality is very high ... did you upgrade your video lights or camera?
Yes! I got a new camera! (and also adjusted some audio settings)
Man I love your content. Have a great day ❤️
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
Why don't you measure the amount of carbon dioxide in the atmosphere?
@@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 :/
@@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
@@pajanightbadger1713 :( that's a shame was kinda exited about trying your methods XD
Please, explain Entity Component System
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.
Thank you for the feedback!
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. 😀
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?
Can you pop into the discord and ask there? thecodingtrain.com/discord
@@TheCodingTrain oh my lord what a quick reply, I'm omw!
Great teaching
is the zero radius arbitrary though? or does it line up with the data
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) 😁😁
Are there any tutorials available for generating cross-eyed or parallel stereo pair 'videos' in processing v4.5?
How do you find coding projects to do?
I get suggestions! github.com/CodingTrain/Suggestion-Box (I also have a short on my channel about this)
as always, an incredible video, so entertaining, so inspiring
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 :)
What happens when you lerpColor and it goes above 1.0c? It just uses the max (255, 0, 0)?
Wow! This video is truly captivating! 👍
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?
amazing video as alwaysss
try convex sector marching (raster casting/tracing)
for rendering, sounds and physics, 3-in-1 engine
39:59 It's a nice french cockade... 🙃
I'm definitely getting that book. But is it about p5 or processing? I'd prefer p5 cuz you already have a processing one 🤷♂️
15:40 🎵 Do you remember
The (21st night of) September?
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..
I'm sure this comment section will be reasonable and take into account long accepted scientific fact
it is a scientific fact that man's co2 emissions have no effect on the climate.
Shill
There are fewer retarded climate change deniers than anticipated, which is nice.
Looks that way :)
This guy doesn’t really attract crazy people.
This is great, think you could use gps coordinates + that data to generate a heatmap image of the world?
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.
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.
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.
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
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!
Working with big data made me think that 144 rows *is* a small sample, and 5 is just a print out.
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.
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.
@@axeman2638 We should be in a cooling period. The fact the Earth is warming is evidence of man's effect.
@@Anuchan You'll never convince low IQ people that they're wrong. Just ignore them lol
@@Anuchan it's not warming, they are faking the data.
@@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.
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.
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)
Can this be done in using Python
Absolutely! You would likely want to find an equivalent graphics engine. You can look at p5py or something like pygame too.
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 😂😂
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.
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.
"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.
@@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.
@@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.
@@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...
I appreciate the video but I feel like most of these mistakes can be avoided if you used proper design patterns
Lol you got a context note for this.
"anomoly" is not an error if you type it wrong every time :)
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 🤷
Next you should create a visualization on why, I hope its not us
happy birthday !
Especially near the tarmac of airports!
All I'm saying is that if you made a tutorial in Godot it would be really topical.
In the original video the line doesn't have sharp corners
i want to code along with you but this one seems pretty hard :p
GISS is one of those acronyms where you have to be really careful about your pronunciation
Do a video refactoring this mess please 😅
want more more coding challenges
Dinner at Bertha's and a new Coding Challenge!?
Are you doing something with your voice in post? it sounds a bit off. Maybe it's just my imagination.
Heh I missed these episodes
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?
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.
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.
Yay, limit the data set even more so it can be even more misleading.
Why won't my script work. I'm angry
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
Is it me or now you have a lower voice?
It's lower because there's a gun pointing at his head just off camera
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!
@@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
@@TheCodingTrain It sounds calmer :) This is a really appreciated change.. thank you
👍
3D 3 D!
wow'
A comma is probably the worst idea for a delimiter ever created.
What would you suggest then? Don't say space, as it is the worst possible delimiter.
Comma is good enough
In the original climate spiral, line colour represents time, not temperature.
we had record breaking snow last year in foothills of California, structures collapsed
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...
Ice age denier confirmed
But.. but.. but climate is a myth, right?!
It's actually global cycling
If global warming was an actual long term thing, the ice age wouldn't have happened after the dinosaurs
@@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.
1st
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..
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
"I see a small number therefore you must be wrong"
@@BoxEnjoyer ^Ice-age denier^
Manbearpig salesman confirmed
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
Or at least on a global scale
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.
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.
You're wrong and need to learn more about historical climate science if youre curious to know.
Scientific thermometers got reliable in the late 1800s. Before that the numbers are extrapolated from different sources.
Too bad this is all garbage data
why
He's one of the crazies, ignore him.
@@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.
nice bait
@@98danielray Did you want to work in PR (propaganda) when you were a child or has life not really gone to plan?