我正在尝试从图像集合(在此示例中为 Sentinel 2)创建合成图像,其中生成的合成的像素值是像素值分布的下四分位数或上四分位数。
很容易获得平均值、中值、最大和最小像素值,但我不知道如何合成较低的四分位数值。
// In this code I created a collection where all the clouds had been removed
// I then mapped the NDVI values to the entire Collection.
// I want to create a composite image of the lower quartile NDVI values
var withNDVI = col_noclouds.map(addNDVI);
// Get the max, min and median values in each band.
var maximum = withNDVI.max();
var minimum = withNDVI.min();
var median = withNDVI.median();
// Display the composite.
Map.addLayer(maximum, ndviParams_Col, 'maximum_NDVI');
Map.addLayer(median, ndviParams_Col, 'median_NDVI');
Map.addLayer(minimum, ndviParams_Col, 'minimum_NDVI');
如果有人可以建议一种方法来创建较低四分位数像素值的组合,那将非常有用。