Google Earth Engine——ndwi水体面积计算(landsat4/5/8)出现的无法加载影像的问题

我正在使用 Landsat 图像估算水库的存储容量。我有可用的代码…但问题是当我尝试为我的研究区域运行该代码时,它不显示任何图像。这里的问题:
并没有任何影像集合是因为没有时间属性
函数:
intersection(other)
Returns a DateRange that contains all points in the intersection of this DateRange and another.

Arguments:
this:dateRange (DateRange)
other (DateRange)
Returns: DateRange

ee.Image.pixelArea()
Generate an image in which the value of each pixel is the area of that pixel in square meters. The returned image has a single band called “area.”

No arguments.
Returns: Image

reduceRegion(reducer, geometry, scale, crs, crsTransform, bestEffort, maxPixels, tileScale)
Apply a reducer to all the pixels in a specific region.

Either the reducer must have the same number of inputs as the input image has bands, or it must have a single input and will be repeated for each band.

猜你喜欢

转载自blog.csdn.net/qq_31988139/article/details/130592083
今日推荐