<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 13, 2009, at 11:59 AM, Christopher Blossom wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">To all:</div><p style="MARGIN: 0px"> </p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> I have a couple of questions: when I use rc=write(Jan1979.ctl, dset Jan1979.dat), I get the following message: Syntax Error: Invalid Operand </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">'write' not a variable or function name</div></font></blockquote></div><div><blockquote type="cite"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Error ocurred at column 1 </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">DEFINE error: Invalid expression.</div></font></blockquote>Put your write command in a script, the write function is only in the scripting language. </div><div><br><blockquote type="cite"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I am running grads OPeNDAP</div></font></blockquote>As Arlindo pointed out, the protocol is to include the the operating system you're running on, as well as the output from 'q config' in your post. </div><div><br><blockquote type="cite"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Why does that happen?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Additionally, I looked at <a href="http://nomads.ncdc.noaa.gov/dods/NCEP_NARR_DAILY/197901/197901/narr-b_221_197901dd_hh00_000.info" target="blank"><font color="#0000ff">http://nomads.ncdc.noaa.gov/dods/NCEP_NARR_DAILY/197901/197901/narr-b_221_197901dd_hh00_000.info </font></a> and saw some asterisks. When I put down d weasd3hr, I got the following error <a href="message:gancgrid">message:gancgrid</a> error: unable to allocate memory for grtmp grid storage </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> grid size = xlen * ylen * zlen * tlen * elen = 28 * 28 * -999 * 1 * 1</div></font></blockquote>Here is the problem: your Z dimension is set to something that is inconsistent with this data set, because the dim size given is -999. Check the output from 'q dims' before you invoke display or define and make sure you've got all your dimensions set properly. </div><div><br></div><div><blockquote type="cite"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Data Request Error: Error for variable 'weasd3hr' </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> Error ocurred at column 1 </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">DISPLAY error: Invalid expression </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> Expression = weasd3hr. </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Why was that?</div></font></blockquote><br><blockquote type="cite"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Finally, I have the CD. However, how do I view the files? The extensions in the monthly folders are .nar, .sqr, .hr and .sum. There is also a .PIC file for tracks. Another extension is .bgi. Finally, there is a file called INSTALL. </div></font></blockquote>I would guess that none of these file are directly readable/viewable with GrADS. Those file extensions don't correspond to any standard data format that I know of. You'll have to look for more metadata on your CD to find out what they mean. </div><div><br></div><div><br><span class="Apple-style-span" style="font-family: 'Default Sans Serif'; -webkit-text-stroke-width: -1; "></span></div><div><font class="Apple-style-span" face="'Default Sans Serif'"><span class="Apple-style-span" style="-webkit-text-stroke-width: -1;"><br></span></font></div><div><font class="Apple-style-span" face="'Default Sans Serif'"><span class="Apple-style-span" style="-webkit-text-stroke-width: -1;">Jennifer</span></font></div><div><font class="Apple-style-span" face="'Default Sans Serif'"><span class="Apple-style-span" style="-webkit-text-stroke-width: -1;"><br></span></font></div><div><span class="Apple-style-span" style="font-family: 'Default Sans Serif'; -webkit-text-stroke-width: -1; ">--</span></div><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>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></body></html>