# Image Collection Statistics in Google Earth Engine?

How can I extarct mean of each image collection in google earth engine? for example for this code:

``````var modis = ee.ImageCollection("MODIS/006/MOD13Q1")
.filterBounds(geometry)
.filterDate("2000-01-01","2001-01-01")
.select("NDVI");

print(modis)

var mod13 = modis.map(function(img){
return img.multiply(0.0001)
.copyProperties(img,['system:time_start','system:time_end']);
});
``````
• Do you want the pixel-wise mean for each pixel or the mean per image/scene? – Kersten Nov 3 '18 at 12:45
• I'm going to extract mean of each image which is called with image collection(mean per image). – AmirHossein Ahrari Nov 3 '18 at 15:07

Earth Engine provides very nice functionality to calculate statistics on imagery called reducers. There are plenty of ways to use reducers but as simple examples you can calculate the statistics at the pixel level or provide a geometry to calculate statistics:

``````var modis = ee.ImageCollection("MODIS/006/MOD13Q1")
.filterDate("2000-01-01","2001-01-01")
.select("NDVI");

print(modis)

var mod13 = modis.map(function(img){
return img.multiply(0.0001)
.copyProperties(img,['system:time_start','system:time_end']);
});

// calculate the mean of value for each pixel
var meanMod13 = mod13.reduce(ee.Reducer.mean())

// calculate the mean value for a region
var geom = ee.Geometry.Rectangle([-88,34,-87,35])