1

I am new to using Google Earth Engine. I'm trying to extract the SO2 values in my workspace. I just want to show my workspace but I can't.

My code is as below:

var collection = ee.ImageCollection('COPERNICUS/S5P/NRTI/L3_SO2')
  .select('SO2_column_number_density')
  .filterDate('2019-05-01', '2019-05-31');

var band_viz = {
  max: 0.0004,
  min: 0,
  palette: ['black', 'blue', 'purple', 'cyan', 'green', 'yellow', 'red']
};

Map.addLayer(collection.mean(), band_viz, 'S5P SO2');
Map.setCenter(30.4, 32.6, 6);

Export.image.toDrive({
  image: collection.select('SO2_column_number_density').mean(),
  description: 'SO2_15-3-2019',
  scale: 50,
  region: geometry,
  fileFormat: 'GEOTIFF',
  folder: 'GEE',
  fileNamePrefix: 'SO2_15-3-2019',
  maxPixels: 5000000000
});

1 Answer 1

0

To export it you must define a var geometry:

Export.image.toDrive({
  image: collection.select('SO2_column_number_density').mean(),
  description: 'SO2_15-3-2019',
  scale: 50,
  **region: geometry,**
  fileFormat: 'GEOTIFF',
  folder: 'GEE',
  fileNamePrefix: 'SO2_15-3-2019',
  maxPixels: 5000000000
});

enter image description here Draw a shape or import it from your assets and call it "geometry"

3
  • Thank you so much Daniele. One more question, All of the values I get are between 0 and 1.When I look at other studies, I always see high values. Do I need to convert?
    – SRTM
    Jan 23, 2023 at 21:15
  • Maybe you must convert it in micromol gis.stackexchange.com/questions/397846/… Jan 24, 2023 at 10:06
  • thank you so much Daniele. Last question :) How can I get the time series (chart) ?
    – SRTM
    Jan 24, 2023 at 20:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.