topinverse_binary
Return value
A byte/integer/long array with (d1, d2...) dimensions
Parameters
binnumb
in
required
Examples
IDL> a=indgen(5)
IDL> b=binary(a)
IDL> help, b
B BYTE = Array[8, 2, 5]
IDL> print, b
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 1
0 0 0 0 0 0 0 0
0 0 0 0 0 1 0 0
IDL> help, inverse_binary(b)
INT = Array[5]
IDL> print, inverse_binary(b)
0 1 2 3 4
Version history
Version
$Id: inverse_binary.pro 325 2007-12-06 10:04:53Z pinsard $
History
Sebastien Masson (smasson@jamstec.go.jp)
July 2004
Known issues
Restrictions
The binary number can represent only byte/integer/long
Statistics
McCabe cyclic | 9 |
McCabe essential | 1 |
McCabe modular design | 1 |