You are on page 1of 4

FWCE 450 / 535: GIS Skills for Natural Resource Scientists

Fall, 2010

Lab 19: Vegetation Indices: Introducing the NDVI

11/04/10

The data you will use for this lab is Landsat Thematic Mapper imagery of the Del Norte are in southern Colorado. The
purpose of this lab is twofold. First you will be introduced to the difference in values of the Normalized Difference Vegetation Index (NDVI) that can result from using data that has not been calibrated (raw data). A very common mistake
made in computing the NDVI is to use the raw digital numbers recorded by the sensor. These values are not calibrated
for sensor gain and offset and the amount of radiation incident on the target (affected by solar zenith angle, distance of
the Sun from the Earth and topographic and atmospheric effects). For this lab, you have been given data that that not
calibrated (L5034034_03420050522.img) and that have been corrected for the effects of terrain, atmosphere, sensor
position and illumination conditions (L5034034_03420050522r.Img). For the second part of the lab, you will use the NDVI image computed from the reflectance data (NDVI_ref) to classify the image into 3 land cover classes.
1.

Download and unzip the data for lab 19 from Blackboard

2.

Create a new scratch folder in your lab_19 folder

3.

Open ArcMap and choose to Start using ArcMap with A New empty Map

4.

Add the two image files and the point shapefile to the map and change the band combinations so that Band 4 is
displayed with red, Band 3 is displayed with green and band 2 is displayed with blue.

5.

Switch between the two images and make a mental note of some of the differences between them.

6.

Now add the following individual bands from the image files:
L5034034_20050522.img - bands 3 and 4
L5034034_20050522r.img - bands 3 and 4

183

FWCE 450 / 535: GIS Skills for Natural Resource Scientists

Fall, 2010

What is the difference between an NDVI calculated with a raw image and a reflectance image?
1.

Open the Spatial Analyst Toolbar in ArcMap. From the View menu in ArcMap, select Toolbars, then Spatial
Analyst.

2.

Set your working directory in Spatial Analyst to the same directory where you stored the data for this lab. Choose
Options from the Spatial Analyst tool bar then enter your working directory in the field called working directory:

This will ensure that all your new rasters are


saved in the lab 19 directory

3.

Open the Raster Calculator (Spatial Analyst tool bar) and enter the following expression to calculate the NDVI from
the reflectance data (its quite tricky to get this right!)
NDVI_ref = float([l5034034_03420050522r.img - Band_4] - [l5034034_03420050522r.img - Band_3]) /
float([l5034034_03420050522r.img - Band_4] + [l5034034_03420050522r.img - Band_3])

4.

Then repeat the calculation for the raw data:


NDVI_raw = float([l5034034_03420050522.img - Band_4] - [l5034034_03420050522.img - Band_3]) /
float([l5034034_03420050522.img - Band_4] + [l5034034_03420050522.img - Band_3])

Including the float command is very important. The data in the images are integer. If you do not instruct the software
to treat the data as Float, then your calculation will result in an image that shows only 0s and 1s
When you have run these calculations correctly, you should have 2 NDVI images stored in your working directory:
NDVI_ref - calculated from the reflectance imagery
NDVI_raw calculated from the uncalibrated imagery.

It is difficult to figure out what the difference is between the NDVIs just by looking as these images. For this part of the
lab, you should address the question:

Does NDVI_raw over-estimate or under-estimate NDVI compared to NDVI_ref?


Over what kind of land covers does NDVI_raw over-estimate or under-estimate NDVI?

To answer this question, you will need to (i) calculate the difference between the NDVI images and then (ii) classify the
results into negative difference (1), insignificant difference (2) and positive difference (3)
184

FWCE 450 / 535: GIS Skills for Natural Resource Scientists

Fall, 2010

(i) calculate the difference between the NDVI images


Open the raster calculator and enter the following calculation:
NDVI_dif = [NDVI_ref] - [NDVI_raw]
Interpreting NDVI_dif
A high negative value will mean that The NDVI_raw file is giving a high NDVI value compared to the NDVI_ref - in
other words it is over-estimating NDVI values
A high positive value will mean that The NDVI_raw file is giving a high NDVI value compared to the NDVI_ref - in
other words it is over-estimating NDVI values.
Using just NDVI_dif is still difficult to figure out whether NDVI_raw is over-estimating or under-estimating NDVI compared to NDVI_ref. To help you answer this questions - reclassify the NDVI_dif image
(ii) Classify NDVI_dif into negative difference (1), insignificant difference (2) and positive difference (3)

Submission for part 1 of lab 19


Create a simple map of NDVI_difclass (for external elements, use legend, scale bar and North arrow and title).
Export map as a .jpeg and place it in a Word document.
(5 points)
Annotate the map with a short description of what you think the map is showing. (Refer to the question on page
184.)
(5 points )

185

FWCE 450 / 535: GIS Skills for Natural Resource Scientists

Fall, 2010

Using the NDVI to classify land cover in the Del Norte Basin
The Del Norte is one of the most productive snowsheds in the Upper Rio Grande (URG) basin. Around 50% of the surface
water supply in New Mexico comes from melting snowpack in the Del Norte and other snowsheds in the URG. We can
use remotely sensed imagery to help us determine snowpack extent, but mapping snow cover is complicated by forest
cover. It is difficult to map snow cover under trees. In this part of the lab you will examine the values of the NDVI for different land covers and you will determine how you might use the NDVI to classify the image into 3 classes:
Snow (1)
Trees and Snow (2)
Vegetation (whether it is trees, meadow, riparian, agricultural) (3)
1.

Open the attribute table for the samplepoints shapefile

2.

Examine the NDVI values for the different land cover classes. (These NDVI values were extracted from the
NDVI_ref layer.) Note: you should group the different types of vegetative land cover together to make a generic
vegetation class.

3.

Choose thresholds in the NDVI values that distinguish the three classes: Snow (1), Trees and Snow (2), Vegetation
(3)

4.

Now open Reclassify from the Spatial Analyst Toolbar

5.

Reclassify NDVI_ref to the 3 classes: Snow (1), Trees and Snow (2), Vegetation (3)

The image below is an example of how to set-up the reclassification - but DO NOT USE THE THRESHOLD VALUES given in
this example. You will lose 5 points if you copy the thresholds that I have used - they are deliberately incorrect! You
must determine the thresholds for yourself

Submission for part 2 of lab 19


Create a map of the land cover classes. Include legend, title, north arrow, scale bar. Use the legend - or create a
new text box - to show the NDVI thresholds you used to define the three land cover classes) (10 points)
Export the map as a .jpeg and add to the Word document.
Use the Blackboard Assignment tabs to submit the Word document containing the two jpegs and the answer to
the NDVI difference question
186

You might also like