| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example :: References :: Related |
| Back to top |
| Back to top |
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| FILI * | String | Input image | 1 - 192 | |
| DBIC | Integer | Input channels | 0 - | 1 - |
| SRCBGD | String | Source background value | 0 - 192 | Default: FILE |
| ASENSOR | String | Sensor name | 0 - 192 | |
| CFILE | String | Calibration file (*.cal) | 0 - 192 | |
| ZNANGLE | Float | Solar zenith angle (deg) | 0 - 1 | 0.0 - 90.0 |
| OUTUNITS | String | Output units | 0 - 28 | Default: 16bit_Reflectance |
| FILO * | String | Output computed reflectance image | 1 - 192 | |
| FTYPE | String | Output file type | 0 - 4 | Default: PIX |
| FOPTIONS | String | Output file options | 0 - 64 |
| Back to top |
FILI
Specifies the name of the input image from one of the supported sensors (see the ASENSOR parameter description).
The input image can be a raw image, an orthorectified image, or the output haze-free image from HAZEREM.
DBIC
Optionally specifies the list of input channels to process. The specified channels must exist. By default, all channels are processed.
If FILI does not contain metadata but has as many channels as sensor bands, this parameter can be empty; DN2TOA will map the first channel to the first band, the second to the second band, and so on. To verify the expected number of bands for each sensor, check the sensor files available in PCIHOME\atcor\cal\.
If FILI does not contain metadata and has more or fewer channels than bands for the selected sensor, this parameter must be specified. For instance, if the sensor is Landsat-7 and FILI has all the reflective bands from Landsat (that is, it has 6 channels containing bands 1,2,3,4,5, and 7), this parameter should be specified as DBIC=1,2,3,4,5,6.
If FILI contains the wavelength metadata information for each channel, DBIC can be empty.
Ranges of channels or segments can be specified with negative values. For example, {1,-4,10} is internally expanded to {1,2,3,4,10}. When you are not specifying a range in this way, only 48 numbers can be specified explicitly.
SRCBGD
Specifies which pixels in the source image are to be considered as background (NoData) pixels. In general, if a pixel is considered NoData, the application handles the pixel in a special manner.
For example, the default "FILE, 0" specifies that the function uses metadata. If the metadata is unavailable, pixels that have a value of 0 are considered NoData>.
ASENSOR
Optionally specifies the name of the sensor used to capture the input image.
See the Function Details section for a list of supported sensors.
If this parameter is not specified, the function checks for the PlatformName metadata tag at the file level.
If this parameter is not specified and the PlatformName metadata tag is not found, the function will error.
CFILE
Optionally specifies the path and name of the text file that contains, for each band, the calibration coefficients used to transform the values from the image to absolute at-sensor radiance values. This information is typically provided with the data set as an offset and a gain for each channel.
7 c0 c1 [mW/cm2 sr micron] 1 -0.0500 0.0778700 2 -0.2600 0.0798800 3 -0.3000 0.0621600 4 -0.5500 0.0639700 5 -0.1150 0.0126200 6 0.3200 0.00372047 7 -0.0420 0.00438900
The atcor\cal\ folder in the CATALYST Professional installation directory contains sample calibration files for every sensor supported by the atmospheric correction functions (MASKING, ATCOR, ATCOR_T). Each row in a calibration file lists the calibration coefficients for each sensor band; the bands are listed in increasing band order.
Ensure that the offset (c0) and gain (c1) values correspond to the scene. These values must be provided in the expected units for the specific sensor (shown at the top right of the calibration file).
If this parameter is not specified, DN2TOA reads the RadiometricTransOffset, RadiometricTransGain, and RadiometricTransUnits metadata tags for each channel in the input file. If the Calibration File (CFILE) parameter is not specified, or if the coefficients cannot be derived from the metadata, DN2TOA errors.
ZNANGLE
Specifies the solar zenith angle (0-90 degrees) at the time of image acquisition.
If this parameter is not specified and none of the combinations of metadata tags are found in full, this function errors.
OUTUNITS
Optionally specifies the output units for the atmospherically corrected image.
FILO
Specifies the name of the output file to receive the computed reflectance image.
The specified file must not already exist. The output file will contain as many channels as the input file (FILI) or the same number of channels specified in DBIC. The bit depth is determined by the OUTUNITS parameter.
FTYPE
Specifies the output file format type, represented by a three- or four-letter code. The format type must be a GDB-supported file type.
For a complete list of GDB-recognized file types and their codes, see GDB file formats in the Technical Reference section of the CATALYST Professional Online Help.
FOPTIONS
Specifies the file creation options to be applied when creating the output file. These are specific to the file format; in each case, the default of no options is allowed. This parameter can be used to specify compression schemes, file format subtypes, and other information.
Different options are available for different file types (see the FTYPE parameter). The options are described in GDB file formats in the Technical Reference section of the CATALYST Professional Online Help.
| Back to top |
DN2TOA generates a Top Of the Atmosphere (TOA) image that can be used for further processing, such as masking and atmospheric correction.
This function converts imagery from digital number to at-satellite reflectance (Top of the Atmosphere reflectance). This step is required before calculating radiometric transformations such as the Tasseled Cap transformation or Normalized Difference Vegetation Index, which require at-satellite reflectance input instead of digital numbers.
DN2TOA supports imagery stored in any GDB-supported format. For more information, refer to GDB file formats in the Technical Reference section of the CATALYST Professional Online Help.
The generated TOA image can be used to determine the seed and lowest threshold for cloud detection by MASKING.
Supported sensors
| Back to top |
Calculate Top of Atmopshere reflectance on a SPOT-5 data set.
EASI>fili = fili = "spot5.pix" EASI>dbic = EASI>srcbgd = "" EASI>asensor = "" EASI>cfile = "spot5.cal" EASI>znangle = 27.9 EASI>outunits = "Reflectance" EASI>filo = "toa.pix" EASI>ftype = "" EASI>foption = "" EASI>run DN2TOA
| Back to top |
Chander, G.; Markham, B.; Helder, D. Summary of Current Radiometric Calibration Coefficients for Landsat MSS, TM, ETM+ and EO-1 ALI Sensors. Remote Sensing of Environment, 113, 893-903.
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.