Pressure Code (1013.2 -> 13.2)
Davide Sacchetti
davide.sacchetti at ARPAL.ORG
Wed Sep 6 04:14:19 EDT 2006
suppose your variable name to be mslp:
display
const(maskout(mslp-1000,mslp-1000),0,-u)+const(maskout(mslp-900,999.9-mslp),0,-u)
it should help ...
bye bye
Davide
On Wed, 2006-09-06 at 09:56 +0200, Christian Grob wrote:
> Hi everybody,
> I'm trying to print sea level pressure [in hPa] with the 'gxout
> grid'-option. The spacial resolution of the dataset is quite good, so the
> squares are too small to print the full pressure value in hPa. Instead I
> would like to print e.g. 13.2 for 1013.2 hPa, 90.4 for 990.4 hPa etc. How
> can I do this? I already tried to write a script with an if-function (if
> 'pressure' >= 1000 'd pressure -1000' else 'd pressure - 900'), but it
> didn't work, because Grads only supports variables which are strings, but
> not variables like 'pressure', which describe a full datalayer.
>
> Thanks for your help
>
> Christian Grob
--
Sacchetti Davide
ARPAL UO3 Centro Meteo Idrologico Regione Liguria - Dir. Scientifica
V.le Brigare Partigiane 2 16121 Genova (I)
tel: +39 010 6437535
mail: davide.sacchetti at arpal.org web: www.meteoliguria.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20060906/2b9599c8/attachment.html
More information about the gradsusr
mailing list