<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">I think we have fixed this problem back in May, and it should be in the new release.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Here is a test I just did:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style><div class="gmail_default" style><font face="verdana, sans-serif">cisl-huelva:/Users/huangwei/test/ncltest/ncl_1963 950 > cat list.ncl </font></div><div class="gmail_default" style><font face="verdana, sans-serif">test_data = ispan(0,10,1)</font></div><div class="gmail_default" style><font face="verdana, sans-serif">test_list = NewList("fifo")</font></div><div class="gmail_default" style><font face="verdana, sans-serif">ListPush(test_list, (/test_data/))</font></div><div class="gmail_default" style><font face="verdana, sans-serif">print(test_list[0])</font></div><div class="gmail_default" style><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style><font face="verdana, sans-serif">cisl-huelva:/Users/huangwei/test/ncltest/ncl_1963 951 > ncl list.ncl</font></div><div class="gmail_default" style><font face="verdana, sans-serif"> Copyright (C) 1995-2014 - All Rights Reserved</font></div><div class="gmail_default" style><font face="verdana, sans-serif"> University Corporation for Atmospheric Research</font></div><div class="gmail_default" style><font face="verdana, sans-serif"> NCAR Command Language Version 6.2.1</font></div><div class="gmail_default" style><font face="verdana, sans-serif"> The use of this software is governed by a License Agreement.</font></div><div class="gmail_default" style><font face="verdana, sans-serif"> See <a href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(0) 0</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(1) 1</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(2) 2</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(3) 3</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(4) 4</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(5) 5</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(6) 6</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(7) 7</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(8) 8</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(9) 9</font></div><div class="gmail_default" style><font face="verdana, sans-serif">(10) 10</font></div><div class="gmail_default" style><font face="verdana, sans-serif">cisl-huelva:/Users/huangwei/test/ncltest/ncl_1963 952 > ncl -V</font></div><div class="gmail_default" style><font face="verdana, sans-serif">6.2.1</font></div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">Regards,</div><div style="font-family:verdana,sans-serif"><br>Wei</div></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><font face="tahoma, sans-serif">================================================</font><div><font face="tahoma, sans-serif">1850 Table Mesa Dr.</font></div><div><font face="tahoma, sans-serif">Boulder, CO 80307</font></div><div><font face="tahoma, sans-serif">Phone: 303-497-8924</font></div></div></div>
<br><div class="gmail_quote">On Fri, Sep 26, 2014 at 1:08 PM, Kyle Griffin <span dir="ltr"><<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'll further this request, if possible. Whenever I foray into using lists, often in conjunction with loops, the variables are often reassigned or otherwise change/lose their values. While Brian's initial code appears to the desired functionality, it does not seem to work with the newer releases and this has deterred me from utilizing any list features in my code. Although my memory is fuzzy with a few years of rust, I think the original functionality mimic's that of Java's lists, which would be nice to have.<div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Fri, Sep 26, 2014 at 1:54 PM, Carl Schreck <span dir="ltr"><<a href="mailto:cjschrec@ncsu.edu" target="_blank">cjschrec@ncsu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This bug appears to persist in 6.2.1. Has there been a fix that didn't make it into the release?<div><br></div><div>I'm only just learning how to use lists, but I am also looking for a way for the variable in the list to survive after the original variable has been deleted or re-assigned.</div><div><br></div><div> Thanks!</div><div> Carl</div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Fri, May 9, 2014 at 10:16 AM, Wei Huang <span dir="ltr"><<a href="mailto:huangwei@ucar.edu" target="_blank">huangwei@ucar.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">Brian,<div><br></div><div>I think this is a bug.</div><div>I have created JIRA-1963 to track this issue.</div><div>We will have a fix soon.</div><div>If you need a new binary/source-code for the fix,</div><div>please let us know, and we'll inform you when we get a fix.</div><div><br></div><div>Thanks,</div><div><br></div><div>Wei</div><div><br><div><div><div><div>On May 9, 2014, at 1:33 AM, Brian Vanderwende <<a href="mailto:simbjv@gmail.com" target="_blank">simbjv@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite"><div><div><div dir="ltr"><div><div><div>Hello,<br><br></div>I'm running into a potential bug with list variables in NCL 6.2.0 (and apparently 6.1.x). In 6.1.0-beta, I would often disassociate data from their parent variable when adding it to a list so that I could return lists of data of various types from functions without worrying about keeping around the original variable. Simple example (sans function):<br>
<br></div>test_data = ispan(0,10,1)<br></div>test_list = NewList("fifo")<br><div><div>ListPush(test_list, (/test_data/))</div><div>print(test_list[0])<br><br></div><div>That code ran fine in 6.1.0-beta, but since I've upgraded to 6.2.0, I've been getting the following error at the print statement:<br>
<br>fatal:["Execute.c":1939]:Internal error<br>fatal:["Execute.c":8565]:Execute: Error occurred at or near line 3<br></div><div><br></div><div>Perhaps this behavior is intended, as I'm not really using lists in the way they were conceived, but I found it to be quite a useful coding trick in 6.1.0-beta.<br>
<br></div><div>System information from uname:<br>Linux 2.6.32-358.11.1.2chaos.ch5.1.x86_64 #1 SMP Wed Jul 24 17:45:01 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux<br></div><div><br></div><div>Regards,<br></div><div>-Brian<br></div>
<div><br>-- <br><div dir="ltr"><font style="font-family:arial,helvetica,sans-serif" size="1">Brian Vanderwende - PhD Student</font><br><font style="font-family:arial,helvetica,sans-serif" size="1">
</font><font style="font-family:arial,helvetica,sans-serif" size="1"><font style="font-family:arial,helvetica,sans-serif" size="1">Atmospheric and Oceanic Science, </font>University of Colorado Boulder<br> <font style="font-family:arial,helvetica,sans-serif" size="1">Phone: <font style="font-family:arial,helvetica,sans-serif" size="1"><a href="tel:%28303%29492-2654" value="+13034922654" target="_blank">(303)492-2654</a></font></font></font><br>
<font style="font-family:arial,helvetica,sans-serif" size="1">--</font><tt><br>
</tt><tt>
</tt></div>
</div></div></div></div></div><span>
_______________________________________________<br>ncl-talk mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></span></blockquote></div><br></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br><div dir="ltr"><br><table border="0" cellpadding="2" cellspacing="2" style="max-width:100%;border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-size:14px;border:3px solid rgb(170,170,170);font-family:Times;line-height:12px;background-color:transparent"><tbody><tr><td align="center" height="71" width="71"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank"><img src="http://www.cicsnc.org/assets/images/cicsnc-logo.png" width="96" height="93"></a> <a href="http://www.researcherid.com/rid/B-8711-2011" target="_blank"><br></a></span></span><br><font size="4"><b style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif"> <a href="http://www.cyclonecenter.org/" style="color:rgb(38,58,143);text-decoration:none" target="_blank">Cyclone</a></b><a href="http://www.cyclonecenter.org/" style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;text-decoration:none" target="_blank">Center.org</a> </font></td><td valign="top"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><b>Carl J. Schreck III, PhD</b><br><b>Research Associate</b><br><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">Cooperative Institute for Climate and Satellites NC</a> <br><a href="http://ncsu.edu/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina State University</a><br><a href="http://ncdc.noaa.gov/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">NOAA's National Climatic Data Center</a><br>151 Patton Ave, Asheville, NC 28801<br>e: </span></span><a href="mailto:cjschrec@ncsu.edu" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">cjschrec@ncsu.edu</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif">o: <a href="tel:%2B1%20828%20257%203140" value="+18282573140" target="_blank">+1 828 257 3140</a><br></span></span><a href="http://scholar.google.com/citations?hl=en&user=th8ONEcAAAAJ&view_op=list_works&sortby=pubdate" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">Publications</a><br><a href="http://monitor.cicsnc.org/mjo/" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">monitor.cicsnc.org/mjo</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"></td></tr></tbody></table></div>
</div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>