1

I want to calculate spatial and temporal correlation coefficient with a file having 1 variable and the other having 2. How can I select one variable from the one having 2 to calculate the correlation? Which command should I use? Here is the command I use:

cdo fldcor/timcor infile1.nc infile2.nc output.nc

I tried and the fault is: Input streams have different number of variables per time step! Thanks a lot!

Minh Hiếu
  • 39
  • 1
  • 8

1 Answers1

2

This should work:

cdo -fldcor -selname,var infile1.nc -selname,var infile2.nc output.nc
Robert Wilson
  • 3,192
  • 11
  • 19