This task spectrally calibrates a raster using the empirical line method.
Example
e = ENVI()
File = Filepath('qb_boulder_msi', Subdir=['data'], $
Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
specLibFile = FILEPATH('veg_1dry.sli', ROOT_DIR=e.ROOT_DIR, $
SUBDIR=['resource', 'speclib', 'veg_lib'])
specLib = ENVISpectralLibrary(specLibFile)
Task = ENVITask('GetSpectrumFromLibrary')
Task.INPUT_SPECTRAL_LIBRARY = specLib
Task.SPECTRUM_NAME = 'CDE054: Pinyon Pine (Sap)'
Task.Execute
dataSpec = Task.SPECTRAL_SIGNATURE
specLibFile = FILEPATH('soils_asdfr.sli', ROOT_DIR=e.ROOT_DIR, $
SUBDIR=['resource', 'speclib', 'usgs_v7'])
specLib = ENVISpectralLibrary(specLibFile)
Task = ENVITask('GetSpectrumFromLibrary')
Task.INPUT_SPECTRAL_LIBRARY = specLib
Task.SPECTRUM_NAME = 'BurnArea_TopSurface_WRF00-02_ASDFRb'
Task.Execute
refSpec = Task.SPECTRAL_SIGNATURE
Task = ENVITask('EmpiricalLineCalibration')
Task.INPUT_RASTER = Raster
Task.DATA_SPECTRA = dataSpec
Task.FIELD_SPECTRA = refSpec
Task.Execute
e.Data.Add, Task.OUTPUT_RASTER
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
Syntax
Result = ENVITask('EmpiricalLineCalibration')
Input properties (Set, Get): DATA_SPECTRA, FIELD_SPECTRA, INPUT_RASTER, OUTPUT_RASTER_URI
Output properties (Get only): OUTPUT_RASTER
Properties marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Properties marked as "Get" are those whose values you can retrieve but not set.
Methods
This task inherits the following methods from ENVITask:
AddParameter
Execute
Parameter
ParameterNames
RemoveParameter
Properties
This task inherits the following properties from ENVITask:
COMMUTE_ON_DOWNSAMPLE
COMMUTE_ON_SUBSET
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
TAGS
This task also contains the following properties:
DATA_SPECTRA (required)
Specify the data (non-corrected) spectra to pair with selected field spectra.
FIELD_SPECTRA (required)
Specify the field spectra to pair with selected data spectra.
INPUT_RASTER (required)
Specify the raster on which to perform empirical line calibration.
OUTPUT_RASTER
This is a reference to the output raster of filetype ENVI.
OUTPUT_RASTER_URI (optional)
Specify a string with the fully qualified filename and path of the associated OUTPUT_RASTER. If you do not specify this property, or set it to an exclamation symbol (!), a temporary file will be created.
Version History
ENVI 5.6.3 |
Introduced |
ENVI 6.1 |
Removed PATH_RADIANCE and SOLAR_IRRADIANCE properties. Added DATA_SPECTRA and FIELD_SPECTRA properties. |
API Version
4.3
See Also
ENVITask, ENVITask::ParameterLogResidualsCorrection Task