<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-text-html" lang="x-unicode"> Hi,<br>
<br>
I recently noticed a bug in NCL 6.2.0. Deleting a single
coordinate variable works without an issue, but the newer method
for deleting multiple items at once, does not work for coordinate
variables. I've pasted a little NCL script below. If I'm not
crazy, then the last printVarSummary() should show that the
variable "z" stilll has two coordinate variables.<br>
<blockquote><tt>begin</tt><tt><br>
</tt><tt>;===========================================================================================</tt><tt><br>
</tt><tt>;===========================================================================================</tt><tt><br>
</tt><tt> line =
"---------------------------------------------------------------------------"</tt><tt><br>
</tt><tt> nx = 100</tt><tt><br>
</tt><tt> ny = 100</tt><tt><br>
</tt><tt><br>
</tt><tt> x = new(nx,double)</tt><tt><br>
</tt><tt> y = new(ny,double)</tt><tt><br>
</tt><tt> z = new((/ny,nx/),float)</tt><tt><br>
</tt><tt><br>
</tt><tt> x = fspan(0,nx-1,nx)</tt><tt><br>
</tt><tt> y = fspan(0,ny-1,ny)</tt><tt><br>
</tt><tt> z = random_uniform(0,1,(/ny,nx/))</tt><tt><br>
</tt><tt><br>
</tt><tt> z!0 = "y"</tt><tt><br>
</tt><tt> z!1 = "x"</tt><tt><br>
</tt><tt> z&y = y</tt><tt><br>
</tt><tt> z&x = x</tt><tt><br>
</tt><tt>;===========================================================================================</tt><tt><br>
</tt><tt>;===========================================================================================</tt><tt><br>
</tt><tt> print(""+line)</tt><tt><br>
</tt><tt> print("Here's what z looks like:")</tt><tt><br>
</tt><tt> print(""+line)</tt><tt><br>
</tt><tt> printVarSummary(z)</tt><tt><br>
</tt><tt><br>
</tt><tt> print(""+line)</tt><tt><br>
</tt><tt> delete(z&y)</tt><tt><br>
</tt><tt> print("The y-coord has been deleted")</tt><tt><br>
</tt><tt> print(""+line)</tt><tt><br>
</tt><tt> printVarSummary(z)</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> print(""+line)</tt><tt><br>
</tt><tt> z&y = y</tt><tt><br>
</tt><tt> print("Now we have replaced the y-coord")</tt><tt><br>
</tt><tt> print(""+line)</tt><tt><br>
</tt><tt> printVarSummary(z)</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> print(""+line)</tt><tt><br>
</tt><tt> print("Now both x and y coords have been deleted
(but they are still there!)")</tt><tt><br>
</tt><tt> delete([/z&y,z&x/])</tt><tt><br>
</tt><tt> print(""+line)</tt><tt><br>
</tt><tt> printVarSummary(z)</tt><tt><br>
</tt><tt>;===========================================================================================</tt><tt><br>
</tt><tt>;===========================================================================================</tt><tt><br>
</tt><tt>end</tt><br>
</blockquote>
<br>
Thanks,<br>
Walter Hannah<br>
</div>
</body>
</html>