The following guide was written by Dr. Sylvio Mannel.
AVIRIS Starting Guide
(“AVIRIS for Dummies”)
What is AVIRIS?
(AVIRIS main web page)
Atmospheric Correction with ACORN
When first working with AVIRIS, I was overwhelmed with the
variety of new and different opportunities. Obstacles started when I tried to
first look at the data; ENVI prompted me to input 10 (!) different parameters.
The following work is intended to get you started immediately and keep the
learning period as short as possible. It introduces you on how to open an
AVIRIS image, how to georeference and correct for atmosphere. We had low resolution
AVIRIS data (20m, summer 2000), and we used ENVI 3.4. / ENVI 3.5. Have fun! For
questions and comments send an email: Sylvio@Mannel.com
0. Day of AVIRIS Over flight
Take spectral readings from a bright area (parking lot, sand quarrel etc.)
Consider measuring precipitable water (water vapor)
1. Getting Started
1.1.
Getting AVIRIS from Tapes
tar -xvf /path to tape device & ;; Unix command to unpack data from tapes
(‘&’ means the process runs in the back ground)
1.2. ENVI Parameters to Open AVIRIS .img:
Samples: 614
Lines: 512 (beware; last scene in each row has less lines, check .log file for number of lines)
Bands: 224
data type: integer
byte order: Network (IEEE)
Interleave: BIP
File type: <external> <unknown>
Suggestion
to Display an AVIRIS image
|
ENVI RGB display |
Red |
G |
Blue |
|
AVIRIS band |
50 |
20 |
10 |
2.1. General
We used Mode 1 and Mode 2. Mode 1 provides you with a reflectance image, that you can enter into Mode 1. Then get calibration in Mode 2 (using bright input spectra from calibration site). The input data for Mode 1 and Mode 2 can be changed using ACORN or in a text editor (e.g. r04_sc02_mod1.in and r04_sc02_mod2.in ).
You need the following input parameters in advance:
approx scene center location
approx elevation (from DEMs or elevation maps)
water vapor (precipitable water)
visibility (on a clear day about 80km-100km)
day and time of image acquisition (from
Additional 2 files for Mode 2:
2.2. Input Parameters
We georeferenced before we corrected for atmosphere. We saved 3 bands of every AVIRIS scene as a ‘.bil’ file and opened it in ArcGIS. From the approximate center of the image, we took latitude/longitude (not in decimal).
Needs to be in meters. We got took the average from a DEM (Digital Elevation Map) in ArcGIS. One can also use elevation maps
This is the hardest parameter to
obtain. One can use a water vapor measuring device, such as “Microtops”. Measurements
must be from the day and time of the over-flight. Precipitable water needs to come from an atmospheric sounding.
One can calculate precipitable water (check atmospheric physics texts). The
parameter will need an atmospheric profile which is available at http://raob.fsl.noaa.gov/
Visibility is between 80km and 100km on a clear day.
Check the “.avhdr file” in your AVIRIS data and take an average. This is already in Greenwich-standard time (do not adjust for your local time)
Prepare files for Mode 1:
After running Mode 1 get average AVIRIS spectrum of the calibration site.
measured spectrum must be adjusted with a correction spectrum (provided with the spectrometer)
spec meas*
speccorrect
make an average of your spectrometer file and your AVIRIS .spec file and compare. If the difference is too big apply a scaling factor to your AVIRIS .spec file.
First column spectrometer
wavelength, second column: adjusted spectrometer reflectance
2.3. In ENVI:
The files, that must be changed or checked every time you work on a new AVIRIS scenes are in BOLD. When the input parameters can be taken from the first scene, the parameter is just in italic.
Select processing mode 1
In “Edit Control File”:
Choose Output file : e.g. atm_ r02sc03
Input File Format : (e.g. bip)
Integer format: host (Intel)
Image Dimensions: 224 bands
lines : 512
samples 614
offset: 0
Image latitude: of scene center (e.g. 44, 22, 55) check ArcGIS project
Image latitude (e.g. –104, 1, 35)
Image Mean elevation : (e.g. 1800 m) check DEM or map
Image Acquisition Altitude : 20 km
Image Date: (e.g. 6 Day
7
month
2000
year)
Image time: from “.avhdr file” (take average, do not adjust for mountain time)
Derive Water Vapor: both
Fixed water vapor : (e.g. 28 mm)
Image atmosphere visibility: (e.g. 90 km)
Artifact Suppression: Type 1 (Type 2 smoothes and Type 3 takes out entire bands that have high atmospheric influence)
ACORN Estimated Visibility: do not select
Mode 2:
input image file : output file from mode 1 (e.g. atm_rot310_r04_sc)
output image file : e.g. atm2_rot310_r04_sc
Image dimension : same as in Mode 1
Image Target reflectance: enter path and prepared file
Image Spectral Calibration: enter path and prepared file
Check your ACORN input file (.in) in wordpad
3. Georeferencing:
<File> <apply>
By trial and error find the angle, which brings you closest to the true orientation. (Every second flight line should be rotated by an additional 180 degrees, since the AVIRIS airplane flies back))
ENVI <basic tools> <rotate/flip data>
3.3. General Georeferencing
Pick about 40 GCPs (ground control points)
per AVIRIS scene
it is best to pick them at the very outer
edges of the image (first 4 points should be taken from the corners)
try to pick the next point opposite of the
last one
it is better to have the points equally
distributed, even though it may mean less points (keep them equally distributed
already in the process of picking them)
pick GCP’s
<Map> <registration> <select GCP’s from Image to image>
save GCP’s as .pts file
keep an eye on the errors
Georeference
don’t go from the main menu
open GCPs <Map> <registration> <select GCP’s from Image to image>
in “Ground Control Point selection
<File> <Restore GCPs from ASCII>
!!!! in <Options> <Warp File (as image to map)>
choose input warp file
click <ok>
in “Registration parameters” enter:
Warp method: polynomial
Degree: 3 (2 and 4 may also work, 4 can lead to distortions, if 2 works, it is better than using 3rd degree)
Resampling: nearest neighbor
Click on <change Output parameters>
x and y pixel size 20(!) meter (or what ever your resolution is)
4. Problem solving:
5. Links
AVIRIS main page