<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi, Jeff —
<div>Yes, the if() function effectively duplicates the nesting of const and maskout. The logical expression handling is what makes using if() much easier and more intuitive. The if() function is not necessarily more powerful, only more elegant. I suspect it
might be faster as well. </div>
<div>
<div>—Jennifer</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>On Feb 14, 2017, at 11:54 AM, Jeff Duda <<a href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">
<div>
<div>Jennifer,<br>
</div>
If I understand the if() construct correctly, it sounds like it duplicates the behavior of [possibly nested] const(maskout()). Is this correct? Does if() have more power than that?<br>
<br>
</div>
Jeff Duda<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Feb 14, 2017 at 8:27 AM, Jennifer M Adams <span dir="ltr">
<<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Oops, the URL I provided was incorrect. My bad. Please visit
<a href="http://cola.gmu.edu/grads/downloads.php" target="_blank">http://cola.gmu.edu/grads/<wbr>downloads.php</a>.
<div>
<div>—Jennfier<br>
<div><br>
<div>
<div>
<div class="h5">
<div>On Feb 14, 2017, at 9:16 AM, Jennifer M Adams <<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>> wrote:</div>
<br class="m_-3488459623919470601Apple-interchange-newline">
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div style="word-wrap:break-word">
<div>Happy Valentines Day to all of our forum-subscribing GrADS users! </div>
<div><br>
</div>
<div>Brian and I are pleased to announce a new release of GrADS, version <b>2.1.1.b0</b>. This build has some important and useful new features, perhaps the most exciting being the addition/return of User Defined Plug-in (UDP) functions, which are called plug-ins
to distinguish them from the old user defined functions (from the version 1.9 era) and user defined extensions (from opengrads). The opengrads extensions should work with just a few minor adjustments to the entries in the user defined plug-in table. We have
also added logical operators to the expression handler, (e.g. ‘display slp<980’) and an if() function which facilitates the use of the logical operators. The result of a logical expression is 1 or -1, making it especially easy to use with maskout(). Here’s
how simple it is to create a mask for a lat/lon subdomain:</div>
<div><code> ga-> d maskout(tsfc,(lat>=-5)&(lat<=<wbr>5)&(lon>=190)&(lon<=240))</code></div>
<div><br>
</div>
<div>Another handy new scripting language function, sys(), will submit a command to the shell, similar to putting a “!” in front of your command, except that the resulting output can be captured and returned as a string buffer to be parsed in your script. </div>
<div><br>
</div>
<div>The GrADS downloads web page (<a href="http://iges.org/grads/downloads.html" target="_blank"><font style="color:rgb(0,31,223)" color="#001fdf"><u>http://cola.gmu.edu/grads/<wbr>downloads.html</u></font></a>) has been updated with links to the source code
and pre-compiled binaries for 32-bit and 64-bit linux plus Mac OS X (10.9). The recent switch from HTTP to HTTPS for most .gov data servers requires that GrADS be linked with the OpenSSL library. This is done dynamically, which means that the library must
be present on your local system in order to use the SSL-enabled builds. Because OpenSSL is not always available or may not be the most recent version, I have also created builds that are not linked with OpenSSL. </div>
<div><br>
</div>
<div>The full text from the ChangeLog is copied below. Enjoy! </div>
<div>—Jennifer</div>
<div><br>
</div>
<div><br>
</div>
<div>
<pre><font style="font-size:14px" face="Courier"> Features:
* Added support for User Defined Plug-in functions which replace the old UDFs
* Added support for logical operators in the expression syntax (gridded data only)
* New function 'if()' performs an if/then/else expression evaluation
* New scripting language function 'sys()' submits any command to the shell and
        returns the resulting text stream that the command sends to standard output
* New option '-4de' for the 'set sdfwrite' command
* New option for 'q define'        prints all the relevant information about a variable
* New command 'set barbopts' to support filled pennant flags on wind barbs
        
Misc:
* Added support in gxprint for mixed case file names with the -f or -b option
* Added descriptor file entry 'XYTRAILER' for files that have a trailer record
New/Updated Documentation:
* <a href="http://cola.gmu.edu/grads/gadoc/udp.html" target="_blank">http://cola.gmu.edu/grads/<wbr>gadoc/udp.html</a>
* <a href="http://cola.gmu.edu/grads/gadoc/expressions.html" target="_blank">http://cola.gmu.edu/grads/<wbr>gadoc/expressions.html</a>
* <a href="http://cola.gmu.edu/grads/gadoc/gradfuncif.html" target="_blank">http://cola.gmu.edu/grads/<wbr>gadoc/gradfuncif.html</a>
* <a href="http://cola.gmu.edu/grads/gadoc/script.html" target="_blank">http://cola.gmu.edu/grads/<wbr>gadoc/script.html</a>
* <a href="http://cola.gmu.edu/grads/gadoc/gradcomdsetsdfwrite.html" target="_blank">http://cola.gmu.edu/grads/<wbr>gadoc/gradcomdsetsdfwrite.html</a>
* <a href="http://cola.gmu.edu/grads/gadoc/descriptorfile.html" target="_blank">http://cola.gmu.edu/grads/<wbr>gadoc/descriptorfile.html</a>
* <a href="http://cola.gmu.edu/grads/gadoc/gradcomdqdefine.html" target="_blank">http://cola.gmu.edu/grads/<wbr>gadoc/gradcomdqdefine.html</a>
* <a href="http://cola.gmu.edu/grads/gadoc/gradcomdsetbarbopts.html" target="_blank">http://cola.gmu.edu/grads/<wbr>gadoc/gradcomdsetbarbopts.html</a>
        
Supplib Update:        
* Some builds are linked dynamically with OpenSSL to access data servers via HTTPS.
This library may not always be needed or available, so builds without OpenSSL
have also been provided.
</font></pre>
<div><br>
</div>
</div>
<div><br>
</div>
<div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-size:12px"><br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
</blockquote>
</div>
<br>
<div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
<div style="font-size:12px">--</div>
<div style="font-size:12px">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div dir="ltr">Jeff Duda<br>
Post-doctoral research fellow<br>
University of Oklahoma School of Meteorology<br>
</div>
</div>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-size: 12px; orphans: 2; widows: 2;">--</div>
<div style="font-size: 12px; orphans: 2; widows: 2;">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</body>
</html>