<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.10.3">
</HEAD>
<BODY>
suppose your variable name to be mslp:<BR>
display const(maskout(mslp-1000,mslp-1000),0,-u)+const(maskout(mslp-900,999.9-mslp),0,-u)<BR>
<BR>
it should help ...<BR>
bye bye<BR>
Davide<BR>
<BR>
On Wed, 2006-09-06 at 09:56 +0200, Christian Grob wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi everybody,</FONT>
<FONT COLOR="#000000">I'm trying to print sea level pressure [in hPa] with the 'gxout</FONT>
<FONT COLOR="#000000">grid'-option. The spacial resolution of the dataset is quite good, so the</FONT>
<FONT COLOR="#000000">squares are too small to print the full pressure value in hPa. Instead I</FONT>
<FONT COLOR="#000000">would like to print e.g. 13.2 for 1013.2 hPa, 90.4 for 990.4 hPa etc. How</FONT>
<FONT COLOR="#000000">can I do this? I already tried to write a script with an if-function (if</FONT>
<FONT COLOR="#000000">'pressure' >= 1000 'd pressure -1000' else 'd pressure - 900'), but it</FONT>
<FONT COLOR="#000000">didn't work, because Grads only supports variables which are strings, but</FONT>
<FONT COLOR="#000000">not variables like 'pressure', which describe a full datalayer.</FONT>
<FONT COLOR="#000000">Thanks for your help</FONT>
<FONT COLOR="#000000">Christian Grob</FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
--
Sacchetti Davide
ARPAL UO3 Centro Meteo Idrologico Regione Liguria - Dir. Scientifica
V.le Brigare Partigiane 2 16121 Genova (I)
tel: +39 010 6437535
mail: <A HREF="mailto:davide.sacchetti@arpal.org">davide.sacchetti@arpal.org</A> web: <A HREF="http://www.meteoliguria.it">www.meteoliguria.it</A>
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>