Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: question: I...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 5448 of 6129
Post > Topic >>

Re: question: IDL for incor****ating text files in hyperspectral band

by jeffnettles4870@[EMAIL PROTECTED] Feb 19, 2008 at 05:44 PM

On Feb 19, 6:03 pm, jo <jenn...@[EMAIL PROTECTED]
> wrote:
> 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

I've tried to read in a text file in band math myself, and was equally
disappointed by the mess that results.  At any rate, i have a few
questions for you:

1.  Do you need to do this programmatically or could you use band/
spectral math if you could get it to work?  I ask b/c:

2.  It sounds like you have sort of a "spectrum of coefficients" - you
mention a single column in a text file for each band. That sounds to
me like you have one coefficient for each wavelength.  If that's true,
couldn't you read your coefficients into a spectral library?

If you can turn your coefficients into a spectral library i think you
can do this with a combo of spectral math and band math.

The spectral math equation would be s1*s2 where s1 is your
coefficients "spectrum" and s2 is DNnir.  Make sure you use the "map
variable to input file" option for s2.  This'll give you an output
image cube.

Next you want to do band math: b1 - b2 where b1 = DNvis and b2 is the
output of spectral math above. I think that'll get you what you want
if I understand your problem correctly.

Hope that helps,
Jeff
 




 3 Posts in Topic:
question: IDL for incorporating text files in hyperspectral band
jo <jennfro@[EMAIL PRO  2008-02-19 15:03:18 
Re: question: IDL for incorporating text files in hyperspectral
jeffnettles4870@[EMAIL PR  2008-02-19 17:44:32 
Re: question: IDL for incorporating text files in hyperspectral
Allard de Wit <allard.  2008-02-21 12:48:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 8:18:50 CDT 2008.