Mean and standard deviation in a single pass
Added by Richard Hattersley about 12 years ago
Hi,
Is there a way to compute both the mean and the standard deviation of a dataset in a single pass?
Currently I can do:
cdo timmean ifile ofile1 cdo timstd ifile ofile2
But that requires ifile to be read twice, but ifile is big ~34GB so it takes a long time. If there's a way to compute both statistics in a single pass it would halve the run time.
Thanks,
Richard
Replies (2)
RE: Mean and standard deviation in a single pass - Added by Uwe Schulzweida almost 12 years ago
Hi Richard,
There is no way to do this task in a single pass with CDO, sorry.
Best regards,
Uwe
RE: Mean and standard deviation in a single pass - Added by Richard Hattersley almost 12 years ago
Thanks Uwe - it's good to know I've not missed something obvious!
Regards,
Richard