问题简介
我首先将 mean() 函数应用于图像集合,该函数会创建一个图像,其中每个像素都是该像素处所有图像的平均值。然后,对于 Point ROI,我希望将均值带添加到图表中,并显示平均值。问题是它们不同(-8.030 与 -8.524)。
函数
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.
Returns a dictionary of the reducer's outputs.
Arguments:
this:image (Image):
The image to reduce.
reducer (Reducer):
The reducer to apply.
geometry (Geometry, default: null):
The region over which to reduce data. Defaults to the footprint of the image's first band.
scale (Float, default: null):
A nominal scale in meters of the projection to work in.
crs (Projection, default: null):
The projection to work in. If unsp