<div dir="ltr">Dave B,<div><br></div><div>That&#39;s great news.  I look forward to the next release.  Thank you.</div><div><br></div><div>--Dave A.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 25, 2014 at 4:47 PM, David Brown <span dir="ltr">&lt;<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dave,<br>
<br>
I can let you know that this issue has been addressed.  For the next<br>
NCL release, coordinate subscripts may be any numeric type, and are<br>
independent of the type of the coordinate values.<br>
 -dave<br>
<br>
On Thu, Nov 20, 2014 at 10:36 AM, David Brown &lt;<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>&gt; wrote:<br>
&gt; Hi Dave,<br>
&gt; I am back now and I will look into this issue soon.<br>
&gt;  -dave<br>
&gt;<br>
&gt; On Thu, Nov 20, 2014 at 12:52 AM, Dave Allured - NOAA Affiliate<br>
&gt; &lt;<a href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</a>&gt; wrote:<br>
&gt;&gt; Mary,<br>
&gt;&gt;<br>
&gt;&gt; The &quot;totype&quot; workaround is working fine, it&#39;s just that the issue keeps<br>
&gt;&gt; coming back whenever we encounter type variations in new data and program<br>
&gt;&gt; combinations.  For this and my original reasons, it would be helpful to have<br>
&gt;&gt; this feature in the language.<br>
&gt;&gt;<br>
&gt;&gt; --Dave<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Nov 19, 2014 at 3:37 PM, Mary Haley &lt;<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi Dave,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Our JIRA ticket database is down for maintenance at the moment, so I can&#39;t<br>
&gt;&gt;&gt; check the status.  I&#39;m pretty sure nothing has been done on it yet.  Dave<br>
&gt;&gt;&gt; Brown will be the one to answer this, but he&#39;s not in this week.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; You had mentioned that &quot;totype&quot; would work as a temporary fix.  Is this<br>
&gt;&gt;&gt; still working for you for now?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --Mary<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, Nov 19, 2014 at 11:22 AM, Dave Allured - NOAA Affiliate<br>
&gt;&gt;&gt; &lt;<a href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; NCL support,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Is there any progress on this request?  This issue keeps coming up in my<br>
&gt;&gt;&gt;&gt; work group.  We perform a lot of generalized file handling.  Thank you.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --Dave<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Thu, Aug 22, 2013 at 12:30 PM, David Brown &lt;<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Hi Dave,<br>
&gt;&gt;&gt;&gt;&gt; This is a very good suggestion. We will create a ticket for it.<br>
&gt;&gt;&gt;&gt;&gt;  -dave<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On Aug 22, 2013, at 12:06 PM, Dave Allured - NOAA Affiliate<br>
&gt;&gt;&gt;&gt;&gt; &lt;<a href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; NCL support,<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; This is a request for improved support for mixed types in coordinate<br>
&gt;&gt;&gt;&gt;&gt; &gt; subscripting.  For example, it is legal to subscript a double<br>
&gt;&gt;&gt;&gt;&gt; &gt; coordinate with floats, but going the other way is an error.  This<br>
&gt;&gt;&gt;&gt;&gt; &gt; shows that type handling in simple NCL relational operators is more<br>
&gt;&gt;&gt;&gt;&gt; &gt; liberal than in coordinate subscripting:<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; lats = (/ 0., 10., 20., 30., 40., 50., 60. /)<br>
&gt;&gt;&gt;&gt;&gt; &gt; x    = (/ 0,  111, 222, 333, 444, 555, 666 /)<br>
&gt;&gt;&gt;&gt;&gt; &gt; x!0  = &quot;lat&quot;<br>
&gt;&gt;&gt;&gt;&gt; &gt; y    = x<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; x&amp;lat = tofloat  (lats)<br>
&gt;&gt;&gt;&gt;&gt; &gt; y&amp;lat = todouble (lats)<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; f1 = 20.     ; floats<br>
&gt;&gt;&gt;&gt;&gt; &gt; f2 = 40.<br>
&gt;&gt;&gt;&gt;&gt; &gt; d1 = 20d     ; doubles<br>
&gt;&gt;&gt;&gt;&gt; &gt; d2 = 40d<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; ind1 = ind (y&amp;lat .ge. f1 .and. y&amp;lat .le. f2)<br>
&gt;&gt;&gt;&gt;&gt; &gt; print (ind1+&quot;&quot;)<br>
&gt;&gt;&gt;&gt;&gt; &gt; print (&quot;&quot;)<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; ind2 = ind (x&amp;lat .ge. d1 .and. x&amp;lat .le. d2)<br>
&gt;&gt;&gt;&gt;&gt; &gt; print (ind2+&quot;&quot;)<br>
&gt;&gt;&gt;&gt;&gt; &gt; print (&quot;&quot;)<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; sub1 = y({f1:f2})    ; float subscripts double<br>
&gt;&gt;&gt;&gt;&gt; &gt; print (sub1&amp;lat+&quot; &quot;+typeof(sub1&amp;lat))<br>
&gt;&gt;&gt;&gt;&gt; &gt; print (&quot;&quot;)<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; sub2 = x({d1:d2})    ; double subscripts float<br>
&gt;&gt;&gt;&gt;&gt; &gt; print (sub2&amp;lat+&quot; &quot;+typeof(sub2&amp;lat))<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; Result:<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; NCAR Command Language Version 6.1.2<br>
&gt;&gt;&gt;&gt;&gt; &gt; (0)   2<br>
&gt;&gt;&gt;&gt;&gt; &gt; (1)   3<br>
&gt;&gt;&gt;&gt;&gt; &gt; (2)   4<br>
&gt;&gt;&gt;&gt;&gt; &gt; (0)<br>
&gt;&gt;&gt;&gt;&gt; &gt; (0)   2<br>
&gt;&gt;&gt;&gt;&gt; &gt; (1)   3<br>
&gt;&gt;&gt;&gt;&gt; &gt; (2)   4<br>
&gt;&gt;&gt;&gt;&gt; &gt; (0)<br>
&gt;&gt;&gt;&gt;&gt; &gt; (0)   20 double<br>
&gt;&gt;&gt;&gt;&gt; &gt; (1)   30 double<br>
&gt;&gt;&gt;&gt;&gt; &gt; (2)   40 double<br>
&gt;&gt;&gt;&gt;&gt; &gt; (0)<br>
&gt;&gt;&gt;&gt;&gt; &gt; fatal:Coordinate subscript type mismatch. Subscript (0) can not be<br>
&gt;&gt;&gt;&gt;&gt; &gt; coerced to type of coordinate variable<br>
&gt;&gt;&gt;&gt;&gt; &gt; fatal:[&quot;Execute.c&quot;:8128]:Execute: Error occurred at or near line 26 in<br>
&gt;&gt;&gt;&gt;&gt; &gt; file mixed-mode-coord-subscripts.ncl<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; I think it would be generally helpful if coordinate subscripting could<br>
&gt;&gt;&gt;&gt;&gt; &gt; be broadened to support all reasonable cases of mixed types.  At a<br>
&gt;&gt;&gt;&gt;&gt; &gt; minimum, please support the same combinations as for the relational<br>
&gt;&gt;&gt;&gt;&gt; &gt; operators.  I know that there are simple workarounds, but this<br>
&gt;&gt;&gt;&gt;&gt; &gt; improvement would benefit simpler user code and generalized file<br>
&gt;&gt;&gt;&gt;&gt; &gt; support.  Thanks for your consideration.<br>
&gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; --Dave A.<br>
&gt;&gt;&gt;&gt;&gt; &gt; NOAA/PSD/CIRES Climate Analysis Branch<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; ncl-talk mailing list<br>
&gt;&gt; List instructions, subscriber options, unsubscribe:<br>
&gt;&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;&gt;<br>
</blockquote></div><br></div>