代碼
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