comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: ENVI Question: Can you programmatically access the Available Spectra List?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: ENVI Question: Can you programmatically access the Available Spectra List? [message #53196 is a reply to message #53190] Fri, 30 March 2007 00:07 Go to previous messageGo to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
Jeff N. schrieb:

> Hi Mort,
>
> I already knew about your book :-) I was a TA for a remote sensing
> class in grad school last year and recommended to the prof. for that
> class that he use your book as his textbook. I still haven't gotten a
> copy for myself yet, but he has and he did say he liked it. So, in
> your book do you answer my question? I've looked everywhere for a way
> to get at this list but couldn't find it.
>
> Jeff
>

I confess (sheepishly) to never having worked with spectral libraries.
But they are just like ENVI images that you can access programmatically
with, e.g., ENVI_GET_DATA. For example the USGS Vegetation Spectral
Library is a single band image with 17 lines (the different spectra) and
420 samples (the data). So if you have a library in your available bands
list with file id FID and spatial subset DIMS, then

spectra = envi_get_data( fid=fid, dims=dims, pos=0 )

will put the whole thing into the IDL variable SPECTRA, and you can do
_anything_ you want with it.

Cheers

Mort
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Wasting Time with Books
Next Topic: Outlier removal using quartiles

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:15:07 PDT 2025

Total time taken to generate the page: 0.31943 seconds