I am working on a simple script to get mean value from a ImageCollection()
. To do this I am using ImageCollection.reduce(ee.Reducer.mean())
.
My problem is that the Image returned is coming with a different nominalScale()
.
I already looked at the documentation but couldn't figure out why this results. As you can see on ee.ImageCollection.reducer()
there is no parameter specifying the scale; nor on ee.Reducer.mean()
.
What am I doing wrong? Again, I am basically trying to do do something like this. Actually this tutorial shows an image which made me believe I wouldn't have changes on pixel resolution...
My code:
var WorldClim = ee.ImageCollection("WORLDCLIM/V1/MONTHLY");
print("WorldClim original", WorldClim.first().projection().nominalScale());
var WorldClim = WorldClim.select("prec");
print("Apenas prec:", WorldClim.first().projection().nominalScale());
var MeanPrec = WorldClim.reduce(ee.Reducer.mean());
print("Após reduce(ee.Reducer.mean())", MeanPrec.projection().nominalScale());
https://code.earthengine.google.com/3e3bff9030fd9ff70b052b2beb4daced