Help for TCAL2
PURPOSE:
TCAL2 is a program which calibrates data to ground radiance, ground
temperature, or emittance for thermal images (defined by what???)
by calling lowtran. The input is data which have already been calibrated
to instrument radiance (expected in in watts/...) (for TIMS data this is
done with the program TIMSCAL). The output is a band interleaved by line
(BIL) data set of all the bands in two byte integer. TCAL2 is different from
TIMSCAL2 in that it is not only for TIMS images (i.e. it can run on different
sized images and has an option for filter function input), it can take as
a digital elevation model (DEM) file as an input to account for varying
elevation across a scene and it can read in atmospheric data to pass to the
Lowtran7.
EXECUTION:
The following is the execution statement format for TCAL2:
TCAL2 INP = pix OUT = calpix PARAMS
where INP, OUT, and PARAMS are parameters discussed in their res-
pective parameter sections.
OPERATION:
TCAL2 takes as input any thermal dataset that is calibrated instrument
radiance in watts (for TIMS this is the output dataset of TIMSCAL in IRAD
mode, WATTS units). An input DEM can also be specified; if one is, it will
be used to obtain the correct target elevations for input into Lowtran. Tcal2
uses LOWTRAN7 to compute the atmospheric path radiance, transmittance, and
ground reflected atmospheric radiance. These values are convolved with the
instrument functions and the instrument perceived radiances to obtain either
ground radiance, ground temperature or emittance. The formula used to compute
ground radiance is:
IRAD = [GRAD + (1.0-e)*L ]*Trans + L
sky path
To compute emittance, one channel is assumed to have a constant (user
specified) emittance. The temperature of each pixel is computed, based upon
this assupmtion. For this temperature, the blackbody radiance in each bandpass
is computed. The emittance is the ratio of the computed ground radiance to the
blackbody radiance of that band.
The units output for radiance images are in milliwatts/m**2/um/sr. The units
output for temperature images are in hundredths of degrees Celsius. Units
output for emissivity are dimensionless, but scaled by 10,000. Output is in
halfword (two byte signed integer) format.
WRITTEN BY: J. H. REIMER 1982
COGNIZANT PROGRAMMER: Ron Alley
REVISION: 3, June 15, 1992
history:
mj-n translate to c and genaralize to work on non-tims images
PARAMETERS:
INP
instrument radiance
image (in watts)
OUT
Output data set of
all bands of
calibrated data.
OUTP
name for Lowtran
OUTPUT file
TABLE
name for Lowtran
TABLE file
FILFILE
file containing filter
functions for each band
SIZE
standard VICAR2 output size
SL
Starting line
SS
Starting sample
NL
Number of lines
NS
Number of samples
CALMODE
This keyword selects the type
of decalibatrion performed
Valid: GRAD, GTEM, BTEM, EMIS
AMODEL
The model for which the
atmospheric corrections will
be performed via LOWTRAN.
MODELS
The models for Lowtran
parameters M1-M6 and MDEF
respectively
FACTORS
Multiplicative factors for
atmospheric H2O, CO2, O3,
O2, CH4 and SO2 concentrations
ATMFILE
Input file containing
a RS atmosphere
HEIGHT
Instrument altitude
(km above MSL) [H1]
DATUM
Target elevation
(km above MSL) [H2]
Not used with a DEM
GNDALT
Elevation of ground under
the target (km above MSL)
Not used with a DEM
TBOUND
Temperature (K) of the
ground
DEMFILE
optional input Digital
Elevation Model file (M)
ELEVSTEP
Elevation step between
successive runs of Lowtran
when using a DEM (km)
TILT
pointing of the instrument's
center of field of view off
nadir (+ direction is towards
the zero sample)
DEFL
half the field of view of
the instrument, the default:
38.28 is for TIMS
E
The emissivity assumed for
each band. (Only the REFCHAN
band is used in the EMIS mode)
REFCHAN
(For EMIS only)
The channel to be used as the
reference channel.
DATE
Date of data acquisition for
choosing a TIMS filter function
Overrides date in the VICAR
label (yymmdd)
IEMSCT
Lowtran parameter of the same
name, indicates whether to run
in thermal radiance mode or in
radiance + solar scattered mode
SUNANGLE
1) Azimuth angle between obs.
LOS and observer to Sun path
2) Solar Zenith Angle
OBS_LOC
1) Observer latitude
2) Observer longitude
SUN_LOC
1) Sun latitude
2) Sun longitude
TIME
Greenwich time
PSIPO
Path Azimuth Angle (degrees
East of due North)
HENGREEN
Asymmetry parameter for use
with Henyey-Greenstein
Phase function [G]
LIST
controls what information is
printed to the terminal
ZEROES
are the zeroes in the
DEM data?
See Examples:
Cognizant Programmer: