Project

General

Profile

a calculation with Multi-files

Added by Jinghua Chen over 11 years ago

Dear all,
i want to calculate a physical quantity that needs the variables from two or more files.
for example: we need a variable named 'R' ,and it can be calculated by 'R=var1+var2+var3' and
var1/2/3 are in the file1, file2 and file3, How can I do it?
thank you very much!!!!!!!!!!!

Chen jinghua


Replies (1)

RE: a calculation with Multi-files - Added by Jaison-Thomas Ambadan over 11 years ago

Hi,

try,

cdo -add -selvar,var1 ifile1 -selvar,var2 ifile2 -selvar,var3 ifile3 oflie

OR

cdo -add selvar,var1 ifile1 -add -selvar,var2 ifile2 -selvar,var3 ifile3 ofile

Cheers,
J

    (1-1/1)