I'm working on timeseries with Google Earth Engine. I'm new to GEE and Javascript. I'm trying to add a band to each image of an image collection with the mean value (IN TIME) of another band of the same collection, i.e. a value obtained with reduce(ee.Reducer.mean()). Basically I need to have for every pixel of every image of the collection, the value of a certain band ['B'] and the average value of ['B'] in time. Even if it sounds quite easy... I'm completely stuck!
Thank you to anyone who can help me!