Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

215
Visualizações
NDVI time series for polygons, not keeping in the geometry

I'm trying to calculate NDVI for a geometry. When the code is executed the images that are added to the map extend outside of the geometry area. I've tried for a week or so to fix it but with no luck. If anyone could help that would be great.

//Calculating NDVI for the period 2000-01-01 to 2001-01-01//
var ndvi_palette = ['FFFFFF', 'CE7E45', 'DF923D', 'F1B555', 'FCD163', '99B718', '74A901', '66A000', '529400','3E8601', '207401', '056201', '004C00', '023B01', '012E01', '011D01', '011301'];

function addNDVI(image){
  var ndvi = image.normalizedDifference(['B4','B3']);
  return image.addBands(ndvi);
}
var filtered = L7
.filterDate('2000-01-01','2001-01-01')
.filterBounds(geometry);
var with_ndvi = filtered.map(addNDVI);
var rgb_vis = {min:0,max:3, bands:['B3','B2','B1']};
Map.addLayer(filtered.median(),rgb_vis,'RGB Median');
var greenest = with_ndvi.qualityMosaic('nd');
//Map.addLayer(greenest,rgb_vis,'RGB Greenest Pixel');

Map.addLayer(with_ndvi.median(),{bands:'nd',min:-0.1,max:1,palette:ndvi_palette},'NDVI_2000-2001');

This is my imports And here is the current outcome

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda