天天看点

Google Earth Engine(GEE)—Julia Landsat 8 去云案例

代码

using EarthEngine
Initialize()

# 这里的去云波段和之前的sr去云没有什么区别
#Function to cloud mask from the pixel_qa band of Landsat 8 SR data.
function maskL8sr(image)
    image = EE.Image(image) # cast to make sure we have the correct type

    # Bits 3 and 5 are cloud shadow and cloud, respectively.
    cloudShadowBitMask = 1 << 3
    cloudsBitMask = 1 << 5

    # G