In [1]:
import ee
ee.Initialize()
import geetools
In [2]:
import ipygee as ui
In [3]:
Map = ui.Map()
Map.show()
Site
In [4]:
site = ee.Geometry.Point([-71.5, -41.7]).buffer(2000)
Map.centerObject(site)
Masked image
In [5]:
image = ee.Image('COPERNICUS/S2/20151123T142942_20170221T180430_T18GYU')
fclouds = geetools.cloud_mask.sentinel2()
masked = fclouds(image)
In [6]:
vis = dict(bands=['B4', 'B3', 'B2'], min=0, max=2500)
In [7]:
Map.addLayer(masked, vis, 'Not buffered')
Buffer Mask
In [8]:
buffer = geetools.tools.image.bufferMask(masked, 500, units='meters')
In [9]:
Map.addLayer(buffer, vis, 'buffered 500 m')
In [ ]: