[Thread Prev][Thread Next][Index]

Re: [ferret_users] Averaging multi variables



Hi Saat,
G'day

There is a function in CDO called as "ensmean" which can solve your problem if you want to average (ensemble mean) the variable/s. 

let suppose you have files as sst1.nc sst2.nc sst3.nc ......... sstn.nc

you can do like this using the wild card in CDO.

cdo -r -f nc4 ensmean sst*.nc ensemble_mean_output.nc

here *.nc covers all the files that you want to average with the help of * wild card. You have to be careful while using wild card " * " because if you are using *.nc it will take all the netcdf files present in the folder. So better that you make a separate folder that contains only those files that you want to use for a particular operation. 

this is the direct way to do mean of variable/s across multiple files. 

let me know if this doesn't work. we will try something else also with the help of ferret.
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.









--


REGARDS

Saurabh Rathore
Research Scholar (PhD.)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434

[Thread Prev][Thread Next][Index]