correlation between two nc files

Robert Burgman rburgman at RSMAS.MIAMI.EDU
Mon Mar 19 12:21:39 EDT 2007


Are you looking for the spatial correlation?
If the two .nc files use the same grid then simply use the scorr()
function.
If not you need to put them on a common grid .
The user defined function regrid2() is helpful for this.
This function was written by Mike Fiorino and can be found on the web.
Using the regrid2 function you define new variables.
set lat -90 90
set lon 0 359
define newvar1=regrid2(origvar1,2.5,2.5) for a 2.5 x 2.5 grid
define newvar2=regrid2(origvar2,2.5,2.5)    same grid!
now you can find the spatial correlation of the two newly define
variable since they are on a common grid.
d scorr(newvar1,newvar2,lon=-0,lon=359,lat=-90,lat=90)

On Mar 19, 2007, at 5:51 AM, Lakshmee Kumar T wrote:

> Dear Sir,
>
>     I have two nc files. I need to do correlation for the two nc
> files for a set of time interval. Please help me in this regard,
>
> Thank You
>
>
> ***************************
>
> TV.Lakshmi Kumar
> Research Scholar
> Dept of Meteorology & Oceanography
> Andhra University
> Visakhapatnam - 530003
> India.
>
> Finding fabulous fares is fun.
> Let Yahoo! FareChase search your favorite travel sites to find
> flight and hotel bargains.

----------------------------------------------------
Dr. Robert Burgman
Division of Meteorology and Physical Oceanography
Rosenstiel School of Marine and Atmospheric Science
University of Miami MPO, MSC 237
4600 Rickenbacker Causeway
Miami, FL 33149

Tel:        (305) 421-4272
Fax:       (305) 421-4696
Email:    rburgman at rsmas.miami.edu
---------------------------------------------------



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20070319/f7f09515/attachment.html 


More information about the gradsusr mailing list