comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » NCAR GBYTES/SBYTES equivalent in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
NCAR GBYTES/SBYTES equivalent in IDL? [message #4471] Wed, 21 June 1995 00:00
Liam Gumley is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: CASE statments
Next Topic: [Q] idl/idl-shell mode has problem with IDL 4.0

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:22:02 PDT 2025

Total time taken to generate the page: 1.52204 seconds