Re: Bit interrogation [message #11821] |
Fri, 22 May 1998 00:00 |
Liam Gumley
Messages: 473 Registered: November 1994
|
Senior Member |
|
|
Peter Dovey wrote:
> Are there any routines for interrogating bit values within 2 byte
> words of a header?
Start the online help by typing ? at the IDL prompt.
Look under 'Alphabetical List of Routines' for ISHFT.
Then back at the main level, look under 'Language Features Quick
Reference' for 'Operators', then 'Boolean Operators'.
Using ISHFT and the Boolean operators, you can do the usual shift and
mask operations to check bits in a byte, integer, or long integer.
---
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
1225 W. Dayton St., Madison WI 53706, USA
Phone (608) 265-5358, Fax (608) 262-5974
http://cimss.ssec.wisc.edu/~gumley
|
|
|