GIS Tool For Distribution Reference Evap
GIS Tool For Distribution Reference Evap
Open Source GIS and Remote Sensing Tutorials Version 1, December 2010
Introduction
2
GRASS-Tutorials Ver. 1, December 2010
All of the images are in the Zip format and should Image container folder is not the same as work-
be collected in a unique folder. ing folder. GRASS generated files are in the binary
format and can not easily read by normal windows
While most Landsat scenes are processed as Level programs. Therefore, Copy and pasting as well as
1T (precision and terrain corrected), certain scenes the exporting of these files must perform inside the
do not have ground-control or elevation data nec- GRASS.
essary for precision or terrain correction. In these
cases the best level of correction is applied (Level Linux users have easier and simpler access to
1G-systematic or Level 1Gt-systematic terrain). Ad- script writing for automation of a repeatable task
ditionally, the majority of all archived Landsat 1-5 for faster and (man-made) error free results. But it
MSS scenes, as well as a select number of Landsat doesn’t mean the Windows users can not use it prop-
4-5 TM scenes are processed only as Level 1G (sys- erly.
tematic) due to processing constraints. However,
improvements to production capabilities are being Starting the GRASS in Windows is performed by
investigated, which will allow more scenes to be klicking on the exe file. In Linux it should be written
processed at a higher level with a shorter processing "grass70" (70 means version 7.0) in Terminal area and
time. The processing level of a downloaded scene is push the enter key.
found in the metadata (MTL.txt) or processing his-
tory (WO.txt) files which are delivered with the data After the first time opening of the GRASS, the
band files and other ancillary data. following menu is appeared to select the working
3
GRASS-Tutorials Ver. 1, December 2010
>pwd
>/home/GRASSDATA/L5
"pwd" means Path to Working Directory and will
show the path that you are in now.
For changing to desired path
Type cd and space Folder/Sub folder and Enter
Figure 7: GRASS GIS Welcome Interface
>cd home/RSDATA/Landsat5
Starting the GRASS shows three new windows: >/home/RSDATA/Landsaat5
GRASS Layer management: for main data analysis; Scripts now work in the correct directory.
GRASS Map Display for viewing the resulted layers;
CLI (Command Line Interface): for scripting.
4
GRASS-Tutorials Ver. 1, December 2010
Landsat 5 TM:
L5162040_04020090705_B10.TIF
=> L5162040_04020090705.1
The same for the other bands till band 7.0
L5162040_04020090705_B70.TIF
=> L5162040_04020090705.7
Landsat 7 ETM+:
L71161040_04020100607_B10.TIF
=> L7_161040_04020100607.1 Figure 11: Raster Import Module
The same for the other bands till band 7.0 except for
the bands 6.1 and 6.2
It is possible also to import and rename the im-
L71161040_04020100607_B61.TIF
ages by using the command line. Once inside the
=> L7_161040_04020100607.61
p162r040 location, access the Command Line Inter-
L72161040_04020100607_B62.TIF
face (CLI) and "cd" to the directory where all of your
=> L7_161040_04020100607.62
newly decompressed images are located. In that di-
rectory, launch the script mentioned in 1-2.
It is possible to do one by one in GRASS Import
menu. For every band that is selected from the im-
age container folder, an output file should be written Imported images are now in the working en-
as the new file naming system mentioned above. vironment of the GRASS (i.e. /home/GRASS-
DATA/L5/PERMANENT). So, it is impossible for
common programs to access to and open the im-
ported images except after the exporting.
Preprocessing
5
GRASS-Tutorials Ver. 1, December 2010
6
GRASS-Tutorials Ver. 1, December 2010
Sun_radiance = \
TAUv * [Esun * sin(e) * TAUz + Esky] / (PI * d^2)
Atmospheric correction
DOS1: TAUv = 1.0, TAUz = 1.0 and Esky = 0.0
Natural light emitted from the Sun is not polar-
ized. Before it enters the Earth’s atmosphere, its DOS2: TAUv = 1.0, Esky = 0.0, \
intensity remains mostly unchanged and unaffected and TAUz = sin(e) for all bands with \
maximum wave length less than 1. \
by the retardation of electric and magnetic compo-
(i.e. bands 4-6 MSS, 1-4 TM, and 1-4 ETM+) \
nents. However after interacting with atmospheric
other bands TAUz = 1.0
molecules and particles, the unpolarized light may
become partially polarized. The degree of polar- DOS2b:
ization depends on the type of scattering event. In
the actual case, the signal is perturbed by the atmo- DOS3: TAUv = exp[-t/cos(sat_zenith)], \
sphere. Only a fraction of the photons coming from TAUz = exp[-t/sin(e)], Esky = rayleigh
7
GRASS-Tutorials Ver. 1, December 2010
i.atcorr module.
DOS4: TAUv = exp[-t/cos(sat_zenith)], \ Parameterization of the i.atcorr is being done inside
TAUz = exp[-t/sin(e)], Esky = PI * radiance_dark a text file including the below information (called
parameter file).
In case of using DOS methods while in
i.landsat.toar go to Metadata section and select one 7 - geometrical conditions=Landsat 5 TM
of the desired DOS methods of atmospheric correc- 7 5 6.30 51.410 24.234 - month day hh.ddd longitude
tion and the kind of sensor (i.e TM5) and continue to latitude ("hh.ddd" is in decimal hours GMT)
convert DN to radiance and reflectance. 6 - atmospheric mode=us standard 62
1 - aerosols model=continental
In this case, the output file is reflectance or ra- 9 - visibility [km] (aerosol model concentration), not
diance that is atmospherically corrected (by DOS used as there is raster input
method) and must not be inserted to landsat atmo- -1.200 - mean target elevation above sea level [km]
spheric correction module "i.atcorr". (here 1200m asl), not used as there is raster input
-1000 - sensor height (here, sensor on board a satel-
lite)
30 - ’i’th band of TM Landsat 5
8
GRASS-Tutorials Ver. 1, December 2010
there is a DEM file input the line 7 is not used. In The produced maps are reflectance at the surface
Line 7 the sensor height is described. The figure - for each band. The values range is between 0 and 1
1000 means that the sensor is on board a satellite. showing the ratio of outgoing radiance to the incom-
Line 8 is mentioning the sensor band. It is deter- ing radiance at Earth Skin Surface. In order to test the
mined in he section F of the i.atcorr manual. reality of the generated values look to the NDVI val-
ues that can be produced by the red and near infrared
Once inside the i.atcorr, type a name for the input band through map r.mapcalc module. The values re-
file. This file must be the reflectance at top of atmo- lated to green vegetation area must be the highest.
sphere file (generated in i.landsat.toar). Every band
needs its own parameter text file to be browsed or
directly enter the parameters values in the text box.
NDVI production
9
GRASS-Tutorials Ver. 1, December 2010
Albedo production
Albedo is shortwave surface reflectance in range of
0.3 to 3.0 micro meters (figures are dimensionless).
Albedo is in fact an integration of the surface re-
flectance of all of the shortwave bands assuming a
fraction for every band. The fractions for the bands Figure 22: i.emissivity Module
are published by the landsat website and are as fol-
low. Energy balance terms
Albedo = (0.293 * channel1 + 0.274 * channel2 \
+ 0.233 * channel3 + 0.156 * channel4 + \ The energy-balance models use visible, infrared and
0.033 * channel5 + 0.011 * channel7) thermal remotely sensed data for solving the main
equation:
Albedo is calculated from the "i.albedo" module.
It computes broad band albedo from surface re-
flectance. This is an precursor to Soil heat flux, r.sun Rn-G-H-λET=0
and Energy-Balance processing.
Inside the GRASS windows, go to Imagery/Evapo-
Where the Rn is the net radiation, H is the sensible
transpiration calculation/Albedo, and select the the
heat flux, G is the soil heat flux, and λET is the latent
bands 1 to 5 and 7 of atmospherically corrected sur-
heat flux.
face reflectance.
Net Radiation
Net radiation at satellite overpass (instantaneous)
and integrated over the day are computed from a
generic GRASS GIS raster module "r.sun". The r.sun
program works in two modes. In the first mode it
calculates for the image acquisition local time a solar
incidence angle [degrees] and solar irradiance values
[W.m-2]. In the second mode daily sums of solar ra-
diation [Wh.m-2.day-1] are computed within a day.
Surface emisivity is the ratio of the thermal energy The model computes all three components of to-
radiated by the surface to the thermal energy radi- tal radiation (beam, diffused and reflected) for the
10
GRASS-Tutorials Ver. 1, December 2010
11
GRASS-Tutorials Ver. 1, December 2010
Mode 1
r.sun elevin=dem90
aspin=_aspect slopein=_slop lin=3.2
albedo=L5162040_04020090518.1Albedo
latin=latitude longin=Longitude
incidout=_InAnM1 beam_rad=_BiIrM1
diff_rad=_DifIrM1 refl_rad=_GrRefIrM1
glob_rad=_GlIrrM1 day=138 time=10
12
GRASS-Tutorials Ver. 1, December 2010
U*= 0.41*um/(ln(hu/Z0m)
e0=0.618*exp(17.27*T/(T+273.3))
Figure 28: i.eb.soilheatflux Module
e0 is the saturation vapor pressure at the air tempera-
The i.eb.soilheatflux command line is as follow- ture. It must be calculated for Max and Min absolute
ings and can be used for automated scripting. tempreture.
ea is calculated using:
i.eb.soilheatflux \
albedo="L5162040_04020090518.1Albedo" \
ndvi="L5162040_04020090518.1NDVI" \ ea=RH*(e0Max+e0Min)/2))/100
tempk="L5162040_04020090518.toar.6" \
rnet="_GlIrrM1" time="time" output="_G0" RH is the measured relative humidity at the time of
satellite overpass.
The location (row and column) of the wet (cold) and
Sensible Heat Flux dry (hot) pixel must be found by the user. For wet
The Sensible heat flux (H) is calculated by pixel a place inside a water body and for dry pixel
"i.eb.h_SEBAL01", given both maps of Net Radia- a place inside a bare and dry soil surface is recom-
tion and soil Heat flux (Rn, G) at instantaneous time, mended (SEBAL method is geographically depen-
the surface roughness (z0m), a map of the altitude dent on extrem energy balance points).
corrected temperature (t0dem), a point data of the
13
GRASS-Tutorials Ver. 1, December 2010
Evaporative Fraction
Evapotranspiration
14
GRASS-Tutorials Ver. 1, December 2010
Unzipping the tarball compressed files Script for atmospheric correction by 6S method for
landsat 5 TM.
For Linux users in Terminal and for Windows users
in Dos prompt window should be written:
#!/bin/bash
for file in *.tar.gz
# Basic script for i.atcorr for L 5 TM
do
tar -xvzf \$file
#Geometrical conditions (L5TM)
done
geom=7
Control should be given to run the script in the #Sensor height (satellite is -1000)
same directory as the images are in. sens_height=-1000
15
GRASS-Tutorials Ver. 1, December 2010
16