<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
That shouldn't be a big memory request: 145*73*1*1*1*8. Does 'display' work, or do you get the error only with 'define'? If the error is reproducible, could you please send the shortest possible script to illustrate the error and the output from ncdump -c on your netcdf file? <div>Jennifer</div><div><br><div><br><div><div>On May 13, 2008, at 9:21 AM, Petroski, Tom ((MLCI)) wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; 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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PostalCode"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="address"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"><div class="Section1"><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; ">Jennifer,<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; "><o:p> </o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; ">Output from q dims is below.  I am not really sure how to track how much memory is available when the script runs except to say my workstation has 8 GB of free memory and when I watch the output of the “top” command while running the script, memory usage does not noticeably change.  Is there another way I can monitor memory usage by GrADS?<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; "><o:p> </o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; ">ga-> q dims<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; ">Default file number is: 1<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; ">X is varying   Lon = 0 to 360   X = 1 to 145<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; ">Y is varying   Lat = -90 to 90   Y = 1 to 73<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; ">Z is fixed     Lev = 0  Z = 1<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; ">T is fixed     Time = 00Z01JAN2000  T = 1<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span lang="DE" style="font-size: 10pt; font-family: Arial; color: blue; ">E is fixed     E = 1  Ens = 1<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span lang="DE" style="font-size: 10pt; font-family: Arial; color: blue; "><o:p> </o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; ">Thank You,</span></font><font color="blue"><span style="color: blue; "><o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="blue" face="Times New Roman"><span style="font-size: 12pt; color: blue; "> <o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="blue" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: blue; ">Tom</span></font><font color="blue"><span style="color: blue; "><o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div><div class="MsoNormal" align="center" style="text-align: center; margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><hr size="2" width="100%" align="center" tabindex="-1"></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold; ">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; "><span class="Apple-converted-space"> </span>GRADSUSR@LIST.CINECA.IT [<a href="mailto:GRADSUSR@LIST.CINECA.IT">mailto:GRADSUSR@LIST.CINECA.IT</a>]<span class="Apple-converted-space"> </span><b><span style="font-weight: bold; ">On Behalf Of<span class="Apple-converted-space"> </span></span></b>Jennifer Adams<br><b><span style="font-weight: bold; ">Sent:</span></b><span class="Apple-converted-space"> </span>Tuesday, May 13, 2008 7:45 AM<br><b><span style="font-weight: bold; ">To:</span></b><span class="Apple-converted-space"> </span><a href="mailto:GRADSUSR@LIST.CINECA.IT">GRADSUSR@LIST.CINECA.IT</a><br><b><span style="font-weight: bold; ">Subject:</span></b><span class="Apple-converted-space"> </span>Re: gancgrid error: unable to allocate memory for grtmp grid storage</span></font><o:p></o:p></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">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?<o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">--Jennifer<o:p></o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">On May 13, 2008, at 7:59 AM, Petroski, Tom (MLCI) wrote:<o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><br><br><o:p></o:p></span></font></div><div><p style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Times New Roman"><span style="font-size: 10pt; ">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</span></font><o:p></o:p></p></div><div><div class="MsoNormal" align="center" style="text-align: center; margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><hr size="2" width="100%" noshade="" color="gray" align="center"></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">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:<span class="Apple-converted-space"> </span><a href="http://www.ml.com/e-communications_terms/" style="color: blue; text-decoration: underline; ">http://www.ml.com/e-communications_terms/</a>. By messaging with Merrill Lynch you consent to the foregoing.<o:p></o:p></span></font></div></div><div><div class="MsoNormal" align="center" style="text-align: center; margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><hr size="2" width="100%" noshade="" color="gray" align="center"></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <o:p></o:p></span></font></div></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div><div><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; word-spacing: 0px; "><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; word-spacing: 0px; "><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; "><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; word-spacing: 0px; ">--<o:p></o:p></span></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; ">Jennifer M. Adams<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; ">IGES/COLA<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><st1:street w:st="on"><st1:address w:st="on"><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; ">4041 Powder Mill Road, Suite 302</span></font></st1:address></st1:street><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; "><o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><st1:place w:st="on"><st1:city w:st="on"><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; ">Calverton</span></font></st1:city><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; ">,<span class="Apple-converted-space"> </span><st1:state w:st="on">MD</st1:state><span class="Apple-converted-space"> </span><st1:postalcode w:st="on">20705</st1:postalcode></span></font></st1:place><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; "><o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; "><a href="mailto:jma@cola.iges.org" style="color: blue; text-decoration: underline; ">jma@cola.iges.org</a><o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; "><o:p> </o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" color="black" face="Helvetica"><span style="font-size: 8pt; font-family: Helvetica; color: black; "><br><br></span></font><o:p></o:p></div></span></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div></div></div></div></o:smarttagtype></o:smarttagtype></o:smarttagtype></o:smarttagtype></o:smarttagtype></o:smarttagtype></span></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>