<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Brian,<br>
<br>
you don't have to use (/test_data/) in the ListPush call just
test_data:<br>
<br>
<font color="#3333ff"><tt>test_data = ispan(0,10,1)</tt><tt><br>
</tt><tt>test_list = NewList("fifo")</tt><tt><br>
</tt><tt>ListPush(test_list, test_data)</tt><tt><br>
</tt><tt>print(test_list)</tt></font><br>
<br>
test_list has only one dimension containing the list variable
test_data. Using ListPop <br>
with fifo list type will return the first list variable if you
pushed more list variables to <br>
test_list.<br>
<br>
See also:
<a class="moz-txt-link-freetext" href="http://ncl.ucar.edu/Document/Functions/Built-in/ListPop.shtml">http://ncl.ucar.edu/Document/Functions/Built-in/ListPop.shtml</a><br>
<br>
Hope this will help,<br>
Karin<br>
<br>
<div class="moz-cite-prefix">Am 09.05.14 09:33, schrieb Brian
Vanderwende:<br>
</div>
<blockquote
cite="mid:CAD5+YxFv1HXY-F456ByCsmoQGbVvD6xCoG7gfoC2f29Lct6vRw@mail.gmail.com"
type="cite">
<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>
<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">(303)492-2654</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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Dipl. Geophys. Karin Meier-Fleischer
Application Support, Visualization
Deutsches Klimarechenzentrum GmbH E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a>
Bundesstrasse 45a Internet: <a class="moz-txt-link-freetext" href="http://www.dkrz.de/">http://www.dkrz.de/</a>
20146 Hamburg Phone: +49 (0)40 460094 126
Germany Fax: +49 (0)40 460094 270
Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784</pre>
</body>
</html>