JustPaste.it

// Loading the Sentinel-5P image for carbon monoxide

var s5pCollection = ee.ImageCollection('COPERNICUS/S5P/OFFL/L3_CO')

  .select('CO_column_number_density')

  .filterDate('2021-01-01', '2021-12-31');

 

// Loading the administrative boundaries

var tunisBoundary = ee.FeatureCollection('projects/ee-anisghattassi7/assets/Limite');

 

// Filtering the Sentinel-5P image based on the boundary

var s5pTunis = s5pCollection.filterBounds(tunisBoundary);

 

// Calculating the monthly average of carbon monoxide for the area of study

var meanCO = s5pTunis.mean().clip(tunisBoundary);

 

// Visualizing the monthly average of carbon monoxide

Map.addLayer(meanCO, {min: 0, max: 0.1, palette: 'blue, purple, cyan, green, yellow, red'}, 'CO Mean');

 

// Exporting the result

Export.image.toDrive({

  image: meanCO,

  description: 'mean_CO_Tunisia',

  scale: 1000,

  region: tunisBoundary.geometry().bounds(),

  fileFormat: 'GeoTIFF'

});