what is the most convenient way to read an image generated by ENVI in IDL [message #32591] |
Mon, 21 October 2002 20:12 |
Julia
Messages: 11 Registered: July 2002
|
Junior Member |
|
|
Hi, there,
After some operations in ENVI, I output the resulting image using the format
'.img'. It's an multispectral image.
The '.hdr' head file is like this:
ENVI
description = {
image [Fri Oct 18 11:01:10 2002]}
samples = 116
lines = 261
bands = 4
header offset = 0
file type = ENVI Standard
data type = 4
interleave = bsq
sensor type = Unknown
byte order = 0
My question is: how can I read this file using IDL functions?
Now I am doing this using the following:
imgdata = READ_BINARY('test.img', DATA_TYPE = 4, DATA_DIMS = [116, 261,
4]).
But I need to specify the data type and dimensions of the image. How can I
read it more generally that I need to specify nothing? Is there other
functions in IDL?
Any suggestion will be appreciated.
Regards,
Julia
|
|
|