Guest User

Untitled

a guest
Dec 12th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. var region= MNDWI_DPS
  2.  
  3. //NDWI
  4.  
  5. var NDWI = ee.Image('MODIS/MCD43A4_NDWI/MCD43A4_005_2016_05_16')
  6.  
  7. var visualize = NDWI.visualize({bands: ['NDWI'], min: -1, max: 0}).clip(region);
  8.  
  9.  
  10. //DEM+SLOPE
  11.  
  12. var MDE = ee.Image('USGS/SRTMGL1_003')
  13.  
  14. var terrain = ee.Algorithms.Terrain(ee.Image('USGS/SRTMGL1_003'));
  15.  
  16. var visualize1 = MDE.visualize({bands: ['elevation'], min: 0, max: 4100}).clip(region);
  17.  
  18. var slope = ee.Terrain.slope(MDE);
  19.  
  20. var visualize2 = slope.visualize({bands: ['slope'], min: 0, max: 15}).clip(region)
  21.  
  22. Map.addLayer(visualize.clip(region))
  23. Map.addLayer(visualize1.clip(region))
  24. Map.addLayer(visualize2.clip(region))
Add Comment
Please, Sign In to add comment