This is a reference to an ENVISpectralSignature object. Typically, you can extract spectral signatures from an ENVISpectralLibrary object, or create your own from scratch using your own data values.
Example
e = ENVI(/HEADLESS)
SpectralSignature = ENVISpectralSignature(NAME='My Signature', $
SPECTRUM=[0.73, 0.8, 0.82, 0.95], $
WAVELENGTHS=[485.0, 560.0, 660.0, 830.0])
Print, SpectralSignature
Envi.ui.PlotSpectralSignature, SpectralSignature
Syntax
Result = ENVISpectralSignature([, ERROR=variable] [, Properties=value])
Return Value
This function returns a reference to an ENVISpectralLibrary object.
Arguments
None
Methods
None
Keywords
ERROR (optional)
Set this keyword to a named variable that will contain any error message issued during execution of this routine. If no error occurs, the ERROR variable will be set to a null string (''). If an error occurs and the routine is a function, then the function result will be undefined.
When this keyword is not set and an error occurs, ENVI returns to the caller and execution halts. In this case, the error message is contained within !ERROR_STATE and can be caught using IDL's CATCH routine. See IDL Help for more information on !ERROR_STATE and CATCH.
See Manage Errors for more information on error handling in ENVI programming.
Properties
NAME (Get, Set)
A string representing the name of the spectral signature.
REFLECTANCE_SCALE_FACTOR (Get, Set)
The value that, when divided into the spectrum array, would scale it from 0-1 reflectance. For example, if the value of 10,000 in spectrum represents a reflectance value of 1.0, enter a reflectance scale factor of 10,000. The default value is 1.0.
SPECTRUM (Get, Set)
A double array containing the spectrum values for the signature.
WAVELENGTHS (Get, Set)
A floating array containing the wavelengths of each spectrum value. This array must have the same number of elements as SPECTRUM.
WAVELENGTH_UNITS (Get, Set)
A string representing the units of the wavelengths. Valid values are micrometers and nanometers. If not set, ENVI will try to guess the proper units based on the values of the WAVELENGTHS array.
Y_RANGE (Get, Set)
A two-element array of values indicating the minimum and maximum Y-values to use when plotting the spectral signature.
Version History
API Version
4.3
See Also
ENVISpectralLibrary