<div dir="ltr">I would check to see if your component fields, man and a, have defined values.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 24, 2016 at 7:36 AM, 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>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 class="HOEnZb"><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: +919555813179<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>
</font></span></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"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Jeff Duda<br>Post-doctoral research associate<br>University of Oklahoma School of Meteorology<br></div></div></div>
</div>