Skip to content

Instantly share code, notes, and snippets.

@isaacarroyov
Created July 22, 2021 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacarroyov/302dec8f5014ead2b3e03c8c1d823d18 to your computer and use it in GitHub Desktop.
Save isaacarroyov/302dec8f5014ead2b3e03c8c1d823d18 to your computer and use it in GitHub Desktop.
// Seleccionar bandas en variable nueva
var ImageMap_Bosques2000_band = Datos_Bosques.select('treecover2000');
// Enmascarar en variable nueva
var ImageMap_Bosques2000_Final = ImageMap_Bosques2000_band
.mask(ImageMap_Bosques2000_band)
.clip(RdI_Poligono);
var VisParams_Bosques2000 = {
min: 0,
max: 100,
palette: ['B7EFC5','6EDE8A','2DC653','208B3A','155D27']
};
Map.addLayer(ImageMap_Bosques2000_Final,
VisParams_Bosques2000, 'Situacion en el 2000 (con máscara)' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment