Project

General

Profile

Time correlation

Added by Shreya Bhowmick over 1 year ago

Can i find the time correlation between an index(1d variable) and a field (2d variable) in CDO?


Replies (1)

RE: Time correlation - Added by Adrian Tompkins over 1 year ago

no, not if the field is not also a function of time... If you mean you want the correlation between a
1D field (function of time) and a
3D field (function of time, lon, lat) then
yes you can... you need to "project" the index onto the 3D grid first though using "enlarge"

cdo enlarge,my_3d_field.nc 1D_index.nc 3D_index.nc

then you can calculate the correlation

cdo fldcorr my_3d_field.nc 3D_index.nc corr.nc

    (1-1/1)