GEE: The area of each category of land use data after statistical random forest classification

To calculate the area of ​​each category after statistical classification, the idea is to first calculate the number of pixels of each category, and then multiply the area of ​​each pixel. For example, if the pixel area of ​​ladsat is 30 meters, then multiply the number of pixels by 900 square meters It is the area of ​​the class (the area is not multiplied in this example, you can use .multiply(900) to calculate the area).

The result is shown in the figure below,


Article directory


1. Code 1

//******************************统计每一类的面积*************************************//
//Print the number of pixels for each class 
var analysis_image =</

Guess you like

Origin blog.csdn.net/qq_35591253/article/details/130034365