Building python script to compute monthly average from 8 days MODIS data

1326
1
07-13-2016 12:06 PM
ShouvikJha
Occasional Contributor III

Goal- Building python script to compute monthly average from 8 days MODIS data

I have MODIS data which is contain 8 days product. Some of month has 3 images and some of month has four imgaes. So how i can build a Arc GIS python script to calculate monthly average from this data

I have listed below number of images in each month.

Jan - 4, Feb- 4, Mar- 4, Apr- 3, May- 3, June-4, July- 4, Aug - 4, Sept - 4, Oct - 3, Nov - 4, Dec - 4

Loop function will be take for Jan 3 images , Feb  - 4 images, Mar - 4 images, Apr - 3 images like this.

Total 45 images are in same folder with 8 days interval name

e.g. MOD15A2.MRTWEB.A2005337.005.Fpar_1km, MOD15A2.MRTWEB.A2005345.005.Fpar_1km

After calculation i just i want to save it in month wise name.

Tags (2)
0 Kudos
1 Reply
ChrisPedrezuela
Occasional Contributor III

if you have spatial analyst or 3d analyst you can just use zonal statistics to get average values of your rasters pixels (assuming all tiles from each month overlap), or you can even use simple raster mosaic and use average on pixel value merging. If this is acceptable, you can create your looping anyway you like. That's as much as I can think of based on your rough description.

0 Kudos