代码
using EarthEngine
Initialize()
# 设置一个函数来计算不同年份灯光之间的差异
function createTimeBand(img)
img = EE.Image(img)
starttime = EE.Date("1990-01-01")
year = difference(date(img), starttime, "year")
return float(addBands(year,img))
end
# 获取数据的波段
collection = map(
select(
EE.ImageCollection("NOAA/DMSP-OLS/CALIBRATED_LIGHTS_V4")
,