var shp = ee.FeatureCollection("users/peisipand/cn_province");
// Define an area to perform interpolation over.
var yunnan = shp.filter(ee.Filter.eq('OBJECTID', 25));
Map.addLayer(ee.Image().paint(yunnan, 0, 2), {}, 'yunnanborder');
//var first_date = ee.Date('2019-01-01');
var first_date = ee.Date.fromYMD(2019, 1, 1);
var last_date = ee.Date.fromYMD(2020, 12, 1);
var delta = 1
for (var index = 1;delta > 0; index++){
var start_date = first_date.advance(7*(index-1) , 'days');
var end_date = start_date.advance(7*(index-1) + 7, 'days');
var delta = ee.Number(last_date.difference(start_date,'day')).getInfo()
// print(delta > 0)
var dateRange = ee.DateRange(start_date,end_date);
var name = start_date.format('yyyy-MM-dd').getInfo() ;
var NO2 = ee.ImageCollection('COPERNICUS/S5P/OFFL/L3_NO2').select('tropospheric_NO2_column_number_density').filterDate(dateRange).mean().rename('NO2');
// var band_viz = {
// min: 0,
// max: 0.0002,
// palette: ['black', 'blue', 'purple', 'cyan', 'green', 'yellow', 'red']
// };
// Map.centerObject(yunnan, 7);
// Map.addLayer(NO2, band_viz, 'NO2');
Export.image.toDrive({
image: NO2.clip(yunnan),
description: name,
crs: 'EPSG:4326',
scale: 10000,
region: yunnan,
maxPixels: 1e13,
folder: 'IDW'
})
}
GEE每7天平均影像并输出(以tropomi为例)
最新推荐文章于 2023-07-13 07:00:00 发布