I am new to Google Earth Engine and I am working with Sentinel-2 imagery for landcover classification.
I need to limit the Sentinel 2 images to a specific study area i.e. Area of Interest. What specific commands do I need to achieve this?
I am new to Google Earth Engine and I am working with Sentinel-2 imagery for landcover classification.
I need to limit the Sentinel 2 images to a specific study area i.e. Area of Interest. What specific commands do I need to achieve this?
What you do in EarthEngine is create a collection of Sentinel-2 images that you filter according to your criteria.
For instance if you want to limit your AOI to the map area in the code editor:
var collection = ee.ImageCollection('COPERNICUS/S2')
.filterBounds(Map.getBounds(true))
You could also draw a polygon, name it AOI and filter to it. It might also be a good idea to filter by time:
var collection = ee.ImageCollection('COPERNICUS/S2')
.filterBounds(AOI)
.filterDate('2016-01-01', '2016-12-31')