<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("fifo") ;create new list</div>
<div>Q = NewList("fifo") ;another new list</div>
<div>x = (/(/1,2,3/),(/4,5,6/)/) ;a test array</div>
<div><br>
</div>
<div>do i = 0, 2</div>
<div><br>
</div>
<div>ListAppend(P,x) ;keep adding array 'x'</div>
<div>ListAppend(Q,x(:,:i)) ;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>; 1 values;</div>
<div>;Number of Dimensions: 1</div>
<div>;Dimensions and sizes: [1]</div>
<div>;Coordinates: </div>
<div>;Type: list <fifo></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> 1 values</div>
<div>Number of Dimensions: 1</div>
<div>Dimensions and sizes: [1]</div>
<div>Coordinates: </div>
<div>Type: list <fifo></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>