<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;">
<br>
<div>
<div>On Feb 14, 2017, at 12:00 PM, Ryglicki, Dr. David, Contractor, Code 7533 &lt;<a href="mailto:david.ryglicki.ctr@nrlmry.navy.mil">david.ryglicki.ctr@nrlmry.navy.mil</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:644236184;
        mso-list-type:hybrid;
        mso-list-template-ids:-1848997834 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi, Jennifer.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thank you for your hard work. This looks really interesting and powerful. I have a couple questions, if you (and the community) don’t mind.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">1. I’m under the assumption that all plug-ins have to be written in C.</span></p>
</div>
</div>
</blockquote>
Yes, because the plug-in needs to include grads.h.&nbsp;</div>
<div><br>
<blockquote type="cite">
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I’m not sure if you’ve tried this, but does this mean that all Fortran subroutines we all have (presumably) lying around have to be either converted to C outright
 or need to be wrapped Fortran 2003-style? </span></p>
</div>
</div>
</blockquote>
I will post another example to the docs that is based on a fortran program. The ‘wrapper’ parts of the program were translated into C, but the bulk of the work is done with calls to a fortran library that doesn’t need to be modified.&nbsp;</div>
<div><br>
<blockquote type="cite">
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Are there any plans for a GrADS Fortran API? (Last question is
<i>really</i> pie in the sky)</span></p>
</div>
</div>
</blockquote>
Nope.&nbsp;</div>
<div><br>
<blockquote type="cite">
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">2. What should functions return?
</span></p>
</div>
</div>
</blockquote>
The return value is an integer that is treated as a return code (0=success, 1=failure). The gastat structure that is passed to the function is where the data results get stored.&nbsp;</div>
<div><br>
<blockquote type="cite">
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Arrays?
</span></p>
</div>
</div>
</blockquote>
The result can be gridded or station data.&nbsp;</div>
<div><br>
<blockquote type="cite">
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">What if we want to return a lat/lon? Should that come out in a print statement and be processed via typical scripting methods (sublin, subwrd, etc.)?</span></p>
</div>
</div>
</blockquote>
Sure, just use the gaprnt() function and it will be passed into the ‘result’ variable in your script.&nbsp;</div>
<div><br>
<blockquote type="cite">
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">3. Is the to-come “defop” meant to operate on “defined” variables in place?</span></p>
</div>
</div>
</blockquote>
Exactly.&nbsp;</div>
<div><br>
<blockquote type="cite">
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Just curious. Thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">~Dave<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org">mailto:gradsusr-bounces@gradsusr.org</a>]
<b>On Behalf Of </b>Jennifer M Adams<br>
<b>Sent:</b> Tuesday, February 14, 2017 6:28 AM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] * * * New release: GrADS 2.1.1.b0 * * *<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Oops, the URL I provided was incorrect. My bad. Please visit
<a href="http://cola.gmu.edu/grads/downloads.php">http://cola.gmu.edu/grads/downloads.php</a>.
<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">—Jennfier<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">On Feb 14, 2017, at 9:16 AM, Jennifer M Adams &lt;<a href="mailto:jadams21@gmu.edu">jadams21@gmu.edu</a>&gt; wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Happy Valentines Day to all of our forum-subscribing GrADS users!&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">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&lt;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:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><code><span style="font-size:10.0pt">&nbsp; ga-&gt; d maskout(tsfc,(lat&gt;=-5)&amp;(lat&lt;=5)&amp;(lon&gt;=190)&amp;(lon&lt;=240))</span></code><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">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.&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">The GrADS downloads web page (<a href="http://iges.org/grads/downloads.html"><span style="color:#001FDF">http://cola.gmu.edu/grads/downloads.html</span></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.&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">The full text from the ChangeLog is copied below. Enjoy!&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">—Jennifer<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; Features:<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * Added support for User Defined Plug-in functions which replace the old UDFs<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * Added support for logical operators in the expression syntax (gridded data only)<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * New function 'if()' performs an if/then/else expression evaluation<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * New scripting language function 'sys()' submits any command to the shell and <o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; returns the resulting text stream that the command sends to standard output<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * New option '-4de' for the 'set sdfwrite' command <o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp;&nbsp;* New option for 'q define'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; prints all the relevant information about a variable<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * New command 'set barbopts' to support filled pennant flags on wind barbs<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; Misc:<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * Added support in gxprint for mixed case file names with the -f or -b option<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * Added descriptor file entry 'XYTRAILER' for files that have a trailer record <o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;</span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; New/Updated Documentation:<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * <a href="http://cola.gmu.edu/grads/gadoc/udp.html">http://cola.gmu.edu/grads/gadoc/udp.html</a><o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * <a href="http://cola.gmu.edu/grads/gadoc/expressions.html">http://cola.gmu.edu/grads/gadoc/expressions.html</a><o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * <a href="http://cola.gmu.edu/grads/gadoc/gradfuncif.html">http://cola.gmu.edu/grads/gadoc/gradfuncif.html</a><o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * <a href="http://cola.gmu.edu/grads/gadoc/script.html">http://cola.gmu.edu/grads/gadoc/script.html</a><o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * <a href="http://cola.gmu.edu/grads/gadoc/gradcomdsetsdfwrite.html">http://cola.gmu.edu/grads/gadoc/gradcomdsetsdfwrite.html</a><o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * <a href="http://cola.gmu.edu/grads/gadoc/descriptorfile.html">http://cola.gmu.edu/grads/gadoc/descriptorfile.html</a><o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * <a href="http://cola.gmu.edu/grads/gadoc/gradcomdqdefine.html">http://cola.gmu.edu/grads/gadoc/gradcomdqdefine.html</a><o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * <a href="http://cola.gmu.edu/grads/gadoc/gradcomdsetbarbopts.html">http://cola.gmu.edu/grads/gadoc/gradcomdsetbarbopts.html</a><o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; Supplib Update:&nbsp;&nbsp;&nbsp; <o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp; * Some builds are linked dynamically with OpenSSL to access data servers via HTTPS.<o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This library may not always be needed or available, so builds without OpenSSL <o:p></o:p></span></pre>
<pre><span style="font-size:10.5pt;font-family:Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;have also been provided. <o:p></o:p></span></pre>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt">&nbsp;</span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal">_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 9pt;">--<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size: 9pt;">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</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>
</body>
</html>