Changeset 142 for trunk/SRC/ToBeReviewed/LECTURE/inverse_binary.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/LECTURE/inverse_binary.pro
r134 r142 1 1 ;+ 2 ; NAME: inverse_binary3 2 ; 4 ; PURPOSE: inverse function of the binary.pro function => given a 3 ; @file_comments 4 ; Inverse function of the binary.pro function => given a 5 5 ; input array of 0/1, return its corresponding byte/integer/long 6 6 ; representation 7 7 ; 8 ; CATEGORY:8 ; @categories 9 9 ; 10 ; CALLING SEQUENCE: res = inverse_binary(binnum) 11 ; 12 ; INPUTS: 13 ; binnum must be a binary type array containing only 0 and 1. 14 ; According to binary.pro outputs, binnum array must have the 15 ; following dimensions values: (8, t, d1, d2...) 16 ; t gives the output type: t = 1 -> byte 10 ; @param BINNUMB {in}{required} 11 ; Must be a binary type array containing only 0 and 1. 12 ; According to binary.pro outputs, binnum array must have the 13 ; following dimensions values: (8, t, d1, d2...) 14 ; t gives the output type: t = 1 -> byte 17 15 ; t = 2 -> integer 18 16 ; t = 4 -> long 19 17 ; 20 ; 18 ; (d1, d2...) are the output dimensions 21 19 ; 22 ; KEYWORD PARAMETERS: no23 20 ; 24 ; OUTPUTS: a byte/integer/long array with (d1, d2...) dimensions 21 ; @returns 22 ; A byte/integer/long array with (d1, d2...) dimensions 25 23 ; 26 ; COMMON BLOCKS: no 24 ; @restrictions 25 ; The binary number can represent only byte/integer/long 27 26 ; 28 ; RESTRICTIONS:the binary number can represent only byte/integer/long 29 ; 30 ; EXAMPLE: 27 ; @examples 31 28 ; 32 29 ; IDL> a=indgen(5) … … 54 51 ; 0 1 2 3 4 55 52 ; 56 ; MODIFICATION HISTORY:53 ; @history 57 54 ; Sebastien Masson (smasson@jamstec.go.jp) 58 55 ; July 2004 56 ; 57 ; @version 58 ; $Id$ 59 ; 59 60 ;- 60 61 ;------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.