[gradsusr] Maskout

Jennifer M Adams jadams21 at gmu.edu
Fri Mar 3 07:26:34 EST 2017


Using the logical expressions in the new version of GrADS, the command would look like this:
‘d maskout(mytemp,mytemp<0)’

But if you don’t have the new version, try this instead:
‘d maskout(mytemp,0-mytemp)’

—Jennifer


On Mar 1, 2017, at 10:21 AM, Becker, Bernd <bernd.becker at metoffice.gov.uk<mailto:bernd.becker at metoffice.gov.uk>> wrote:

'define mytemp2 = const(const(mytemp,1),0.0,-u)'


From: gradsusr-bounces at gradsusr.org<mailto:gradsusr-bounces at gradsusr.org> [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of d.nairn
Sent: 01 March 2017 14:27
To: GrADS Forum
Subject: [gradsusr] Maskout

Hello

I have this maskout command working for only displaying temperatures above 20(c)

'define mytemp2 = const(const(maskout(mytemp,mytemp-20),1),0.0,-u)'

I cannot figure out how to rewrite that command to display only temperatures below 0(c)
Can anybody help me out?

Thanks
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170303/e84915b4/attachment.html 


More information about the gradsusr mailing list