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

Home » Public Forums » archive » Re: HELP: How to read 10-bit image file
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
Re: HELP: How to read 10-bit image file [message #23643] Wed, 07 February 2001 09:25
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Sang-Heon Shim <sangshim@princeton.edu> writes:

> Dear Expert,
> I would like to know how to read 10-bit image file using IDL. Thanks
> in advance.

I am afraid you haven't provided enough information about what you
want to do. There are lots of routines in the IDL library for reading
images in standard formats. If you are reading some kind of raw
format then you will need to find out how it was written and write
your own program.

If your 10-bit data is packed then you will need to use ISHFT.
Luckily you can use the fact that every five bytes has four data
values (hence you should convert a quad at a time). If the data are
unpacked (ie, aligned on 16 bit boundaries) it may be quite easy to
read.

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: filename check
Next Topic: IDL 5.4 and save files

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

Current Time: Wed Oct 08 19:41:49 PDT 2025

Total time taken to generate the page: 0.00532 seconds