<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Internal variable "lev" undefined</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Sorry if the answer to this already exists .. but I couldn't find it.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I have a grib data file using pressure levels in a fairly standard way. </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">When I do a "d lev", sometimes I get it reported as a constant value (at whatever level I'm at through "set lev 500", for example) - which is what I would expect ... and then .. sometimes I get "Cannot Contour grid - all undefined values". Everything else is fine .. I can change levels and properly display data on those levels. It is just the internal GrADS variable "lev" that seems to get lost for display</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Even stranger </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Even if -d lev- does work using grads interactively ... using the same command in a script (a single line script that contains just 'd lev') does not work. Eg .. suppose I have a script called junk.gs containing the single line 'd lev'. </FONT></P>
<P><FONT SIZE=2 FACE="Arial">Enter from keyboard d lev may get back constant value (or may not)</FONT>
<BR><FONT SIZE=2 FACE="Arial">Enter from keyboard junk.gs will get back all undefined values, even if 'd lev' from keyboard worked.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I'm stumped - and this is causing grief as it means I can't use "lev" in my script calculations.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Anybody got any guesses</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Tks</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Ron Goodson (grads 1.94b on RedHat Workstation)</FONT>
</P>
</BODY>
</HTML>