Google Earth Engine (GEE) ——使用where来划分等级,分别计算不同阈值范围内的面积,以AOD气溶胶为例

本次我们将使用MODIS数据完成对于影像结果进行区分,从而将我们归一化后的结果分不同阈值进行展示。整个过程就是先对数据完成处理,然后选择只当的波段,裁剪研究区,最后我们建立影像划分阈值,通过切割整个影像,最后分别统计其面积最后得到影像分别加载。

这里指的注意的是阈值设定的时候中间值,我们用and()连接,同时配合it和gt进行设定阈值就行了。设定完成后我们就可以完成updateMask掩膜掉非0区域。

数据:

The MCD19A2 V6 data product is a MODIS Terra and Aqua combined Multi-angle Implementation of Atmospheric Correction (MAIAC) Land Aerosol Optical Depth (AOD) gridded Level 2 product produced daily at 1 km resolution. For more information see the MAIAC user guide.

函数:

where(test, value)

Performs conditional replacement of values.

For each pixel in each band of 'input', if the corresponding pixel in 'test' is nonzero, output the corresponding pixel in value, otherwise output the input pixel.<

猜你喜欢

转载自blog.csdn.net/qq_31988139/article/details/128758827