X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



3136 Rate this article:
No rating

Potentially unexpected results when using spectral resampling with a user-defined filter function

You may experience unexpected spectral resampling results when using a user-defined filter function. This Help Article discusses one possible solution to this problem.

When trying to spectrally resample an image with a user-defined filter function, the resulting spectra may have a much lower spectral response than expected. This is caused by the way the filter function is defined and how ENVI interprets the 'end of the function response'.

ENVI expects that a spectral response function has a definitive beginning and end where the response is 0.0 reflectance or radiance. If you try to perform spectral resampling with a filter function that does not reach 0.0 an the beginning and end of the response, ENVI will try to interpolate the function and it may interpolate to a negative response. This will cause the resulting spectra to have a much lower response than expected.

To fix this problem, it is necessary to add additional wavelengths of 0.0 response on the beginning and end of the response function. This is most easily accomplished by exporting the spectral library to an ASCII file from the Plot window's File menu. The output ASCII file will look similar to the following:

ENVI ASCII Plot File [Fri Jan 20 08:56:03 2006]
Column 1: Wavelength
Column 2: Spectral Response.txt
450.000000 0.000010
455.000000 0.000011
460.000000 0.000013
...

In a text editor, add two additional spectral wavelengths and response values of 0.0 at the beginning and ending of the ASCII response file. For example, at the beginning, it may look like the following:

ENVI ASCII Plot File [Fri Jan 20 08:59:08 2006]
Column 1: Wavelength
Column 2: Spectral Response.txt
0.440000 0.000000
0.445000 0.000000
0.450000 0.000010
0.455000 0.000011
0.460000 0.000013
...

Save the ASCII file and import this using the Spectral Library Builder from ENVI's Spectral Menu (see the ENVI Application help for details on how to build a spectral library). Now the spectral filter function should have a definitive beginning and ending of 0.0 response. If used in spectral resampling, the results should be as expected.


Review on 12/31/2013 MM

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »