Open alaingdl opened 2 years ago
Yes but IDL 'forgets' about the 3rd dimension.
IDL> a=randomu(33,2,13,13) & covMatrix = Correlate(a,/cov) & print,covmatrix
0.101819 -0.0113056
-0.0113056 0.0989166
IDL> a=randomu(33,2,13,2) & covMatrix = Correlate(a,/cov) & print,covmatrix
0.101819 -0.0113056
-0.0113056 0.0989166
I would call that a bug, and GDL is well inspired to signal the error ?
CORRELATE() in GDL stops when input array dim is higher than 2. Same problem with and without /COVARIANCE keyword. I am afraid if is more that just removing the test at line 42 ...
but on the GDL side :+1: