Appendix F: ATREM Pseudo-code
GLOBAL VARIABLES AND THEIR DESCRIPTIONS
INTEGER
ERRNO Error number for error control (1=at least one invalid input)
FILEMODE Switch to determine whether to output to file(1) or memory(0)
FPIN File pointer for input file (used in conjunction with C)
FPOCUB File pointer for output cube file (used in conjunction with C)
FPOH2O File pointer for water vapour file (used in conjunction with C)
HDREC Header size of AVIRIS Data File
IAER Aerosol Model Number (0-3)
ICH4 switch for including ch4 in transmission calculations (0,1)
ICO switch for including co in transmission calculations (0,1)
ICO2 switch for including co2 in transmission calculations (0,1)
IDAY # of days that have passed during the year
IDY day
IED1 ending wavelength index for 3-channel ratioing, window 1
IED1P14 ending wavelength index for 1.14 um water vapour band
IED2 ending wavelength index for 3-channel ratioing, window 2
IED3 ending wavelength index for 3-channel ratioing, window 3
IED4 ending wavelength index for 3-channel ratioing, window 4
IEDCAL
IEDP94 ending wavelength index for 0.94 um water vapour band
IEND
IEND2
IH hour
IH2OLQ Flag for including liquid water vapour in calculations
IH2OVP switch for including h2o in transmission calculations (0,1)
IM minute
IMN month
IN2O switch for including n2o in transmission calculations (0,1)
IO2 switch for including o2 in transmission calculations (0,1)
IO3 switch for including o3 in transmission calculations (0,1)
IS seconds
IST1 starting wavelength index for 3-channel ratioing, window 1
IST1P14 starting wavelength index for 1.14 um water vapour band
IST2 starting wavelength index for 3-channel ratioing, window 2
IST3 starting wavelength index for 3-channel ratioing, window 3
IST4 starting wavelength index for 3-channel ratioing, window 4
ISTART
ISTRT2
ISTCAL
ISTP94 starting wavelength index for 0.94 um water vapour band
IYR year
JA output parameter from a table searching routine
MODEL Atmospheric Model Number (1-7)
NOBS # of observations in wavelength file
NATOT # of channels for AVIRIS grating Spectrometer A
NB # OF boundaries in atmospheric model
NB1 # of points to average for 1st window (0.94um channel)
NB2 # of points to average for 2nd window (0.94um channel)
NBP94 # of points to average for absorption feature
NB3 # of points to average for 3rd window (1.14um channel)
NB4 # of points to average for 4th window (1.14um channel)
NB1P14 # of points to average for absorption feature
NBANDS # of bands in AVIRIS Data File
NBTOT # of channels for AVIRIS grating Spectrometer B
NCTOT # of channels for AVIRIS grating Spectrometer C
NCV
NCV2
NCVHAF
NCVHF2
NCVTOT
NCVTT2
NDTOT # of channels for AVIRIS grating Spectrometer D
NGASTT total number of gases
NH2O number of water vapour values
NL NL=NB-1
NLINES # of lines in AVIRIS Data File
NO3PT # of ozone absolute coefficients points
NPSHIF # of points between 0.4 and 0.6 um
NSAMPS # of samples in AVIRIS Data File
REFIMG Memory file pointer for reflectance image
SORDER Storage order of AVIRIS DATA (0=BSQ, 1=BIP, 2=BIL)
WVIMG Memory file pointer for water vapour image
REAL
BUFA intermediate parameter for calculating water vapour spectra
BUFB intermediate parameters for calculating water vapour spectra
CLMVAP Column water vapour amount in cm
DLT Spectral Resolution (nm)
DLT2 Resolution of output spectra (0-100 nm)
DLTNEW Spectral Resolution (um) [DLT/1000]
DP
DWAVLN interval (or point spacing) of band model parameters
FINST2
FINSTR Gaussian instrumental function for each AVIRIS channel
FWHM(512) FWHM array for storing FWHM values for each channel
GCH4 Geometric Factor for Methane
GCO Geometric Factor for Carbon Monoxide
GCO2 Geometric Factor for Carbon Dioxide
GGEOM Geometric Factors for Gases
GGH20(60) Geometric Factors for water vapour
GN2O Geometric Factors for Nitrous Oxide
GO2 Geometric Factor of Oxygen
GO3 Geometric Factor of Ozone
H(15) Atmospheric Model Altitude (km) for each boundary
HSURF Mean surface elevation of image [0 - H(max)]
OBSPHI Observational Azimuth Angle
OBSZNI Observational Zenith Angle
P(15) Atmospheric Model Pressure (atm) for each boundary
PM
Q # of molecules about the surface at 1 atm (molecules/cm^2)
R094 channel ratio for .94 um region *
R114 channel ratio for 1.14 um region *
RLQAMT liquid water amount (cm)
SCALEF scaling factor for output reflectance values [1-32000]
SOLAZ Solar Azimuth Angle
SOLZNI Solar Zenith Angle
T(15) Atmospheric Model Temperature (Kelvin) for each boundary
TAER55 Aerosol Optical Depth at 0.55um for 5S model
TM(15) Median Temperature between Atmospheric Model Boundaries
TOTLO3 Total OZONE in sun-surface ray path
TPVMR(6,41) 2D array of values for six standard atmospheric models
TRAN Transmittances of different gases
TRNCAL atmospheric transmittance spectra
TRNSTD Transmittances used in internal calculations
V Visibility
VAPTT geometrically adjusted water vapour total
VEND ending wavelengths in internal calculations.
VMIN minimum wavelength to calculate atmospheric transmissions
VMR(15) Atmospheric Model Volume Mixing Ratio (ppm of each layer)
VMRM(15)
VRTO3 Column ozone amount (0.1 - 0.6)
VSTART starting wavelengths in internal calculations
WAVAVR(512) wavelengths of the AVIRIS channel centers (um)
WAVSTD(1050) Wavelengths used in internal calculations
WNDOW1 Midpoint of first window (0.94um channel) [0.6-2.5]
WNDOW2 Midpoint of second window (0.94um channel) [0.6-2.5]
WP94C Midpoint of water vapour absorption feature [0.6-2.5]
WNDOW3 Midpoint of third window (1.14um channel) [0.6-2.5]
WNDOW4 Midpoint of fourth window (1.14um channel) [0.6-2.5]
W1P14C Midpoint of 1.14um absorption feature [0.6-2.5]
WT1 Relative weight for window1
WT2 Relative weight for window2
WT3 Relative weight for window3
WT4 Relative weight for window4
XLATD Latitude, degrees
XLATM Latitude, minutes
XLATS Latitude, seconds
XLONGD Longitude, degrees
XLONGM Longitude, minutes
XLONGS Longitude, seconds
YY
CHARACTER*1
LATHEM Latitude, hemisphere
LNGHEM Longitude, hemisphere
CHARACTER*80
FINAV AVIRIS Data File Name
FOCUB Output reflectance cube file name
FOH2O output water vapour filename (512byte header,1band,BSQ)
GLOBAL PARAMETER LISTS
IN FORTRAN
AH2O_INIT1: AH2O
APH2O_INIT1: APH2O
BH2O_INIT1: BH2O
BPH2O_INIT1: BPH2O
CHNLRATIO1: R094,R114
ERRORS: ERRNO
GEOMETRY1: SOLZNI,SOLAZ,OBSZNI,OBSPHI,IDAY
GEOMETRY2: GCO2,GO3,GN2O,GCO,GCH4,GO2,GGH2O,TOTLO3,GGEOM
GETINPUT1: IH2OVP,ICO2,IO3,IN2O,ICO,ICH4,IO2
GETINPUT3: H,T,P,VMR,NB,NL,MODEL,IAER,V,TAER55,VRTO3
GETINPUT4: WAVAVR,FWHM
GETINPUT5: NOBS,HSURF,DLT,DLT2
GETINPUT6: WNDOW1,WNDOW2,WP94C,WNDOW3,WNDOW4,W1P14C
GETINPUT7: NB1,NB2,NBP94,NB3,NB4,NB1P14
GETINPUT8: IMN,IDY,IYR,IH,IM,IS
GETINPUT9: XLATD,XLATM,XLATS,LATHEM
GETINPUT10: XLONGD,XLONGM,XLONGS,LNGHEM
GETINPUT11: HDREC,NSAMPS,NLINES,NBANDS,SORDER
GETINPUT12: SCALEF
INIT_SPECCAL1: WAVSTD,TRNSTD
INIT_SPECCAL2: NPSHIF,FINSTR,DWAVLN
INIT_SPECCAL3: IH2OLQ,RLQAMT,NGASTT,NH2O,VSTART,VEND
INIT_SPECCAL4: NO3PT,NCV,NCVHAF,NCVTOT,VMIN,ISTART,IEND
INIT_SPECCAL5: ISTCAL,IEDCAL,DP,PM,TM,VMRM
INIT_SPECCAL6: IST1,IED1,IST2,IED2,ISTP94,IEDP94
INIT_SPECCAL7: IST3,IED3,IST4,IED4,IST1P14,IED1P14
INIT_SPECCAL8: WT1,WT2,WT3,WT4,JA
INIT_SPECCAL9: TRAN,BUFA,BUFB
INIT_SPECCAL10: NCV2,NCVHF2,NCVTT2,ISTRT2,IEND2,FINST2
INIT_SPECCAL11: NATOT,NBTOT,NCTOT,NDTOT
MODEL_ADJ1: CLMVAP,Q
O3CF_INIT1: O3CF
OUTPUT_MODE: FILEMODE
PROCCUBE1: YY
SODLT_INIT1: SODLT
SOGAM_INIT1: SOGAM
SOLAR_IRR1: YIRR
TPVMR_INIT1: TPVMR
TRAN_TABLE1: GH2O,VAPTOT,R0P94,R1P14,TRNTBL
TRANCAL1: TRNCAL,VAPTT
WAVLN_INIT1: WAVLN
USE WITH C PROGRAMS FOR CUBE I/O
OUTCUBE: FPOCUB,FOCUB,REFIMG
INCUBE: FPIN,FINAV
OUTH2OVAP: FPOH2O,FOH2O,WVIMG
MAIN PROGRAM
CALL GET_INPUT: obtain information needed to process the AVIRIS data
IF NO ERRORS OCCUR in obtaining information
CALL MODEL_ADJ: resets the bottom boundary of the input model if the
surface elevation is greater than 0, and calculates
the column water vapour amount in the selected model.
CALL GEOMETRY: calculates the solar and the observational geometric
factors.
CALL SSSSS: predicts the satellite signal from 0.25-4.0 um assuming
cloudy atmospheric effects (gaseous absorption by water vapour,
carbon dioxide, oxygen and ozone; scattering by molecules and
aerosols are taken into account). Inhomogeneous ground
condition may be considered.
CALL INIT_SPECCAL: Initialises global data for spectrum calculations
CALL SOLAR_IRR: Obtain solar irradiances above the atmosphere corresponding
to the measurement time and geographic location.
CALL TRAN_TABLE: Generates a table consisting of 60 atmospheric
transmittance spectra at the AVIRIS solar and
observational geometry and with 60 column water vapour
values. This table also include the total amounts of
column water vapour used in the calculations, and the
3-channel ratios calculated from the window and absorption
channels in and around the 0.94 and 1.14um water vapour
bands
CALL PROCESS_CUBE: Processes an input cube one spectral slice at a time to
derive surface reflectance for each spectrum and
calculate the column water vapour amount for each pixel.
The derived surface reflectance values are written to
an output image file with the same dimensions as the
input image, and the column water vapour amounts are
written to a separate file as a single channel image.
ENDIF
END PROGRAM
GET_INPUT
LOCAL VARIABLES
INTEGER
ANS Verifier to read next line of input
DIMS(4) Values read from AVIRIS Data file when file first opened
Header size, samples, lines, bands
ST_ORDER Storage order read from AVIRIS Data file when file first opened
CHARACTER*80
FINPWV Wavelength file name
FTPVMR Atmospheric Model File name
FOUT1 Filename for output table, atmos. trans. spectra
LOGICAL
GOOD_DATA Logical telling whether data was correctly read in
REAL
X Channel Number
********************************************************************************
INITIALIZE GOOD_DATA
READ in MONTH, DAY, YEAR, HOUR, MINUTE, SECOND
VERIFY
READ LATITUDE
VERIFY
READ LONGITUDE
VERIFY
READ Spectral Resolution
IF Spectral Resolution > 0
IF NOT Valid Value (8-100)
Report Bad Data
ELSE
Initialise FWHM Array
ENDIF
ENDIF
READ Wavelength File Name
OPEN File
VERIFY OPEN
ELSE
READ DATA from file
CLOSE File
ENDIF
Determine of channel ratio should be read
VERIFY READ
IF READ
READ 0.94um Channel Ratio Parameters
VERIFY
READ 1.14um Channel Ratio Parameters
VERIFY
ELSE
INITIALIZE DEFAULT atmospheric window and wv absorption regions
ENDIF
READ atmospheric model to use
VERIFY READ
IF MODEL = 7 (user-defined) THEN
READ Atmospheric Model File name
OPEN Atmospheric Model File
READ Atmospheric Model File
ELSE
Initialise Model Parameters (NB,H,P,T,VMR) from predefined atmos. model array
ENDIF
Determine which gases to include in calculations
VERIFY READ
READ Total Column Ozone Amount
VERIFY READ
READ Aerosol Model and Visibility
VERIFY READ
IF no aerosol THEN
V = -1 (set for 5s modeling program)
no optical depth
ELSE
VERIFY Visibility
ENDIF
IF no visibility THEN
READ aerosol optical depth
VERIFY READ
ENDIF
READ mean surface elevation
VERIFY READ
READ file name of AVIRIS Data
CALL OPENINFILE(IRET,DIMS,ST_ORDER)
VERIFY OPEN
Determine if cube dimensions should be read in
VERIFY READ
IF read in cube dimensions THEN
READ Header size, samples, lines, bands, and storage order
VERIFY READ
ELSE
USE values read from the file itself
ENDIF
READ Output reflectance cube file name
CALL OPENOUTFILE(IRET,512,NSAMPS,NLINES,NBANDS,SORDER)
VERIFY OPEN
READ Resolution of output spectra
VERIFY READ
READ scaling factor for output reflectance values
VERIFY READ
READ output water vapour file name
CALL OPENVAPFILE(IRET,512,NSAMPS,NLINES,1,0)
READ filename for output table
OPEN output table file
VERIFY OPEN
IF no good data THEN
ERRNO = 1
ELSE
ERRNO = 0
ENDIF
RETURN
MODEL_ADJ
Local Variables
INTEGER
K Index of HSURF in H
REAL
SL Slant path length
DSLODH =dSL/dH
RE Radius of Earth (m)
TSURF Surface Temperature at H(K) (Linearly interpolated)
VMRS Volume Mixing Ratio at H(K) (Linearly interpolated)
PSURF Surface Pressure at H(K) (Exponentially interpolated)
********************************************************************************
Set RE=6380
Set Q=2.152E25
Convert VMR from ppm unit to absolute unit by x 1.E-6
IF Surface Elevation > 0 THEN
Determine location of HSURF in H
Calculate change in model height
Calculate Change in height from surface elevation and location in H
Linearly Interpolate surface temp (TSURF) and VMR (VMRS)
Exponentially Interpolate for surface pressure (PSURF)
Reset Number of boundaries
Reset NL
Re-assign values from bottom up
Zero out pressures and VMRS of top atmospheric layers
ENDIF
Calculate Column water vapour amount by boundary and add up
RETURN
GEOMETRY
LOCAL VARIABLES
REAL
VAPVRT(60)
MD(12) Starting day of the year for the month (ie, June=151)
XLAT Latitude in Decimal Degrees
XLATR Latitude in Radians
XLONG Longitude in Decimal Degrees
XLONGR Longitude in Radians
XH Hours in real
XM Minutes in real
XS Seconds in real
TT Reference Time
DEC Declination of the Sun at time TT
HAZ Hour Angle minus Reference Time
EL Elevation
********************************************************************************
Convert Time of observation to distance in radians rotated by earth
Convert Latitude and Longitude into Radians
Assign Hemisphere to Lat and Long (S=-1;E=-1)
CALL SUNCOR(IDY,IMN,IYR,TT,DEC,HAZ)
CALL HAZEL(HAZ+TT-XLONGR,DEC,SOLAZ,EL,XLATR)
VERIFY ELEVATION
CONVERT Solar Azimuth to Radians
SET observation zenith and azimuth angles to 0; observations are straight down
CALCULATE solar zenith Angle
CALCULATE Gas Geometric Factor
CALCULATE individual Gas Geometric Factors
CALCULATE Total OZONE, ignore the 25 km ozone peak (AVIRIS flies below this)
CALCULATE the 60 water vapour geometry factors
CALCULATE # of days passed during the year the AVIRIS image was taken
RETURN
INIT_SPECCAL
LOCAL VARIABLES
REAL
FACDLT Factor to multiply DLT by to determine the range used in the
Gaussian function calculation for smoothing spectra
CONST1
CONST2 total area of Gaussian curve
DT small diff. between boundary layer temp and median temp (=TM-T)
DWVAVR Approximate wavelength spacing of AVIRIS data
RNCV
WAVCV
********************************************************************************
CALL WAVLN_INIT
SET the Number of column water vapour values
INDICATE if liquid water should be considered in the calculations
SET number of ozone data points
SET constants
CALCULATE FINSTR
DERIVE parameters and arrays to smooth output surface reflectance spectra
SET number of channels of the 4 AVIRIS spectrometers to be used in removing
null AVIRIS radiance values in the overlap portions
SET wv windows to closest AVIRIS wavelength
SET starting and ending wavelength indexes
CALCULATE weights for window and absorption channels
INITIALIZE JA for searching water vapour table (TRNTBL)
INITIALIZE WAVSTD (.4-3.0225)
INITIALIZE TRANSMITTANCE TABLE
INITIALIZE VMRM TABLE
CALCULATE median values between the atmos. model boundaries.
START TRANSMITTANCE CALCULATIONS LOOP
IF GAS NOT USED ASSIGN 1's to transmittance table for that gas
CALCULATE transmittance of each gas separately
ASSIGN transmittance to transmittance table
END LOOP
SOLOR_IRR
REAL
E(1050) Solar Irradiances starting at 0.34
WL Wavelength spectrum
E_SM(1050) Smoothing Irradiance Array
********************************************************************************
ASSIGN solar irradiances to array E
GENERATE wavelength spectrum (0.3475-2.66 um)
INITIALIZE Smoothing Irradiance Array
INTERPOLATE values of Smoothing Irradiance Array to AVIRIS wavelengths
CORRECT for Sun-Earth distance
TRAN_TABLE
LOCAL VARIABLES
********************************************************************************
CALCULATE the geometrically adjusted water vapour amount, the channel ratios,
and the transmittance spectrum
CALL TRANCAL
WRITE calculated values to file
PROCESS_CUBE
c each slice is one line
c each line has nsamples
c each sample has nbands
DO for all lines
Read in spectral slice
CALL REFLDRV to create a surface reflectance spectrum
REPLACE reflectance values with the newly found true surface reflectance
STORE water vapour amounts
WRITE slice to output file
END DO
WRITE the water vapour image to file
Appendix E: What is Full Width at Half Maximum (FWHM)
Full Width at Half Maximum (FWHM) is the full width of the distribution (in ATREM, Gaussian Distribution) at half of the maximum intensity.

Figure E1: A Gaussian profile with a Full Width at Half Maximum (FWHM) of 10 nm is shown. This profile is typical of spectrometers such as AVIRIS which has 224 such profiles spaced at about 10 nm (Clark, 1997).
Appendix C: Wavelength and Full Width at Half Maximum (FWHM) Values of AVIRIS Data
|
Band |
Wavelength |
FWHM |
|
1 |
0.3734 |
0.0099 |
|
2 |
0.3829 |
0.0098 |
|
3 |
0.3925 |
0.0098 |
|
4 |
0.4021 |
0.0097 |
|
5 |
0.4117 |
0.0097 |
|
6 |
0.4214 |
0.0096 |
|
7 |
0.4311 |
0.0096 |
|
8 |
0.4408 |
0.0096 |
|
9 |
0.4505 |
0.0095 |
|
10 |
0.4603 |
0.0095 |
|
11 |
0.4701 |
0.0095 |
|
12 |
0.4799 |
0.0095 |
|
13 |
0.4897 |
0.0095 |
|
14 |
0.4995 |
0.0094 |
|
15 |
0.5093 |
0.0094 |
|
16 |
0.5192 |
0.0094 |
|
17 |
0.5291 |
0.0094 |
|
18 |
0.5390 |
0.0094 |
|
19 |
0.5488 |
0.0094 |
|
20 |
0.5587 |
0.0094 |
|
21 |
0.5687 |
0.0094 |
|
22 |
0.5786 |
0.0094 |
|
23 |
0.5885 |
0.0094 |
|
24 |
0.5984 |
0.0094 |
|
25 |
0.6083 |
0.0094 |
|
26 |
0.6182 |
0.0094 |
|
27 |
0.6282 |
0.0093 |
|
28 |
0.6381 |
0.0093 |
|
29 |
0.6480 |
0.0093 |
|
30 |
0.6579 |
0.0092 |
|
31 |
0.6678 |
0.0092 |
|
32 |
0.6777 |
0.0091 |
|
33 |
0.6658 |
0.0089 |
|
34 |
0.6754 |
0.0089 |
|
35 |
0.6849 |
0.0089 |
|
36 |
0.6944 |
0.0089 |
|
37 |
0.7040 |
0.0089 |
|
38 |
0.7135 |
0.0089 |
|
39 |
0.7231 |
0.0089 |
|
40 |
0.7326 |
0.0089 |
|
41 |
0.7422 |
0.0089 |
|
42 |
0.7517 |
0.0089 |
|
43 |
0.7613 |
0.0089 |
|
44 |
0.7709 |
0.0089 |
|
45 |
0.7804 |
0.0089 |
|
46 |
0.7900 |
0.0089 |
|
47 |
0.7996 |
0.0089 |
|
48 |
0.8092 |
0.0089 |
|
49 |
0.8187 |
0.0089 |
|
50 |
0.8283 |
0.0089 |
|
51 |
0.8379 |
0.0089 |
|
52 |
0.8475 |
0.0089 |
|
53 |
0.8571 |
0.0089 |
|
54 |
0.8667 |
0.0089 |
|
55 |
0.8762 |
0.0090 |
|
56 |
0.8858 |
0.0090 |
|
57 |
0.8954 |
0.0090 |
|
58 |
0.9050 |
0.0090 |
|
59 |
0.9146 |
0.0090 |
|
60 |
0.9242 |
0.0090 |
|
61 |
0.9338 |
0.0090 |
|
62 |
0.9434 |
0.0090 |
|
63 |
0.9530 |
0.0090 |
|
64 |
0.9626 |
0.0090 |
|
65 |
0.9722 |
0.0090 |
|
66 |
0.9818 |
0.0090 |
|
67 |
0.9914 |
0.0090 |
|
68 |
1.0011 |
0.0090 |
|
69 |
1.0107 |
0.0091 |
|
70 |
1.0203 |
0.0091 |
|
71 |
1.0299 |
0.0091 |
|
72 |
1.0395 |
0.0091 |
|
73 |
1.0491 |
0.0091 |
|
74 |
1.0587 |
0.0091 |
|
75 |
1.0683 |
0.0091 |
|
76 |
1.0779 |
0.0091 |
|
77 |
1.0875 |
0.0091 |
|
78 |
1.0971 |
0.0091 |
|
79 |
1.1067 |
0.0091 |
|
80 |
1.1163 |
0.0091 |
|
81 |
1.1259 |
0.0091 |
|
82 |
1.1356 |
0.0091 |
|
83 |
1.1452 |
0.0091 |
|
84 |
1.1548 |
0.0091 |
|
85 |
1.1644 |
0.0091 |
|
86 |
1.1740 |
0.0091 |
|
87 |
1.1836 |
0.0090 |
|
88 |
1.1932 |
0.0090 |
|
89 |
1.2028 |
0.0090 |
|
90 |
1.2124 |
0.0090 |
|
91 |
1.2219 |
0.0090 |
|
92 |
1.2315 |
0.0090 |
|
93 |
1.2411 |
0.0090 |
|
94 |
1.2507 |
0.0090 |
|
95 |
1.2603 |
0.0089 |
|
96 |
1.2699 |
0.0089 |
|
97 |
1.2515 |
0.0092 |
|
98 |
1.2614 |
0.0092 |
|
99 |
1.2713 |
0.0093 |
|
100 |
1.2812 |
0.0093 |
|
101 |
1.2911 |
0.0093 |
|
102 |
1.3011 |
0.0093 |
|
103 |
1.3110 |
0.0094 |
|
104 |
1.3209 |
0.0094 |
|
105 |
1.3308 |
0.0094 |
|
106 |
1.3407 |
0.0095 |
|
107 |
1.3507 |
0.0095 |
|
108 |
1.3606 |
0.0095 |
|
109 |
1.3705 |
0.0095 |
|
110 |
1.3804 |
0.0096 |
|
111 |
1.3904 |
0.0096 |
|
112 |
1.4003 |
0.0096 |
|
113 |
1.4102 |
0.0096 |
|
114 |
1.4202 |
0.0097 |
|
115 |
1.4301 |
0.0097 |
|
116 |
1.4400 |
0.0097 |
|
117 |
1.4500 |
0.0097 |
|
118 |
1.4599 |
0.0098 |
|
119 |
1.4699 |
0.0098 |
|
120 |
1.4798 |
0.0098 |
|
121 |
1.4897 |
0.0098 |
|
122 |
1.4997 |
0.0099 |
|
123 |
1.5096 |
0.0099 |
|
124 |
1.5196 |
0.0099 |
|
125 |
1.5295 |
0.0099 |
|
126 |
1.5394 |
0.0099 |
|
127 |
1.5494 |
0.0099 |
|
128 |
1.5593 |
0.0100 |
|
129 |
1.5693 |
0.0100 |
|
130 |
1.5792 |
0.0100 |
|
131 |
1.5892 |
0.0100 |
|
132 |
1.5991 |
0.0100 |
|
133 |
1.6091 |
0.0100 |
|
134 |
1.6190 |
0.0101 |
|
135 |
1.6289 |
0.0101 |
|
136 |
1.6389 |
0.0101 |
|
137 |
1.6488 |
0.0101 |
|
138 |
1.6588 |
0.0101 |
|
139 |
1.6687 |
0.0101 |
|
140 |
1.6786 |
0.0101 |
|
141 |
1.6886 |
0.0101 |
|
142 |
1.6985 |
0.0101 |
|
143 |
1.7084 |
0.0101 |
|
144 |
1.7184 |
0.0101 |
|
145 |
1.7283 |
0.0101 |
|
146 |
1.7383 |
0.0101 |
|
147 |
1.7482 |
0.0102 |
|
148 |
1.7581 |
0.0102 |
|
149 |
1.7681 |
0.0102 |
|
150 |
1.7780 |
0.0102 |
|
151 |
1.7879 |
0.0102 |
|
152 |
1.7978 |
0.0101 |
|
153 |
1.8078 |
0.0101 |
|
154 |
1.8177 |
0.0101 |
|
155 |
1.8276 |
0.0101 |
|
156 |
1.8375 |
0.0101 |
|
157 |
1.8474 |
0.0101 |
|
158 |
1.8574 |
0.0101 |
|
159 |
1.8673 |
0.0101 |
|
160 |
1.8772 |
0.0101 |
|
161 |
1.8778 |
0.0127 |
|
162 |
1.8878 |
0.0127 |
|
163 |
1.8978 |
0.0127 |
|
164 |
1.9078 |
0.0127 |
|
165 |
1.9178 |
0.0127 |
|
166 |
1.9278 |
0.0127 |
|
167 |
1.9378 |
0.0126 |
|
168 |
1.9477 |
0.0126 |
|
169 |
1.9577 |
0.0126 |
|
170 |
1.9677 |
0.0126 |
|
171 |
1.9777 |
0.0126 |
|
172 |
1.9877 |
0.0126 |
|
173 |
1.9977 |
0.0126 |
|
174 |
2.0076 |
0.0126 |
|
175 |
2.0176 |
0.0126 |
|
176 |
2.0276 |
0.0126 |
|
177 |
2.0376 |
0.0126 |
|
178 |
2.0475 |
0.0126 |
|
179 |
2.0575 |
0.0126 |
|
180 |
2.0675 |
0.0125 |
|
181 |
2.0774 |
0.0125 |
|
182 |
2.0874 |
0.0125 |
|
183 |
2.0974 |
0.0125 |
|
184 |
2.1073 |
0.0125 |
|
185 |
2.1173 |
0.0125 |
|
186 |
2.1272 |
0.0125 |
|
187 |
2.1372 |
0.0125 |
|
188 |
2.1471 |
0.0125 |
|
189 |
2.1571 |
0.0124 |
|
190 |
2.1670 |
0.0124 |
|
191 |
2.1769 |
0.0124 |
|
192 |
2.1869 |
0.0124 |
|
193 |
2.1968 |
0.0124 |
|
194 |
2.2068 |
0.0124 |
|
195 |
2.2167 |
0.0124 |
|
196 |
2.2266 |
0.0123 |
|
197 |
2.2366 |
0.0123 |
|
198 |
2.2465 |
0.0123 |
|
199 |
2.2564 |
0.0123 |
|
200 |
2.2663 |
0.0123 |
|
201 |
2.2762 |
0.0122 |
|
202 |
2.2861 |
0.0122 |
|
203 |
2.2960 |
0.0122 |
|
204 |
2.3059 |
0.0122 |
|
205 |
2.3158 |
0.0122 |
|
206 |
2.3257 |
0.0121 |
|
207 |
2.3356 |
0.0121 |
|
208 |
2.3455 |
0.0121 |
|
209 |
2.3554 |
0.0121 |
|
210 |
2.3653 |
0.0121 |
|
211 |
2.3752 |
0.0121 |
|
212 |
2.3851 |
0.0120 |
|
213 |
2.3949 |
0.0120 |
|
214 |
2.4048 |
0.0120 |
|
215 |
2.4147 |
0.0120 |
|
216 |
2.4245 |
0.0119 |
|
217 |
2.4344 |
0.0119 |
|
218 |
2.4442 |
0.0119 |
|
219 |
2.4541 |
0.0119 |
|
220 |
2.4639 |
0.0118 |
|
221 |
2.4738 |
0.0118 |
|
222 |
2.4836 |
0.0118 |
|
223 |
2.4934 |
0.0117 |
|
224 |
2.5033 |
0.0117 |
Appendix D: ATREM Input Parameter Help File
GEOMETRIC PARAMETERS
DATE AND TIME: The time of the AVIRIS overflight in GMT
Enter the DATE in the format DD-MM-YYYY
where DD is the day (1-31)
MM is the month (1-12)
YYYY is the year (>1986)
Enter the TIME in the format HH:MM:SS
where HH is the hour (0-23)
MM is the minutes (0-59)
SS is the seconds (0-59)
LATITUDE AND LONGITUDE: The latitude and longitude of the center of the image
Enter the LATITUDE in the format DD'MM'SS and choose the hemisphere
where DD is the degrees (0-89) N is North
MM is the minutes (0-59) S is South
SS is the seconds (0-59)
Enter the LONGITUDE in the format DD'MM'SS and choose the hemisphere
where DD is the degrees (0-179) E is East
MM is the minutes (0-59) W is West
SS is the seconds (0-59)
SPECTRAL PARAMTERS
SPECTRAL RESOLUTION: Average Spectral Resolution of the AVIRIS image
Enter the SPECTRAL RESOLUTION in the range of 8 to 20 nm.
* You may enter 0 if you want to use the full-width half-maximum
(FWHM) values for each channel. This value will be read from
the FWHM file specified.
WAVELENGTH FILE: The name of the AVIRIS wavelength file associated with
AVIRIS image data being processed
Enter the path and name of the wavelength and FWHM information file.
* This file has 3 columns:
(1) channel number
(2) Channel center wavelengths in micrometers
(3) Channel FWHM values
* This file may need to be created from the Spectral Calibration
file provided by JPL with the AVIRIS image
CHANNEL RATIO: Removes the effects of the linear variation, due to water
vapour, of surface reflectance with wavelength and gives the
transmittances of the absorption channel.
Select DEFAULT for the program default values or Select USER-DEFINED
to define your own parameters for both the 0.94 um and 1.14 um water
absorption bands. (Atmospheric windows are wavelength ranges where the
atmosphere is particularly transmissive of energy.)
USER-DEFINED values are imputed as follows:
(1) center wavelength for the first atmospheric window
(2) number of narrow AVIRIS channels to average in the first
atmospheric window to form a broad window channel
(3) center wavelength for the second atmospheric window
(4) number of narrow AVIRIS channels to average in the second
atmospheric window to form a broad window channel
(5) the center wavelength for the water vapour absorption band
(6) the number of narrow AVIRIS channels to average to form a
broad water vapour absorption channel
Example> 0.94 um water vapour band: 0.865 3 1.025 3 0.945 5
1.14 um water vapour band: 1.050 3 1.230 3 1.140 5
ATMOSPHERIC PARAMTERS
ATMOSPHERIC MODEL: The model chosen should describe the atmospheric conditions
at the time of the AVIRIS overflight.
Select one of the MODELS listed for the conditions of the AVIRIS flight:
- TROPICAL
- MID-LATITUDE SUMMER
- MID-LATITUDE WINTER
- SUBARCTIC SUMMER
- SUBARCTIV WINTER
- US STANDARDD 1962
- USER-DEFINED MODEL
If you chose USER-DEFINED MODEL, you must supply the information based on
the atmospheric conditions during the AVIRIS overflight. Your user-defined
atmospheric model may be obtained from Radiosonde flights, other atmosphere
layer sampling experiments, or your own or others model of the atmosphere.
The information will be supplied in the form of a file provided by you.
The file will contain the following information:
1 number of boundaries being used
2 altitude in kilometres
3 pressure in atmospheres
4 temperature in Kelvin
5 volume mixing ratio in parts per million
This information will be in column format for each layer
GAS SELECTORS: These are the indicators for determining which of the seven
gases that have absorption features in the 0.4-2.5um range
that you want to include in the atmospheric gaseous transmission
calculations.
The seven gases are: water vapour, carbon dioxide, ozone, nitrous oxide,
carbon monoxide, methane, and oxygen.
TOTAL OZONE: Specifies the vertical column amount of ozone (atm-cm) that is
contained in the atmosphere. This is used for the ozone
transmittance calculations.
Enter the TOTAL vertical column amount of OZONE in the atmosphere (atm-cm)
The valid range is 0.1 - 0.6 atm-cm.
A typical column ozone amount is 0.34 atm-cm
AEROSOL MODEL AND VISIBILITY (or OPTICAL DEPTH AT 0.55 um)
Specifies the aerosol conditions and visibility, or optical depth
at 550nm, at time of AVIRIS flight.
0 - no aerosol
1 - continental aerosol
2 - maritime aerosol
3 - urban aerosol
visibility: 0 - 300 km
optical depth: 0.0 - 10.0
AVERAGE ELEVATION: This value is the average elevation of the scene (in units
of kilometres). It is used to re-define the lower boundary
of an atmospheric model. The surface elevation can be
greater than the altitude of the bottom layer boundary of
the selected atmospheric model.
Valid Values are between 0 and 10 km
INPUT FILE PARAMETERS
INPUT AVIRIS IMAGE: The AVIRIS image file will be the scaled radiometrically
calibrated AVIRIS data provided by JPL (information for
obtaining such files is located on their website at
http://makalu.jpl.nasa.gov/). The image format of the
AVIRIS data file is an optional header, then the image
data in either band sequential (BSQ), band interleaved
by pixel (BIP), or band interleaved by line (BIL) format.
The imaging data must be 2-byte integers in the local
machine's byte order (JPL distributes the data in the Sun
system's byte order).
Enter a valid unix path and the filename of the AVIRIS data file.
HEADER INFORMATION: This button allows the user to select to input the header
and image specifications rather than let the program either
read the valid SIPS header from the data file or use default
values (0 byte header, 614 samples, 512 lines, 224 band,
BIL storage order).
If you select HEADER INFORMATION
Enter the dimensions of the header, in bytes
the number of samples per line
the number of lines per band
the number of bands
and select the storage order, BSQ Band Sequential
BIP Band interleaved by pixel
BIL Band interleaved by line
OUTPUT FILE PARAMETERS
OUTPUT: This selection chooses whether to write the output image data to file
or to memory
If you select FILE, you must provide the file names to which you want
the data to be written.
REFLECTANCE FILE: Enter the path and filename of the file to save the
true ground reflectance data image.
WATER VAPOR FILE: Enter the path and filename of the file to save the
water vapour data image
TRANS. SPECTRA FILE: This is a library file containing the output transmission
library file. The file contains 60 water vapour values.
Associated with each water vapour value are the channel
ratio values for the 0.94 and the 1.14 um water vapour
bands and an atmospheric gas transmittance spectrum at
AVIRIS wavelength positions and spectral resolution.
The first line of the file has 10 column water vapour values, the second
line has 10 ratio values for the 0.94 um region, and the third line has 10
ratio values for the 1.14um region. The next lines (usually 224) contain
wavelengths in the first column and 10 transmittance spectra in the rest of
the columns. The 10 spectra correspond to the water vapour values in the
first line. There are a total of 6 groups of 10 sets of data. An example
of the first group of data (showing only 4 of the 10 transmittance
spectra:
0.0000E+00 0.4161E-01 0.1248E+00 0.2288E+00 <-- water vapour values
0.1000E+01 0.9679E+00 0.9279E+00 0.8926E+00 <-- ratios for 0.94um region
0.1001E+01 0.9297E+00 0.8594E+00 0.8036E+00 <-- ratios for 1.14um region
0.3734 0.1000E+01 0.1000E+01 0.1000E+01 0.1000E+01 <-- wavelength and
0.3829 0.1000E+01 0.1000E+01 0.1000E+01 0.1000E+01 transmittance spectra
0.3925 0.1000E+01 0.1000E+01 0.1000E+01 0.1000E+01
0.4021 0.1000E+01 0.1000E+01 0.1000E+01 0.1000E+01
0.4117 0.1000E+01 0.1000E+01 0.1000E+01 0.1000E+01
0.4214 0.1000E+01 0.1000E+01 0.1000E+01 0.1000E+01
: :
: :
2.4738 0.9980E+00 0.9387E+00 0.8897E+00 0.8517E+00
2.4836 0.9983E+00 0.9144E+00 0.8439E+00 0.7888E+00
2.4934 0.9986E+00 0.9055E+00 0.8288E+00 0.7691E+00
2.5033 0.9988E+00 0.9063E+00 0.8278E+00 0.7671E+00
Appendix B: ATREM Flow Diagram








By A Web Design Company
By A Web Design Company