If statements and gridded data

Xuefeng Cui xuefng at DKRZ.DE
Mon Sep 26 12:21:29 EDT 2005


Hi Jeff,

try this

d maskout(Nm, rh-95)

It should work well.

Steven
On Monday 26 September 2005 18:05, you wrote:
> Hi,
>
> I am trying to display a variable only when another variable is greater
> than a certain value.  For example, I have a series of moist variables
> calculated, but would only like to display them when the relative
> humidity is greater than 95%.
>
> My script looks like
>
> if(rh > 95)
>   'd Nm'
> endif
>
> I realize (I think) that I cannot do if statements with gridded data, so
> is there a way for GrADS to do this??
>
> Any help would be much appreciated.
>
> Thanks,
> Jeff
>
>
> --------------------------------
> Jeff Frame
> Graduate Research Assistant
> Ph.D. Candidate
> Department of Meteorology
> Penn State University
> --------------------------------

--
Xuefeng Cui ---Steven---
Max Planck Institute for Meteorology
Bundesstrasse 53, 20146 Hamburg, Germany
Office Tel: +49 40 41173 386
Fax: +49 40 41173 298
Email: xuefng at dkrz.de



More information about the gradsusr mailing list