Create tree height maps
ฝัง
- เผยแพร่เมื่อ 18 ธ.ค. 2024
- In this tutorial, I'll guide you through the process of downloading the latest tree canopy height data from Meta and the World Resources Institute, with a detailed resolution of 1 meter. You'll learn how to create clear static maps using ggplot2 in both light and dark themes, as well as interactive maps with leaflet. This step-by-step guide is perfect for anyone interested in enhancing their mapping skills.
Check the full code in my GitHub repo:
github.com/mil...
Follow my work on Instagram:
/ milos_makes_maps
Let's connect on X:
/ milos_agathon
If you like my work, consider buying me a coffee:
www.buymeacoff...
HCL colors:
blog.r-project...
Music credits:
---------------------------------------------------------------------------------------------------
Music By: massobeats - waiting (lofi aesthetic music)
Original upload HERE - • massobeats - waiting (...
Absolutely loved this
Thank you for your kind comment! Glad you enjoyed my tutorial!
Great, I will use it
Great tutorial, but I had a question. For which time period this map is created? Can I define specific time period for creating this map? For example, before and after a specific event?
Thanks! I checked Meta's blog post and they suggest that "eighty percent of the data is produced with imagery from between 2018 and 2020." But it doesn't look like the data is time series. Here is the blog post: sustainability.fb.com/blog/2024/04/22/using-artificial-intelligence-to-map-the-earths-forests/
😍 amazing!
Thank you! Enjoy the new tutorial and let me know how it goes!
Hi Milos, I'm a huge fan of your work :)! Do you think this raster could be used to produce 3D maps using the measurement of the canopy height? thanks in advance!
Hi Sara! Thank you for your kind words and support! 😊 Absolutely, you can create 3D maps using the canopy height data from this raster. In fact, I've prepared a video tutorial on making 3D forest heigh maps using a different dataset here: th-cam.com/video/4ScYWPMzy6E/w-d-xo.html
Feel free to explore and experiment with the data - I'm sure you'll produce some fascinating results! 🌳🗺️
@@milos-makes-maps thank you so much for your reply!
Great effort!!!
Thanks.
However, can not connect to load chmloader, any suggestions?
cheers.
Hi Milo, I tried to do this with Yosemite National Park. Things were going smoothly--my plots looked similar to yours, until we got to step 7, the ggplot step. My plot still looks the same as in step 4. Can you think of what might have gone wrong?
Never mind! I missed the ggsave, and it was the plot from step 4 that I was seeing in RStudio. I have my map of Yosemite now!
Perfect, glad it worked out for you!
Hi Milos,
Great tutorial as usual.
I am having a problem executing the code and I think you can help. Bellow the error message and the code causing it :
streets
Script ist R Studio?
R in VSCode
As usual, Great tutorial Milos👌!
I tried to appplied this to my city (Cotonou).
But I could't download chm data for coastal area like Ouidah and Cotonou in Benin republic.
Error message occured as below:
Error in sf::gdal_utils("warp", srcs, filename, options = gdalwarp_options, :
gdal_utils warp: an error occured
Can you give me any help solving this ? Also, is it that chm data is not available for all areas as data I could get for another city in Benin was only zeros. Any help on this ?
Thank you for your comment and for trying out the tutorial!
It seems like you've encountered a warning rather than an error. This often happens when the data for a specific area is not available or is limited. For coastal areas like Ouidah and Cotonou, high-resolution canopy height data might indeed be sparse or non-existent due to the landscape's nature.
However, I managed to create a map of Cotonou by simply adjusting the latitude and longitude to match the city's coordinates. If you're receiving zeros for another city, it could mean that the CHM data for that area is not detailed enough or is unavailable.
Keep experimenting, and don't hesitate to reach out if you have further questions!
¡Excelent!