question: IDL for incorporating text files in hyperspectral band math [message #58790] |
Tue, 19 February 2008 15:03  |
jo
Messages: 1 Registered: February 2008
|
Junior Member |
|
|
Hello all,
I am a masters student working with hyperspectral imagery for benthic
mapping. I am also a fresh beginner at IDL and have found myself at a
wall for hyperspectral image processing in ENVI.
I am trying to perform a sun glint correction of a water surface in a
hyperspectral (AISA) image. From the DN value of each visible band in
each pixel, I must subtract the product of a coefficient (which is
already calculated), and the DN of a single NIR band.
So again, in a single pixel: DNvis - (coefficient x DNnir) for all vis
bands. Calculate for all pixels.
Obviously the vis and NIR DN values are contained within the
hyperspectral image, but the coefficients are stored in a text file as
a single column containing one coefficient for each of approx 400
bands. I know that the ENVI band math can be used for mathematics
between 2 images of the same spatial and spectral dimension, but the
issue is the intermediate step: getting ENVI to read the text file and
apply one coefficient at a time to the NIR image. I need to use IDL
for this, but have little experience with the script.
Could anybody offer some direction on this issue, or maybe somebody
has already written a simple script that they wouldn't mind sharing
for applying a text file to an image?
Thank-you in advance for your time!
Jenn
|
|
|