Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
How to download Carbon monoxide concentration daily data from Google Earth Engine, without gaps?

I need to download Carbon monoxide concentrations daily data provided by sentinel 5p but the data consists of gaps for my region of interest

var dataset1 = ee.ImageCollection("COPERNICUS/S5P/NRTI/L3_CO")
             .filterDate('2021-03-01', '2021-03-31')   
             .filterBounds(roi)
             .select("CO_column_number_density")
print (dataset1)
var img = dataset1.filterMetadata('TIME_REFERENCE_DAYS_SINCE_1950', 'equals',25992 )
     .mean();
Map.addLayer(img)

Google Earth Engine

This is the code used. I am trying to average the data available for a single day but there are gaps. if the data has to be averaged over more than one day, how to do it? how to create a loop that iterates over the dates and computes the average?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try This Code

var batch = require('users/fitoprincipe/geetools:batch')
print("batch.help", batch.help)

var Sentinel_CO_Dataset = ee.ImageCollection("COPERNICUS/S5P/NRTI/L3_CO")
                          .filterDate('2021-03-01', '2021-03-10')   
                          .filterBounds(roi)
                          .select("CO_column_number_density")
print (Sentinel_CO_Dataset)

var count = Sentinel_CO_Dataset.size()
print("Collection count", count)

var all_Sentinel_CO_tiles = Sentinel_CO_Dataset.map(function(image) { return image.clip(roi).reproject('EPSG:4326', null, 1113.2); }); 

var check = ee.Image(all_Sentinel_CO_tiles.first());
var Sentinel_CO_Palette = ['FFFFFF', 'CE7E45', 'DF923D', 'F1B555', 'FCD163', '99B718',
               '74A901', '66A000', '529400', '3E8601', '207401', '056201',
               '004C00', '023B01', '012E01', '011D01', '011301'];

Map.addLayer(check, {min:0.02, max: 0.05, palette: Sentinel_CO_Palette}, 'Sentinel_CO_Palette_Check');


  
var colList = all_Sentinel_CO_tiles.toList(all_Sentinel_CO_tiles.size());
var n = colList.size().getInfo();
for (var i = 0; i < n; i++) {
      var img = ee.Image(colList.get(i));
      var id = img.id().getInfo();
      var listOfImages = all_Sentinel_CO_tiles.toList(all_Sentinel_CO_tiles.size());
      var Tile = listOfImages.get(i);
      var allRasters = ee.ImageCollection.fromImages([Tile]);
      batch.Download.ImageCollection.toDrive(allRasters, "Sentinel_CO", 
      {name: 'MONOXIDE_'+id,
      scale: 1113.2,
      region: roi
      })
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!