[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HELP: How to read 10-bit image file




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
--------------------------------------------------------------------------