Created
April 6, 2017 13:00
-
-
Save fitoprincipe/6c995c6a3bd28035ce81a16f6911f2a4 to your computer and use it in GitHub Desktop.
función para visualizar todas la imágenes de una colección en GEE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Función para agregar al mapa todas las imagenes de una coleccion | |
// Argumentos: | |
// col: coleccion de imagenes | |
// viz: diccionario con los parametros de visualizacion | |
// ej: viz = {bands:["B3","B4","B5"], min:0, max:255} | |
var addLayerCol = function(col, viz) { | |
var lista = col.getInfo()["features"] | |
for (var i = 0; i < lista.length; i++) { | |
var id = lista[i]["id"] | |
var img = ee.Image(id) | |
Map.addLayer(img, viz,id) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment