Geographic Information Systems Asked by hotshotiguana on December 5, 2020
I am looking to create an inland surface water layer using Earth Engine. The JRC Global Surface Water Mapping Layers, v1.2 – Occurrence band is exactly what I want, but as you can see in the attached screenshot (based on below EE code) there is a thick band of blue that extends into the ocean. Has anyone successfully clipped this occurrence
band by, say an ocean layer, so that it only includes the inland water? Or am I approaching this wrong and should be thinking of a different approach?
var occurrence = gsw.select('occurrence');
var VIS_OCCURRENCE = {
min: 0,
max: 100,
palette: ['red', 'blue']
};
Map.setCenter(-58.6325312, 6.4030749, 9); // Center on Bartica
// Display the image on the map.
Map.addLayer({
eeObject: occurrence.updateMask(occurrence.divide(100)),
name: "Water Occurrence (1984-2015)",
visParams: VIS_OCCURRENCE
});
![Global Water Layer in Bartica](https://i.stack.imgur.com/dG6BU.jpg)
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP