<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Try limiting the x- and y- dimensions just before the define of corr.</div><div id="AppleMailSignature">set x 1</div><div id="AppleMailSignature">set y 1<br><br></div><div id="AppleMailSignature"><div>Lee</div></div><div><br>On Jun 25, 2016, at 2:38 PM, Kishore Ragi <<a href="mailto:kishoreragi@gmail.com">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 class="gmail_signature" 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: +91-8908671881<br><br><a href="http://www.researchgate.net/profile/Kishore_Ragi" target="_blank">http://www.researchgate.net/profile/Kishore_Ragi</a><br><br><a href="https://in.linkedin.com/in/kishoreragi" target="_blank">https://in.linkedin.com/in/kishoreragi</a><br><br><a href="http://kishoreragi.webnode.com/" target="_blank">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 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">My SST and Rainfall both have 0.25 degree resolution. Where i have taken the area average or rainfall.<div class="HOEnZb"><div class="h5"><br><br>On Saturday, June 25, 2016, Jayakrishnan P.R <<a href="mailto:prjayakrishnan@gmail.com" target="_blank">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 href="http://rgbset.gs" target="_blank">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 href="tel:%2B919555813179" value="+919555813179" target="_blank">+919555813179</a><br>emails: <a>sourabh@ncmrwf.gov.in</a>; <br>NCMRWF website: <a href="http://www.ncmrwf.gov.in" target="_blank">www.ncmrwf.gov.in</a> </div>
</font></span></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a>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 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 href="tel:%28%2B603%29%207967%204640" value="+60379674640" target="_blank">(+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 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> <br>
</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></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>gradsusr mailing list</span><br><span><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a></span><br><span><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a></span><br></div></blockquote></body></html>