2017-12-12 7 views
0

이미지 컬렉션 (이 예제에서는 Sentinel 2)에서 합성 이미지를 만들려고합니다. 여기서 결과 합성의 픽셀 값은 하위 또는 하위입니다. 픽셀 값 분포의 상위 4 분위수Google 어스 이미지 : 이미지 컬렉션에서 상위 및 하위 사 분위 합성 이미지를 만듭니다.

평균, 중간, 최대 및 최소 픽셀 값을 쉽게 얻을 수 있지만 하위 4 분위 값의 합성 방법을 알지 못합니다.

// 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'); 

누구나 매우 유용한 저분 치 픽셀 값의 합성을 만드는 방법을 제안 할 수 있다면.

답변

0

그래서 좋은 사람 그래서 내가 여기에 게시 것이라고 생각 날 위해 대답

당신은 낮은 분위 합성을 만들 ee.ImageCollection.reduce()와 ee.Reducer.percentile()를 사용할 수 있습니다. 예 :

Map.addLayer(
withNDVI.reduce(ee.Reducer.percentile([25])), 
{bands:'NDVI_p25', min:-1, max:1}, 
'25 percentile NDVI' 
);