<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Hyacinth<br>You first define the time series e.g.,<br>set t 1 100<br>define ts= <variable><br>then use<br>d tcorr(ts,sst,t=1,t=100)<br><br>Hope this will work<br><br>Best<br>Sajjad<br><br>******************************************************************************<br><br>Sajjad Saeed<br>Max Planck Institute for Meteorology,<br>Bundestrasse 53, 20146 Hamburg, Germany.<br><br><br><br><br>> Date: Thu, 22 Oct 2009 17:31:27 +0800<br>> From: hc.nnamchi@LASG.IAP.AC.CN<br>> Subject: On tcorr and tregr functions<br>> To: GRADSUSR@LIST.CINECA.IT<br>> <br>> Dear colleagues,<br>> I am trying to calculate the correlation coefficients between a time series and global SST<br>> using the tcorr function (http://www.iges.org/grads/gadoc/gradfunctcorr.html).But the function does not work.The tregr does not also work.<br>> <br>> 'open d:\analysis\EOF\eof_series1.ctl’"single time series:t=1,t=57; x=y=z= 1"<br>> 'open d:\analysis\DATA\winter_sst.ctl’"global: lon 0 360, lat -90 90; t=1,t=57,z=1"<br>> <br>> 'set y 1'<br>> 'set z 1'<br>> 'set t 1 57'<br>> 'set lon -180 180'<br>> 'set lat -90 10'<br>> 'set z 1'<br>> 'set t 1'<br>> 'set gxout contour'<br>> <br>> 'd tcorr(series.1,winter.2,t=1,t=57)'<br>> <br>> If I define an index using the SST data (as in the documentation, above) it works and give reliable result.<br>> <br>> Any ideas on what I've been doing wrong?<br>> <br>> Thanks,<br>> hyacinth<br> <br /><hr />Windows Live: <a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010' target='_new'>Friends get your Flickr, Yelp, and Digg updates when they e-mail you.</a></body>
</html>