This task calibrates an image to radiance, top-of-atmosphere reflectance, or brightness temperatures. See Radiometric Calibration for a list of sensors and their calibration options. To process a spatial or spectral subset instead of the entire image, use ENVISubsetRaster before calling the ENVITask.
Note: Use the ApplyGainOffset task to apply custom gains and offsets to a raster that will be input to a custom calibration routine. Do not pass the output of the ApplyGainOffset task to the RadiometricCalibration task.
The virtual raster associated with this task is ENVICalibrateRaster.
Example
This example shows how to add custom gain/offset metadata to a QuickBird image, then calibrate it to radiance in units of W/(m2 * sr * µm).
e = ENVI()
File = Filepath('qb_boulder_msi', Subdir=['data'], $
Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
Gains = [0.21044118, 0.10555556, 0.13633803, 0.13754386]
Offsets = [0.0, 0.0, 0.0, 0.0]
Metadata = Raster.Metadata
Metadata.AddItem,'data gain values', Gains
Metadata.AddItem,'data offset values', Offsets
Subset = ENVISubsetRaster(Raster, Bands=[1])
Task = ENVITask('RadiometricCalibration')
Task.INPUT_RASTER = Subset
Task.OUTPUT_DATA_TYPE = 'Double'
Task.Execute
DataColl = e.Data
DataColl.Add, Task.OUTPUT_RASTER
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
Syntax
Result = ENVITask('RadiometricCalibration')
Input parameters (Set, Get): INPUT_RASTER, CALIBRATION_TYPE, SCALE_FACTOR, OUTPUT_DATA_TYPE, 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
CALIBRATION_TYPE (optional)
Specify a string indicating the calibration type:
- Radiance (default)
- Top-of-Atmosphere Reflectance
- Brightness Temperature
See the Radiometric Calibration tool instructions for detailed definitions and units for each option.
INPUT_RASTER (required)
Specify a raster on which to perform radiometric calibration.
OUTPUT_DATA_TYPE (optional)
Specify a string indicating the output data type:
- Int: 16-bit integer
- Float: Floating-point (default)
- Double: Double-precision floating point
- UInt: 16-bit unsigned integer
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 parameter, or set it to an exclamation symbol (!), ENVI creates a temporary file.
- If you set it to the hash symbol (#), ENVI creates a file in the temporary directory, but this file will not be deleted when ENVI closes.
SCALE_FACTOR (optional)
This parameter pertains to radiance only. To output radiance in different units than W/(m2 * sr * µm), enter a floating-point scale factor to get the calibrated image in your desired units. If you do not specify this parameter, the default value scale factor is 1.0 which will yield a radiance image in units of W/(m2 * sr * µm).
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.1 |
Introduced |
ENVI 5.2 |
The CALIBRATION_TYPE and OUTPUT_DATA_TYPE parameters use string values instead of integers.
|
See Also
ENVITask, ENVICalibrateRaster, Masking Support in ENVITasks