<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="+1"><font face="Courier New">Hi,<br>
I'm trying to use the built-in function dim_gbits (<a
href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_gbits.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_gbits.shtml</a>)
and am not getting the expected result while trying the example
in the link above. Looking at the worked example in the
Description Section, I used the following commands:<br>
<br>
x = tobyte((/0,1,0,1,0,1,1,1,1,1,1,0,0,1,0,0,1,1,0,1,0,0/))<br>
print(dim_gbits(x,5,2,3,4))<br>
<br>
I get: (/0,0,2,0/)<br>
when I was expecting to get: (/3,2,1,0/) as the example
indicates.<br>
<br>
I am using version 6.1.0 (Cygwin) and 6.2.1 (32-bit CentOS). Is
this a bug or am I not using/understanding the function
correctly?<br>
thanks,<br>
Kevin</font></font>
</body>
</html>