[gradsusr] scorr function- what is really being computed?
Ricardo Hallak
hallak at model.iag.usp.br
Wed Nov 21 08:13:57 EST 2012
The code of the scorr function can be found in the gafunc.c subroutine, directory src. You have to download some GrADS src code.
Basically, it is the same correlation used in 1D analysis (extended to 2D, of course) and using an areal average, which is weighted with laltitude. scorr=COV(var1,var2)/(Sigma(var1)*Sigma(var2)), where sigma(var) is the standard deviation of the variable var.
Regards,
Ricardo
On Fri, 16 Nov 2012 13:58:06 +0900, Craig R. FERGUSON wrote
> I am curious how 'spatial correlation' is defined/computed in the GrADS sense. Could someone please explain? Is there a way to see the hard code of the scorr function?
>
> Thank you.
>
> http://www.iges.org/grads/gadoc/gradfuncscorr.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121121/87e1ae05/attachment-0003.html
More information about the gradsusr
mailing list