AnsweredAssumed Answered

Aggregate Rasters with Python?

Question asked by NMWRRI on Sep 14, 2016
Latest reply on Sep 14, 2016 by xander_bakker

Hi! 

 

I'm trying to aggregate daily rasters into monthly rasters. I wanted to use a wildcard, however, the date values of these rasters are in Day of Julian Calendar Year. 

 

Usually, I do two for loops: 

 

for year in range(2000, 2016):  #years of models 2000-2015

   for month in range(1,13): #calendar months 1-12

 

Ex: ModelV3_2014001, ModelV3_2014002

However, since the file names have the DOY instead of the month, how would I address this issue?

 

Any suggestions or help would be greatly appreciated! 

Many thanks! 

Outcomes