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 properties (Set, Get): INPUT_RASTER, CALIBRATION_TYPE, SCALE_FACTOR, OUTPUT_DATA_TYPE, 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:
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
This is a reference to the output raster of filetype ENVI.
OUTPUT_RASTER_URI (required)
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.
SCALE_FACTOR (optional)
This property 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 property, the default value scale factor is 1.0 which will yield a radiance image in units of W/(m2 * sr * µm).
Version History
ENVI 5.1 |
Introduced |
ENVI 5.2 |
The CALIBRATION_TYPE and OUTPUT_DATA_TYPE properties use string values instead of integers.
|
API Version
4.3
See Also
ENVITask, ENVICalibrateRaster