Is it somehow possible to use as a reducer something like the most or least recent pixel rather than doing something with the values of the pixels (mean, median,…)?
The main thing I’m trying to accomplish is that I’d like to have all pixels from different bands to be coming from the same source image.
Possibly, but I thought that max_time is equivalent to reduce_dimension(dimension="t", reducer="max")… and I would think that that would be the maximum value per pixel in the time series though I do admit this is partly interpretation, as it isn’t crystal clear in the documentation
I just had a quick try, and specifying first as reducer doesn’t give an error, but isn’t documented… so not sure if I can rely on it.
Definitely interesting to check for my Sentinel 2 processing chain.
At the moment I was creating sentinel 1 mosaics rather than sentinel 2, but nonetheless I at least have some paths to explore further for that as well.
I looked into this further, and just using “first” as time dimension reducer for S1 collections seem to work fine. Also for locations on the border of two images, the nodata pixels are properly filtered out without needing to do e.g. explicit masking.
It would probably be a good idea to document the availability of the “first” reducer as I think in some cases it is a better fit than the other reducers?