Hi,
In IDL, i'm using filesearch function to read through files of certain
types.
Since an envi file has no specific extension, i'm not able to figure
out how to sort out the files.
Here's an example:
Say i have 2 images in ENVI format. It would look like IMAGE1,
IMAGE1.hdr,IMAGE2, IMAGE2.hdr.
As you can see, its only the header file which has the extension. When
i use the filesearch(image*), i am not
able to ignore the header files. These header files are not to be
processed.
Any ideas of how to choose only the images and not the header files,
as in this case ?
I guess i could convert the files to IMG so that they have an
extension, but there must be an easier way.
Thanks,
Raghu


|