Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Map.setCenter(9.5, 0.2, 10)
- var MaxMangrove = Mangroves.max()
- print('Pixel Size = ', MaxMangrove.projection().nominalScale())
- Map.addLayer(MaxMangrove, {min:0,max:1}, 'Max Mangrove Value')
- // not sure if it wants res in m or degrees here
- var MangroveProj = MaxMangrove.setDefaultProjection('EPSG:4326', null, 30)
- var PixelArea = MangroveProj.multiply(ee.Image.pixelArea())
- // This runs fine and displays the image I want - an image where the
- // pixel value is the pixel area. This should change with latitude
- // but it changes with zoom
- Map.addLayer(PixelArea, {min:0,max:100}, 'Pixel Area')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement