I am a newbie in GEE. I want to calculate a sum / mean of a pixel value (rainfall data from CHIRPS satellite) in one region of every image data in an ImageCollection. Basically i want to calculate the mean daily rainfall in my study area.
Here is my code so far:
//define study area
var aoi = ee.FeatureCollection(juana)
//load & filtering ImageCollection
var precipitation = ee.ImageCollection('UCSB-CHG/CHIRPS/DAILY')
.filterDate('2021-01-01', '2021-12-31')
.select('precipitation');
//clipped ImageCollection to Study Area
var clipped = precipitation.map(function(precipitation){
return precipitation.clip(aoi);
});
//plot in map
Map.addLayer(clipped)
Every pixel has a daily rainfall data like this:
But what i need is i want to sum/averaging those pixel in the study area and make a daily graphic. What should i do?