Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

223
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda