9 Part II Exercises
We’ve now moved past the basics. You have some control over your JavaScripting destiny. Let’s do some practice to see how well you can recall what you’ve learned. After completing this section of the book, you should be able to:
Part 2 Learning Objectives
- Identify data sources in the Earth Engine Catalog
- Filter a vector dataset
- Use basic symbology
- Center a map over a given area
- Display the mean values for a raster across a given time period.
Practice, practice, practice. That’s the only way you’ll make this stuff stick to your memory like glue. It’s OK if you have to go back and look at the examples, but try to type out what you can remember. For each of the problems below, create a separate script.
Exercise 2.1
- Use the Monitoring Trend in Burn Severity (MTBS) dataset to create a map that shows the fire boundary for the Badger Fire in Southern Idaho (Incid_Name is BADGER). Center the map on -114.1469 & 42.2471 with a zoom value of 10.
- Set the color of the fire area as red and add comments to the script.
- Explain why the longitude (114.1469) has a negative value.
- Use the Global Land Ice Measurements from Space (GLIMS) dataset to create a map that only shows the glaciers in the Swiss Alps geographic region (geog_area is Swiss Alps). Center the map on 9.664 E & 46.4458 N. Use a zoom value of 7.5.
- Create a map the same as 1., but color the filtered features gray.
- Over the same area, bring in a visible (RGB) mean Sentinel 2, Harmonized, Surface Reflectance image for the month May of 2023.*
If you need some help:
*Hint: If you’re getting an error, check your spelling on the location of the imagery data. Also, if you’re not seeing your glacier layer, make sure the Map.addLayer for the glaciers comes AFTER your Map.addLayer for the imagery.