<div dir="ltr">Dear Saurabh, <div> Kindly try with the attached sample gs file for temporal correlation. It is working perfectly. Your rainfall data is only confined to Indian Land region. But the SST is entire globe. That can be one of the reason for error. Not sure. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 26, 2016 at 8:51 PM, Sourabh Shrivastava <span dir="ltr"><<a href="mailto:sourabh.vds@gmail.com" target="_blank">sourabh.vds@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear friends,<div><br></div><div>Still I am facing same error.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 26, 2016 at 9:31 PM, Lee Byerle <span dir="ltr"><<a href="mailto:lbyerle@yahoo.com" target="_blank">lbyerle@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Sourabh,</div><div>Please disregard my previous reply. I am wondering if the dimensions of the variable man should constrained in x and y. Just before 'define man..' , it might work by:</div><span><div>set x 1</div><div>set y 1</div><div><br></div></span><div>Best wishes,</div><div>Lee</div><div><br><br><div>Sent from my iPhone</div></div><div><div><div><br>On Jun 26, 2016, at 11:46 AM, Lee Byerle <<a>lbyerle@yahoo.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div>Try limiting the x- and y- dimensions just before the define of corr.</div><div>set x 1</div><div>set y 1<br><br></div><div><div>Lee</div></div><div><div class="h5"><div><br>On Jun 25, 2016, at 2:38 PM, Kishore Ragi <<a>kishoreragi@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">For making sure, you just check once if lat and lon are same for both the files with ncdump -c command.<div><br></div><div>A simple trick: try to merge those files using CDO or NCO. It will show you if you have problem with incorrect grids.</div><div><br></div><div>To not to get these issues, I usually merge all the variables in a single file.<br><div><br></div><div><div>Cheers,</div><div>Kishore</div><div><br></div></div></div></div><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)"></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">PhD student in climate science,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">National Institute of Technology, Rourkela,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">India- 769008<br></span></b></span></font></div><div dir="ltr"><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">Phone: <a href="tel:%2B91-8908671881" value="+918908671881" target="_blank">+91-8908671881</a><br><br><a>http://www.researchgate.net/profile/Kishore_Ragi</a><br><br><a>https://in.linkedin.com/in/kishoreragi</a><br><br><a>http://kishoreragi.webnode.com/</a></span></b></span></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sat, Jun 25, 2016 at 9:16 PM, Sourabh Shrivastava <span dir="ltr"><<a>sourabh.vds@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My SST and Rainfall both have 0.25 degree resolution. Where i have taken the area average or rainfall.<div><div><br><br>On Saturday, June 25, 2016, Jayakrishnan P.R <<a>prjayakrishnan@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Sourabh,<div> I am afraid your SST is 1 degree resolution and the rainfall is 0.25 degree. Just check this. To perform any correlation we need to have both the input files as same dimension. If not you will have to regrid the other to 0.25 or vice versa. Just a thought. Best Wishes. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 24, 2016 at 8:36 PM, Sourabh Shrivastava <span dir="ltr"><<a>sourabh.vds@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Friends,<div><br></div><div>I am trying to calculate Temporal Correlation using GRADS.</div><div>My script is : </div><div><div><br></div><div>'reinit'</div><div>'open rf.25_1982_2014_jun.ctl'</div><div>'run <a>rgbset.gs</a>'</div><div>'set t 1 33'</div><div>'define rainclimate = ave(rain, t=1, t=33)'</div><div>'define anom = rain-rainclimate'</div><div>'define man = aave(anom, lon=74., lon=85., lat=18., lat=27.)'</div><div>'close 1'</div><div>*</div><div>'open sst_jun.ctl'</div><div>'define sstclimate = ave(sst,t=1,t=33)'</div><div>'set t 1 33'</div><div>'define anomsst = sst-sstclimate'</div><div>'define a = anomsst'</div><div>'set t 1'</div><div>'define corr = tcorr(man,a,t=1,t=33)'</div><div>'d corr'</div></div><div><br></div><div><br></div><div>and I am getting this error </div><div><br></div><div><div>Data Request Error: Invalid grid coordinates</div><div> World coordinates convert to non-integer grid coordinates</div><div> Variable = man Dimension = 3</div><div>Error from TCORR: Error getting grids</div><div>Operation Error: Error from tcorr function</div><div> Error ocurred at column 1</div><div>DEFINE error: Invalid expression.</div><div>Syntax Error: Invalid Operand</div><div> 'corr' not a variable or function name</div><div> Error ocurred at column 1</div><div>DISPLAY error: Invalid expression</div><div> Expression = corr</div><div><br></div><div><br></div><div><br></div><div>Thanking You</div><span><font color="#888888">-- <br><div data-smartmail="gmail_signature">SOURABH SHRIVASTAVA<br>Scientist-C<br>(BIMSTEC), NCMRWF<br>Ministry of Earth Sciences <br>A-50, Institutional Area, Sector-62,<br>NOIDA, UP, Pin: 201 307<br>---------------------------------------------------------<br>Mobile: <a value="+919555813179">+919555813179</a><br>emails: <a>sourabh@ncmrwf.gov.in</a>; <br>NCMRWF website: <a>www.ncmrwf.gov.in</a> </div>
</font></span></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a>gradsusr@gradsusr.org</a><br>
<a rel="noreferrer">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Sincerely</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">**************************************************</div><div style="font-size:12.8px">Dr. Jayakrishnan P.R</div><div style="font-size:12.8px">Post Doctoral Research Fellow</div><div style="font-size:12.8px">C308, Institute of Ocean and Earth Sciences (IOES)</div><div style="font-size:12.8px">University of Malaya</div><div style="font-size:12.8px">50603, Kuala Lumpur</div><div style="font-size:12.8px">Tel: <a value="+60379674640">(+603) 7967 4640</a> / 6995</div><div style="font-size:12.8px">Mobile: 012-3526094</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">****************************************************</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><br></div></div></div>
</div>
</blockquote><br><br>-- <br>SOURABH SHRIVASTAVA<br>Scientist-C<br>(BIMSTEC), NCMRWF<br>Ministry of Earth Sciences <br>A-50, Institutional Area, Sector-62,<br>NOIDA, UP, Pin: 201 307<br>---------------------------------------------------------<br>Mobile: <a value="+919555813179">+919555813179</a><br>emails: <a>sourabh@ncmrwf.gov.in</a>; <br>NCMRWF website: <a>www.ncmrwf.gov.in</a> <br>
</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a>gradsusr@gradsusr.org</a><br>
<a rel="noreferrer">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>gradsusr mailing list</span><br><span><a>gradsusr@gradsusr.org</a></span><br><span><a>http://gradsusr.org/mailman/listinfo/gradsusr</a></span><br></div></blockquote></div></div></div></blockquote></div></div></div><div><div class="h5"><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></div></div></blockquote></div><div><div class="h5"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature">SOURABH SHRIVASTAVA<br>Scientist-C<br>(BIMSTEC), NCMRWF<br>Ministry of Earth Sciences <br>A-50, Institutional Area, Sector-62,<br>NOIDA, UP, Pin: 201 307<br>---------------------------------------------------------<br>Mobile: <a href="tel:%2B919555813179" value="+919555813179" target="_blank">+919555813179</a><br>emails: <a href="mailto:sourabh@ncmrwf.gov.in" target="_blank">sourabh@ncmrwf.gov.in</a>; <br>NCMRWF website: <a href="http://www.ncmrwf.gov.in" target="_blank">www.ncmrwf.gov.in</a> </div>
</div></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Sincerely</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">**************************************************</div><div style="font-size:12.8px">Dr. Jayakrishnan P.R</div><div style="font-size:12.8px">Post Doctoral Research Fellow</div><div style="font-size:12.8px">C308, Institute of Ocean and Earth Sciences (IOES)</div><div style="font-size:12.8px">University of Malaya</div><div style="font-size:12.8px">50603, Kuala Lumpur</div><div style="font-size:12.8px">Tel: (+603) 7967 4640 / 6995</div><div style="font-size:12.8px">Mobile: 012-3526094</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">****************************************************</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><br></div></div></div>
</div>