<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:tahoma,new york,times,serif;font-size:12pt"><div style="font-family: tahoma,new york,times,serif; font-size: 12pt;"><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: tahoma,new york,times,serif; font-size: 12pt;"><div style="font-family: tahoma,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;"></span></b><b><span style="font-weight: bold;"></span></b><b><span style="font-weight: bold;"></span></b></font>Dear Jenifer and Grads user's:<br><br>the data (rt.1 and rt.2) have the same time axis (but the resolution is different) and i've set the time too before invoking the tcorr but until know. something is wrong (perhaps) in my script. <br><div style="font-family: tahoma,new york,times,serif; font-size: 12pt;"><div><br>Please find there again my script and the error report:<br>sdfopen /home/lpaosf/izo_moctar/regcm_2005.nc<br>sdfopen
/home/lpaosf/izo_moctar/gpcp_2005.nc<br>q file 1<br>q file 2<br>set grads off<br>set grid off<br>set map 1 1 8<br>set display color white<br>set xlopts 1 6 0.18<br>set ylopts 1 6 0.18<br>set map 1 1 8<br>set clopts -1 -1 0.18<br>set font 4<br>set z 1<br>set vpage 0.5 5.2 4.4 8.4<br>set vrange 0 80<br>set dfile 1<br>set lon -17.5<br>set lat 14.73<br>set z 1<br><br>set tlsupp year<br>set rgb 19 0 60 0<br>set ccolor 19<br>set cmark 0<br>set line 2<br>set t 151 273<br>d rt.1<br><br><br>set dfile 2<br>set lon -17.5<br>set lat 14.73<br>set z 1<br>set cmark 1<br>set line 1<br>set rgb 20 0 150 0<br>set ccolor 20<br>set t 151 273<br>d rt.2<br>set t 151<br>define cc=tcorr(rt.2, rt.1, t=151, t=273)<br>d
cc<br><br>this script seems good for me but when i run it i get the same error:<br>ime values set: 2005:5:31:12 2005:5:31:12 <br>define cc=tcorr(rt.2, rt.1, t=151, t=273)<br>TCORR: dim = 3, start = 151, end = 273<br>Data Request Error: Invalid grid coordinates<br> World coordinates convert to non-integer grid coordinates<br> Variable = rt.1 Dimension = 0 <br>Error from TCORR: Error getting grids<br>Operation Error: Error from tcorr function<br> Error ocurred at column 1<br>DEFINE error: Invalid expression. <br>EXEC error: error in atrib_station2005. EXEC stopped.<br><br>So i don't know what's wrong if you have another idea please help me.<br><br>Thank in advance <br>ismaila<br></div><div style="font-family: tahoma,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr
size="1"><b><span style="font-weight: bold;">From:</span></b> Kyozo Ueyoshi <kueyoshi@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Ismaila Diallo <ismailadiallo64@yahoo.fr><br><b><span style="font-weight: bold;">Sent:</span></b> Fri, February 11, 2011 7:28:39 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [gradsusr] temporal correlation<br></font><br>
Ismaila,<br><br>Does your <code><i>expr1 </i></code>depend on time only? It shouldn't vary in x or y.<br>I hope this helps.<br>-- <br>Kyozo<br><br><p><code>tcorr (<i>expr1, expr2, tdim1, tdim2</i>)</code>
</p><p>
This function produces a spatial map of temporal correlation
coefficients.
</p><p>
</p><ul><code><i>expr1</i> </code>-
a valid GrADS expression that varies in time<br><code><i>expr2</i> </code>-
a valid GrADS expression that varies in time and may also vary in X and Y<br><code><i>tdim1</i> </code>-
starting time dimension expression <br><code><i>tdim2</i> </code>-
ending time dimension expression</ul><br><br><div class="gmail_quote">On Fri, Feb 11, 2011 at 10:45 AM, Ismaila Diallo <span dir="ltr"><<a rel="nofollow" ymailto="mailto:ismailadiallo64@yahoo.fr" target="_blank" href="mailto:ismailadiallo64@yahoo.fr">ismailadiallo64@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear,<br>
<br>
i have model and observation data and i want to calculate the temporal<br>
correlation between these variables. i use grads version Version 2.0.a7: I try<br>
this command: tcorr(aa,bb,t=t1,t=t2)<br>
<br>
like the following script<br>
<br>
define aa=pr.1<br>
define bb=pr.2<br>
define cc=tcorr(aa,bb,t=151,t=273)<br>
d cc<br>
<br>
therefore i get this error:<br>
define r1=tcorr(aa,bb,t=151,t=273)<br>
TCORR: dim = 3, start = 151, end = 273<br>
Data Request Error: Invalid grid coordinates<br>
World coordinates convert to non-integer grid coordinates<br>
Variable = aa Dimension = 3<br>
Error from TCORR: Error getting grids<br>
Operation Error: Error from tcorr function<br>
Error ocurred at column 1<br>
DEFINE error: Invalid expression.<br>
<br>
<br>
Since a week i posted this difficult but until now i didn't receive help from<br>
grads forum so i need your help and<br>
<br>
All comment are welcome.<br>
<br>
Sincerely<br>
<br>
ismaila<br>
<br>
<br>
<br>
____________________________________________________________________________________<br>
Food fight? Enjoy some healthy debate<br>
in the Yahoo! Answers Food & Drink Q&A.<br><span><span><span>
<a target="_blank" href="http://answers.yahoo.com/dir/?link=list&sid=396545367">http://answers.yahoo.com/dir/?link=list&sid=396545367</a></span></span></span><br>
_______________________________________________<br>
gradsusr mailing list<br>
<a rel="nofollow" ymailto="mailto:gradsusr@gradsusr.org" target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><span><span><span>
<a target="_blank" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a></span></span></span><br>
</blockquote></div><br><br clear="all"><br><br>
</div></div>
</div><br>
</div></div>
</div><br>
</div></div>
</div><br>
<hr size=1><a href="
http://us.rd.yahoo.com/evt=49981/*http://advision.webevents.yahoo.com/mailbeta/features_spam.html">Sucker-punch spam</a> with award-winning protection.<br> Try the <a href="
http://us.rd.yahoo.com/evt=49981/*http://advision.webevents.yahoo.com/mailbeta/features_spam.html">free Yahoo! Mail Beta.</a></body></html>