[Thread Prev][Thread Next][Index]

Re: [ferret_users] Averaging multi variables



Dear Satyesh,

Thank you very much for your reply.
But if I have more variables like 30 or even 100, should I do manually also?

Best regards,
Saat M.


On Mon, Jul 22, 2019 at 8:00 PM Satyesh Ghetiya <satyeshghetiya@xxxxxxxxx> wrote:
Following types of expressions are not allowed in Ferret unlike other programming languages : "let ave=ave+2"

For the loop, you may do this:

repeat/name=me/range=1:6 (\
let tempid=temp[i=`me`];\
use "`tempid`.temp.regrid.nc";\
)
let sst_ave=(sst[d=1]+sst[d=2]+sst[d=3]+sst[d=4]+sst[d=5]+sst[d=6])/6

This is usual way for limited number of variables (e.g. here 6)

Regards,
G Satyesh


On Mon, Jul 22, 2019 at 2:24 PM Saat Mubarrok <saatmubarrok@xxxxxxxxx> wrote:
Dear community,

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]