'Reduce hour data to daily/week or monthg using Google Earth Engine
I need to reduce hour images to daily/week or month using google earth engine plugin in python. I have the code below that reduce hour image to month, but I need it to reduce to daily and in python. Can anyone clarify how to do it.
var select_AOI = 'Brazil';
var AOI = ee.FeatureCollection("FAO/GAUL/2015/level0").filter(ee.Filter.eq('ADM0_NAME', select_AOI));
Map.addLayer(AOI, {}, 'area');
Map.centerObject(AOI, 5);
var month_mean = ee.List.sequence(0, 1*12).map(function(n) { //.sequence: number of years from starting year to present
var start = ee.Date('2021-04-01').advance(n, 'month'); // Starting date
var end = start.advance(1, 'month'); // Step by each iteration
return ee.ImageCollection("JAXA/GPM_L3/GSMaP/v6/operational")
.filterDate(start, end)
.sum() // Mean
.clip(AOI)
.set('system:time_start', start.millis());
});
print(month_mean);
var collection = ee.ImageCollection(month_mean);
print(collection);
Map.addLayer(collection);
Thanks a lot, Best Regards,
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
