<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sorry, but I cannot reproduce this result at all. And even if there is a problem in v1.9, the first thing I'm going to say is try it in v2.0, because I'm not actively supporting v1.9 anymore. <div><br><div>The error message you're getting is that the world coordinate for dimension 1, that's Y, doesn't convert to an integer grid coordinate. When you 'set lat 0', GrADS returns (LAT set to 0.5). Try setting a lat value that exactly matches a grid coordinate value and see if you get the same message. </div><div><div>--Jennifer<br><div><br><div><div>On Jul 29, 2010, at 12:46 PM, Semyon Grodsky wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Jennifer,<br>I just open file (Reynolds and Smithh OI v2 SST),then define TEMP for the <br>entire spatial field at t=1 (see below).<br>Thanks,<br>--Senya<br>-------------------------------------<br>/data/arctic1/senya/SODA224> gradsnc<br><br>Grid Analysis and Display System (GrADS) Version 1.9b4<br>Copyright (c) 1988-2005 by Brian Doty and IGES<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>Institute for Global Environment and Society (IGES)<br>GrADS comes with ABSOLUTELY NO WARRANTY<br>See file COPYRIGHT for more information<br><br>Config: v1.9b4 32-bit little-endian readline sdf/xdf netcdf lats printim<br><br>Issue 'q config' command for more information.<br><br>Landscape mode? (no for portrait):<br>GX Package Initialization: Size = 11 8.5<br>ga-> open sst_month.ctl<br>Scanning description file: /mnt/data/senya/pacific/sst/sst_month<br>Data file /mnt/data/senya/pacific/sst/sst_month_v2_%y4.dat is open as file <br>1<br>LON set to 0 360<br>LAT set to -89.5 89.5<br>LEV set to 0 0<br>Time values set: 1981:11:1:0 1981:11:1:0<br><br>*sst is original variable from VARS in sst_month.ctl<br>*temp is defined variable<br><br>ga-> temp=sst<br>Define memory allocation size = 260640 bytes<br><br>ga-> set lat 0<br>LAT set to 0.5 0.5<br>ga-> set lon 0<br>LON set to 0.5 0.5<br><br>ga-> d sst(y+0)<br>Result value = 26.837<br><br>ga-> d temp(y+0)<br>Data Request Error: Invalid grid coordinates<br> World coordinates convert to non-integer grid coordinates<br> Variable = temp Dimension = 1<br> Error ocurred at column 1<br>DISPLAY error: Invalid expression<br> Expression = temp(y+0)<br>ga-><br><br><br><br>On Thu, 29 Jul 2010, Jennifer Adams wrote:<br><br><blockquote type="cite">Senya --<br></blockquote><blockquote type="cite">I cannot reproduce this error with version 1.9 or 2.0. Did you change the <br></blockquote><blockquote type="cite">default file or the X dimension environment between issuing your define <br></blockquote><blockquote type="cite">command to establish tempnew and your display request. What exactly are you <br></blockquote><blockquote type="cite">trying to accomplish with the expression temp(y+0) ?<br></blockquote><blockquote type="cite">--Jennifer<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Jul 28, 2010, at 11:43 AM, Semyon Grodsky wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Dear experts,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">suppose TEMP is a variable of an open file.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I define new variable<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">TEMPNEW=TEMP<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">set x 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">set y 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">set z 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">set t 1 last<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the following command works OK<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">d temp(y+0)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">but<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">d tempnew(y+0)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">returns error<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">World coordinates convert to non-integer grid coordinates<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Variable = tempnew Dimension = 0<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">What is wrong?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">GRADS 1.94 on LINUX machine<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Thanks<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--Senya<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-----------------------------------------------------------<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Semyon Grodsky<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Computer and Space Science Building (Bldg. #224), Room 2409<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Department of Atmospheric and Oceanic Science<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">University of Maryland<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">College Park, MD 20742<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Phone: 301-405-5330<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Fax: 301-314-9482<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">E-mail: <a href="mailto:senya@atmos.umd.edu">senya@atmos.umd.edu</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">gradsusr mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Jennifer M. Adams<br></blockquote><blockquote type="cite">IGES/COLA<br></blockquote><blockquote type="cite">4041 Powder Mill Road, Suite 302<br></blockquote><blockquote type="cite">Calverton, MD 20705<br></blockquote><blockquote type="cite"><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br>-----------------------------------------------------------<br>Semyon Grodsky<br>Computer and Space Science Building (Bldg. #224), Room 2409<br>Department of Atmospheric and Oceanic Science<br>University of Maryland<br>College Park, MD 20742<br><br>Phone: 301-405-5330<br>Fax: 301-314-9482<br>E-mail: <a href="mailto:senya@atmos.umd.edu">senya@atmos.umd.edu</a><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></div></div></div></body></html>