I need to analyze the area defined by a polygon that I drew (call it 'X') of the images of Modis Terrra. What is the difference between filtering bounds and clipping to define the area of interest?
I'm confused about the following alternatives:
var areaofinterest=ee.ImageCollection('NASA/OCEANDATA/MODIS-Aqua/L3SMI'); .filterBounds(X) '
or option 2.
var aux=ee.ImageCollection('NASA/OCEANDATA/MODIS-Aqua/L3SMI')'; var areaofinterest=aux.clip(X) ;
The main question is: what are the differences between the two methods?
- When I do option 1 and then
Map.AddLayer(areaofinterest)I don't get displayed the area of interest, but the map of the product over the whole world - so I guess something is wrong.
- When I do option 2 I get the error:
aux.clip is not a function in <global>