I want to simply filter an Image Collection for a set of Spatial coordinates. However, the built-in Filterbounds function does not seem to work. I did try researching and the only answer I got to my question was that filterbounds does not work due to global coordinate system (Or I think this is what it means)
This is the code in which I was not able to make any further progress.
var roi = ee.Geometry.Polygon(
[[[-107.416796875, 36.750944433035215],
[-107.416796875, 34.53706063512119],
[-102.934375, 34.53706063512119],
[-102.934375, 36.750944433035215]]], null, false);
var collection = ee.ImageCollection('COPERNICUS/S5P/OFFL/L3_NO2')
.select('NO2_column_number_density')
.filterDate('2019-06-01', '2019-06-06')
.filterBounds(roi);
var band_viz = {
min: 0,
max: 0.0002,
palette: ['black', 'blue', 'purple', 'cyan', 'green', 'yellow', 'red']
};
Map.addLayer(collection.mean(), band_viz, 'S5P N02');
Map.setCenter(65.27, 24.11, 4);
Can someone demonstrate how to filter spatially?