[Thread Prev][Thread Next][Index]

[ferret_users] Averaging multi variables



Dear community,

I am new to ferret and trying to do a summation using repeat. Let say I have 6 datasets with same variable on it (sst). I want to averaging those variables. What is the best method to do that in ferret?

set region/x=20e:120e/y=30s:30n/k=1
let temp= {"2002","2003","2004","2006","2007","2010"}

repeat/name=me/range=1:6 (\
let tempid=temp[i=`me`];\
use "`tempid`.temp.regrid.nc";\
let ave`me`=sst[d=`me`];\
let ave=ave+ave`me`;\
)
fill/nolab/lev=(-inf)(23,32,2)(inf) ave/6


the error I get is 

**ERROR: stack overflow

Any lead is much appreciate. Thank you

Saat M.





[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement