<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Hi all</div>
<div><br>
</div>
<div>My understanding from the documentation is that elements of an NCL list do not need to be the same size, but I am having trouble populating a list with arrays that are not the same size.</div>
<div><br>
</div>
<div>Consider the following test case:</div>
<div><br>
</div>
<div>P = NewList(&quot;fifo&quot;) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;create new list</div>
<div>Q = NewList(&quot;fifo&quot;) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;another new list</div>
<div>x = (/(/1,2,3/),(/4,5,6/)/) &nbsp;;a test array</div>
<div><br>
</div>
<div>do i = 0, 2</div>
<div><br>
</div>
<div>ListAppend(P,x) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;keep adding array 'x'</div>
<div>ListAppend(Q,x(:,:i)) &nbsp; &nbsp; &nbsp; ;add a different sized subset of 'x'</div>
<div><br>
</div>
<div>end do</div>
<div><br>
</div>
<div>print(P)</div>
<div><br>
</div>
<div>;returns the following (expected)</div>
<div>
<div>;Variable: P</div>
<div>;Type: list</div>
<div>;Total Size: 4 bytes</div>
<div>; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 values;</div>
<div>;Number of Dimensions: 1</div>
<div>;Dimensions and sizes: &nbsp; [1]</div>
<div>;Coordinates:&nbsp;</div>
<div>;Type: list &lt;fifo&gt;</div>
<div>;Total items: 3</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>print(Q)</div>
<div>;returns the following (an empty list)Variable: P</div>
<div>Type: list</div>
<div>Total Size: 4 bytes</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 values</div>
<div>Number of Dimensions: 1</div>
<div>Dimensions and sizes: &nbsp; [1]</div>
<div>Coordinates:&nbsp;</div>
<div>Type: list &lt;fifo&gt;</div>
<div>Total items: 0</div>
<div><br>
</div>
<div>What am I missing here?</div>
<div><br>
</div>
<div>Many thanks</div>
<div><br>
</div>
<div>Will</div>
<p style="font-size:10pt; line-height:10pt; font-family: Calibri,sans-serif;"><br>
<br>
University of Tasmania Electronic Communications Policy (December, 2014). <br>
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained
 in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
</p>
</body>
</html>