I want to generate monthly average Sentinel-1 images in GEE and adapted this answer here to get 12 mean radar images over a year. However, as radar imagery in GEE is in decibel, this returns the geometric mean and not the arithmetic mean. I have been able to convert a single decibel image to power using the equation:
var PWR = ee.Image(10).pow(image.select('VH').divide(10))
but I do not know how to implement this over each image in a collection prior to calculating the monthly average. Is it possible to calculate this when generating an image collection?
My code is:
var sentinel1 = ee.ImageCollection("COPERNICUS/S1_GRD");
var months = ee.List.sequence(1, 12);
var byMonth = ee.ImageCollection.fromImages(
months.map(function (m) {
return sentinel1
.filter(ee.Filter.eq('instrumentMode', 'IW'))
.filterBounds(geometry)
.filterDate('2017-01-01','2017-12-31')
.filter(ee.Filter.calendarRange(m, m, 'month'))
.select('VH')
.mean()
.set('month', m);
}));
and a working example can be found here
system:time_startproperty to time filter when calculating the composites. Hopefully this answer is a better for your needs. – Kel Markert Nov 20 '19 at 15:42