Path: blob/master/docs/notebooks/108_image_zonal_stats.ipynb
2313 views
Kernel: Python 3
Uncomment the following line to install geemap if needed.
In [ ]:
Import libraries.
In [ ]:
Create an interactive map.
In [ ]:
Add a DEM to the map.
In [ ]:
In [ ]:
Add NLCD land cover data and legend to the map.
In [ ]:
In [ ]:
Calculate image zonal statistics by zone. In this case, we are going to calculate the mean elevation by each land cover type. The result can be returned as a Panda DataFrame or saved as a CSV.
In [ ]:
Save the resulting Pandas DataFrame as a CSV.
In [ ]:
Calculate the standard deviation of elevation by each land cover type and save the result as a CSV.
In [ ]: