[ncl-talk] dim_gbits issue
Kevin Vermeesch
kevin.c.vermeesch at nasa.gov
Mon Mar 2 06:00:49 MST 2015
Hi,
I'm trying to use the built-in function dim_gbits
(https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_gbits.shtml)
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:
x = tobyte((/0,1,0,1,0,1,1,1,1,1,1,0,0,1,0,0,1,1,0,1,0,0/))
print(dim_gbits(x,5,2,3,4))
I get: (/0,0,2,0/)
when I was expecting to get: (/3,2,1,0/) as the example indicates.
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?
thanks,
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150302/1465bf88/attachment-0001.html
More information about the ncl-talk
mailing list