NCAR GBYTES/SBYTES equivalent in IDL? [message #4471] |
Wed, 21 June 1995 00:00 |
Liam Gumley
Messages: 473 Registered: November 1994
|
Senior Member |
|
|
Has anyone written routines similar to the NCAR GBYTES/SBYTES
routines in IDL? I need to extract single bands from an image
array where each band is a 1-bit mask. The array is pixel interleaved, i.e.
array( bands, columns, rows )
I realize this can be done using ISHFT and AND statements, but I thought maybe
someone had done it already in an array-efficient way. In fact, what would be
most useful is a routine where you supply
number of bits per band
number of bands
interleaving format (pixel, line, or band)
band to extract
number of columns
number of rows
and the corresponding single band array is returned. Anybody have one?
If not, then I'm gonna be writing one....
Cheers,
Liam.
|
|
|