<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What is the output from 'q dims'  before you invoke 'define' ? Can you track how much memory is available while you're running the script?<div>--Jennifer<br><div><br><div><div>On May 13, 2008, at 7:59 AM, Petroski, Tom (MLCI) wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> <!-- Converted from text/plain format --><p><font size="2">GrADS 2.0 Users,<br> <br> I get the following error message when using GrADS 2.0.a2, but not with versions 2.0.a1 or 2.0.a0.<br> <br> “gancgrid error: unable to allocate memory for grtmp grid storage”<br> <br> I am using the binary files from the ftp site compiled for Linux, but I found these statements in gaio.c lines 2426 – 2435.<br> <br> /* size of the grid to be read */<br>   grsize = xlen * ylen * zlen * tlen * elen;<br> <br>   /* allocate memory for temporary grids to hold data<br> <br>      before being placed properly in requested block */<br> <br>   grtmp = (gadouble *)galloc(grsize * sizeof(gadouble),"grtmp");<br> <br>   if (grtmp==NULL) {<br>     gaprnt (0,"gancgrid error: unable to allocate memory for grtmp grid storage \n");<br>     return (1);<br>   }<br> <br> I can successfully open my user created netcdf file,<br> <br> ga-> q file 2<br> <br> File 2 : Climatology: 6-hourly means 1971-2000<br> <br>   Descriptor: climo_71-00.nc<br> <br>   Binary: climo_71-00.nc<br> <br>   Type = Gridded<br> <br>   Xsize = 144  Ysize = 73  Zsize = 1  Tsize = 1464  Esize = 1<br> <br>   Number of Variables = 1<br> <br>     hgt_500_clim 0 -103 HGT_500_CLIM<br> <br> But when I attempt “define clim = hgt_500_clim.2’” under 2.0.a2, I get the earlier mentioned error message.<br> <br> Is this a bug?<br> <br> Thank You,<br> <br> Tom Petroski<br> --------------------------<br> Sent from my BlackBerry Wireless Device<br> </font> </p> </div> <div> <hr color="gray"> </div> <div>This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. This message is subject to terms available at the following link: <a href="http://www.ml.com/e-communications_terms/">http://www.ml.com/e-communications_terms/</a>. By messaging with Merrill Lynch you consent to the foregoing.</div> <div> <hr color="gray"> </div> <div> </div></blockquote></div><br><div> <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; "><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></span> </div><br></div></div></body></html>