correct the "mosaicomensal" function so that the 'system:timestart' property is…
- User
correct the "mosaicomensal" function so that the 'system:time_start' property is correctly inserted in the "yy" variable and in the "z2" variable
var mosaicomensal = ee.ImageCollection.fromImages( mesanos.map(function(y) { var z = ET1 .map(function (image) { var greenest2 = image.select('ET').updateMask(image.select('Months') .eq(ee.Image.constant(y))); var yy = image.updateMask(greenest2)
return yy.set('system:time_start', ee.Feature(image).getArray('system:time_start')) }); //var z2 = z.median() var z2 = z.mean().set('anomes', y).set('system:time_start', ee.Feature(z).getArray('system:time_start')) //var z2 = z.mosaic() //var z2 = z.reduce(ee.Reducer.percentile([90])) return z2//.copyProperties(z.first(), z.first().propertyNames()); }));
print(mosaicommensal.limit(10), 'mosaicommensal')
- Assistant
To correct the
mosaicomensalfunction so that thesystem:time_startproperty is correctly inserted into theyyandz2variables, you'll need to ensure that the correct properties are preserved and transferred during the processing. Here's how you could modify the code:javascript