[gradsusr] SET A CONSTANT

AMS EmsiWx Bytča emsiwx at pocasie-bytca.sk
Thu Mar 14 15:04:01 EDT 2019


Thank you Jeff and Stephen, will try to play with const/maskout first, 
then I will reinstall my Opengrads and try the if statement.


Marian

Dňa 14. 3. 2019 o 15:09 Stephen McMillan napísal(a):
> Marian,
>
> One correction to what I sent...
>
> 'define A=if(dt>25,0,if(dt>=22,2,6))'     added the second )
>
> Stephen
>
> On Thu, Mar 14, 2019 at 10:06 AM Stephen McMillan 
> <smcmillan at planalytics.com <mailto:smcmillan at planalytics.com>> wrote:
>
>     Marian,
>
>     If you have the latest version of GrADS or OpenGrADS, you could do
>     something like this:
>
>     'define dt=t850-t500'
>     'define A=if(dt>25,0,if(dt>=22,2,6)'
>     'd A'
>
>     Stephen McMillan
>
>     On Wed, Mar 13, 2019 at 4:14 PM AMS EmsiWx Bytča
>     <emsiwx at pocasie-bytca.sk <mailto:emsiwx at pocasie-bytca.sk>> wrote:
>
>         Dear all,
>
>
>         I am going crazy combining const/maskout to get what I need.
>
>         I need to set A according the following:
>
>         A= 0 when T850-T500 >25
>
>         A= 2 when T850-T500 22-25
>
>         A= 6 when T850-T500 <22
>
>
>         Would like to ask any master of const/maskout for help.
>
>
>         Thank you very much in advance.
>
>
>         Marian
>
>         _______________________________________________
>         gradsusr mailing list
>         gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
>         http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> ***************************************************
> The information contained in this e-mail message
> is intended only for the use of the recipient(s)
> named above and may contain information that is
> privileged, confidential, and/or proprietary.
> If you are not the intended recipient, you may not
> review, copy or distribute this message. If you have
> received this communication in error, please notify
> the sender immediately by e-mail, and delete the original message.
> ***************************************************
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190314/8acc7582/attachment.html>


More information about the gradsusr mailing list