EmpiricalLineCalibration Task

This task spectrally calibrates a raster using the empirical line method.

Example

; Start the application

e = ENVI()

 

; Open an input file

File = Filepath('qb_boulder_msi', Subdir=['data'], $

  Root_Dir=e.Root_Dir)

Raster = e.OpenRaster(File)

 

; Select data and field spectra from spectral libraries

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

 

; Get the task from the catalog of ENVITasks

Task = ENVITask('EmpiricalLineCalibration')

 

; Define inputs

Task.INPUT_RASTER = Raster

Task.DATA_SPECTRA = dataSpec

Task.FIELD_SPECTRA = refSpec

 

; Run the task

Task.Execute

 

; Add the output to the Data Manager

e.Data.Add, Task.OUTPUT_RASTER

 

; Display the result

View = e.GetView()

Layer = View.CreateLayer(Task.OUTPUT_RASTER)

Syntax

Result = ENVITask('EmpiricalLineCalibration')

Input parameters (Set, Get): DATA_SPECTRA, FIELD_SPECTRA, INPUT_RASTER, OUTPUT_RASTER_URI

Output parameters (Get only): OUTPUT_RASTER

Parameters marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Parameters marked as "Get" are those whose values you can retrieve but not set.

Input Parameters

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_URI (optional)

Specify a string with the fully qualified filename and path of the associated OUTPUT_RASTER.

Output Parameters

OUTPUT_RASTER

This is a reference to the output raster of filetype ENVI.

Methods

Execute

Parameter

ParameterNames

Properties

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

Version History

ENVI 5.6.3

Introduced

ENVI 6.1

Removed PATH_RADIANCE and SOLAR_IRRADIANCE parameters. Added DATA_SPECTRA and FIELD_SPECTRA parameters.

See Also

ENVITask, ENVITask::ParameterLogResidualsCorrection Task