Masthead

Lab 3: Spectral Reflectance

Introduction

Landsat 8 Image

In this lab, we will explore the spectral signatures of various features using the Spectral Profile tool in ENVI. We will collect and compare spectral signatures of several different materials in a Landsat image.

We will view the Landsat scene in true color (also called natural color) and as a various false color composites. The first false color composite we will be using displays the near-infrared band (Band 5) in red, the red band (Band 4) in green and the green band (Band 3) is displayed in blue. This false color composite scheme allows for vegetation to be readily detected in the image. In this type of false color composite image, vegetation appears as different shades of red depending on the types and health of the vegetation, as it has a high reflectance in the NIR band. The second false color composite (seen to the left) shows the shortwave infrared (Band 6) in red, near-infrared band (Band 5) in green, the red band (Band 4) is displayed in blue. In this composite vegetation looks green, bare ground appears reddish and snow appears bright blue. Learn more about natural and false color composite images.

Learning Outcomes

About the Data

Landsat 8/9

Band # Band Name Wavelength
(micrometers)
Band 1 Coastal aerosol 0.43 - 0.45
Band 2 Blue 0.45 - 0.51
Band 3 Green 0.53 - 0.59
Band 4 Red 0.64 - 0.67
Band 5 Near Infrared (NIR) 0.85 - 0.88
Band 6 Shortwave Infrared (SWIR1) 1.57 - 1.65
Band 7 Shortwave Infrared (SWIR2) 2.11 - 2.29

Landsat 8 and 9 measure energy in different ranges of wavelengths along the electromagnetic spectrum. Each of these ranges in known as a band and both Landsat 8 and Landsat 9 each captured data in 11 bands. The first 7 of these bands are in the visible and infrared part of the spectrum and are commonly known as the "reflective bands" and are captured by the Operational Land Imager (OLI) on board Landsat 8/9. In addition to the 7 bands listed in the table to the right, there is also a panchromatic or black-and-white band (Band 8) and a cirrus cloud band (Band 9) that is used to detect cirrus clouds. Landsat 8/9 also has a Thermal Infrared Sensor (TIRS) which collects data in two thermal infrared bands. Read more about Landsat Bands

The specific data used in the lab is a Landsat 8 image of the central Sierra Nevada mountain range acquired June 10th 2024. This data has been calibrated corrected for atmospheric scattering so that the values represent surface reflectance. That means that a pixel value of 0.5 represents 50% reflectance and 1 would equate to 100% reflectance.

Setting up your Workspace

First we need to set up our workspace, transfer the data and open the Landsat image in ENVI.

  1. Create a folder on the desktop by following the below steps:
    1. Right click the Desktop, Click on New → Folder
    2. Name the folder “Lab_03”. Your folder should be located C:\Users\abc123\Desktop (abc123 will be your HSU user name)
    3. Within the Lab 3 folder, create two sub folders named:
      1. Originals
      2. Final
  2. Open up your favorite web browser, log into myHumboldt and navigate to your HSU Google Drive. Locate the Lab Data folder within the shared GSP 216 Remote Sensing folder. In the folder navigate to the Lab 3 Data folder, locate the file “Lab3_data.zip”. Right click on the file and select “Download”. Move the ZIP file from your Downloads folder to your Lab 3 Originals folder on your desktop. You can do this by dragging the file or by right clicking and copying and pasting the downloaded file into the folder.
  3. Right click on the ZIP file and select “Extract All”. Now the files have been uncompressed and are ready to view.
  4. Start “ENVI (6.0)” and open the raster file “Landsat06102024.dat” which should be located in your Lab_03 folder. You should now see the true color Landsat image featuring Lake Tahoe and the central Sierra Nevadas in your main viewer.

Reference Map, Navigations, Views and Data Manager

In ENVI by default the image window displays data layers in a single view. You can add up to 16 views containing different files. You can also link multiple image window views by geography so when you zoom or pan in one view the other views automatically follow. There is also the Overview option that shows a thumbnail of the raster and defines the extent currently shown in the view. Another useful tool is the Reference Map Link that opens up a new window with a base map that shows the geographic extent of the raster in the viewer. The Go To

  1. Now use the Reference Map link tool to orient yourself to the geographic area and terrain that this image covers. From the menu bar select View → Reference Map Link. This opens up a new window with a base map that shows the geographic extent of the raster in the viewer. Click the Switch Basemap drop-down list and select a different type of base map (image, topographic, streets, etc.). After you’re done exploring, you can close the basemap window.
  2. Another tool to help with navigation to specific locations is the "Go To" tool in the main toolbar. The tool allows your to "jump" to a specific location (based on geographic coordinates) in an image and centers the current image window view over that location. Enter the coordinates in the Go To field, using one of the acceptable entry formats and press enter. You can also copy and paste coordinates in to the "Go To" field. Use the Go To tools to check out some of the below coordinates. You may want to zoom into 100% before entering in coordinates in the Go To tool.

  3. Locations to Check Out:
    South Lake Tahoe: 38°56'29.70"N,120°0'34.64"W
    Caldor Fire Burn Scar: 38°46'29.35"N,120°12'12.81"W
    Agriculture near Minden, NV: 38°58'17.90"N,119°44'16.30"W

  4. Now that we have an idea of the geographic extent of our image, we will open a second view and display the image as a false color composite. Select Views → Create New View to open a new view in the image window.
  5. Click on the new view (either in the Layer Manager in the the view), it will show a light blue outline when selected as the active view. Open the file “Landsat06102024.dat” again, but this time when you open the file you will see the Data Manager menu. The Data Manager allows you to see all data that has been opened in ENVI and select the data and the bands that you want to display in the new view. If you have already opened an image in ENVI the data manager will pop-up if you try to open the same image again. To display the data you must either manually select the bands or right click to select default options (if available). Right click on the Landsat file and select "Load CIR". This will load a NIR false color composite of the Landsat image in the new view. In this composite, NIR reflectance is show in red on the screen, Red reflectance in green and Green reflectance in blue.

Linking Views and False Color Composites

  1. Using the Link View tool, you can link up to 16 views by geographic location so that all linked views will go to the same location at the same time when you pan/zoom around the image. From the main menu, select Views → Link Views. The Link Views dialog opens, showing thumbnails of each view.
  2. Make sure “Geo Link” is selected” and then click the “Link All” button. This links all open views. Click “OK”. Now when you zoom or pan in one view the other views automatically follow. This can be very helpful when looking at multiple data sets in a common geographic area.
  3. Now the two views are linked, when you move or zoom into one Landsat image, the view with the other will follow. Explore some of the image and the associated colors in the true and color infrared composite.
  4. Now we will add a third view, Views → Create New View. Make sure you have the new view selected by either clicking in the empty viewer or by clicking on the view in the Layer Manager. Click on the Data Manager icon Data Managerand you will see the Data Manager menu.
  5. In the Data Manager you will select what bands will be displayed in the three primary colors on the screen, in the order of Red, Green, Blue. Click the box on next to “SWIR1 (1.6081)”, it will turn red after it has been selected. Next click the box next to “NIR (0.8646)” and it should turn green and lastly click the box next to “Red (0.6543)”, then click the Load Data button.
  6. ENVI Data Manager Window
  7. This will display the same Landsat image as a false color composite, with shortwave infrared displayed in red, NIR displayed in green and Red displayed in blue. This is a common band combination that is useful for seeing changes in plant health and for discriminating between land cover types. Now link the new view with the other two views by repeating steps 9-10. Compare the three Landsat images. Make note of some of the colors in the false color composite for the different land cover types. This false color composite displays the Shortwave infrared 1(Band 6) in red, near-infrared band (Band 5) in green, the red band (Band 4) is displayed in blue. In this composite vegetation looks green, bare ground appears reddish and snow appears bright blue.
  8. You can also change the band combinations without loading new data by using the Dynamic Band Selection tool, which allows you easily change the RGB band combination for the selected raster in the view. The Dynamic Band Selection controls appear at the bottom of the Layer tab when a raster file is open.
  9. Dynamic Band Selection

  10. Navigate to the Layer tab in the lower right hand corner. This is where the band selection tool is located. Start by selecting different preset band combinations from the list, to do this, click the drop-down arrow next to the sliders inline. Try a few different preset composites.
  11. Now try selecting your own band combinations. To make your own band combinations, click and drag the slider bars for red, blue, and green to select the bands to use for each display color. Dynamic Slider
  12. Before moving on to the next step, take a screenshot or "Chip" both the natural color and one of the false color Landsat images. Click the click the "Zoom to full Extent" and take a screenshot or use the Chip to View and save the selected view as a JPG. Save your images in the Final folder, you will need these for your report.

Collecting Spectral Profiles

The Spectral Profile plots the spectral profile or spectral reflectance curve (of all bands) for the selected pixel. Wavelength in micrometers is displayed on the x-axis and the data value of the pixel on the y-axis. In this case the data value represents the percent reflectance from 0 to 100% for the pixel in each band (wavelength). The Landsat surface reflectance data viewed in this lab is represent by decimals. This means that a value of 1 indicates 100% reflectance at that particular wavelength and value of 0.5 would represent 50% reflectance.

Note: Occasionally there are reflectance values that are recorded as greater than 100%, one example is on the sun-lit sides of steep snow-covered mountain.

  1. Select either the true color or false color Landsat image to collect the spectral profiles on. It may be easier to distinguish different land cover features in the false color composite. Click the Spectral Profile icon on the toolbar or select Display → Profiles → Spectral Spectral Profile Iconfrom the menu bar. This opens the Spectral Profile window, by default it plots the spectral profile of the pixel in the center of the screen.
  2. Click and drag the cursor in the image window to see the spectral profile of that pixel. Notice how the profile changes as you click on different areas (clouds, water,snow, etc.). Spend sometime exploring the tool and spectral reflectance profiles of different land cover. You can use a combination of the Landsat images and the Reference Map Link with Satellite Imagery to use as a guide for selecting different features.
  3. Spectral Profile Plot
  4. Let's collect our first spectral profile by starting with a pixel of clear water. A recommended location is the center of Lake Tahoe..
  5. We will be collecting multiple profiles so we need to label each profile collected. Click the arrow on the right of the Spectral Profile window to show additional properties. The "General" tab allows you to change the font size, x and y-axis labels and other chart settings. The "Curve" tab allows you change the specific properties of each profile collected. Click the "Curve" tab, this displays the properties associated with each profile collected
  6. Click in the "Name" field and erase the current name and type "Clear Water" and press enter. In this tab you can also change the color, line style data markers and more. Don't spend too much time formatting, as we will be exporting the data as a text file and will use Excel to create graphs and tables based on the data.
  7. Now we will collect more spectral profiles for other land features. To add a new profile, press (and hold) the Shift key at the same time as you click a new pixel in the Image window. This will create a second profile. Then use the Select tool SElectto move the cursor around to select a pixel of the next land cover type (see below). If you click with out holding down the shift key you will lose your original curve. You can use the Pan toolPan tool to move around the image without selecting data, but you will need to switch back to the select tool to select the pixel. If you accidentally create profile(s), you can delete the profile by right clicking on the profile and selecting Remove Selected Curve. You can also right click on the a profile to "Go to" to sample pixel on the Landsat image. This is useful if you want to double check your sample location or re-label a profile.REmove, Go To selected CurveSpend some time getting used to using the spectral profile tool. Once you are comfortable with sampling points and labeling the curves, repeat the above steps for each of the below land cover types, making sure to update the name of each of the profiles after you collect the sample. You should have a total of 8 spectral profiles:
    1. Clear Water (done in previous step)
    2. Turbid/Algae (Cloudy) Water
    3. Clouds
    4. Forest
    5. Agriculture or Golf Course
    6. Bare ground/Rock
    7. Burned Area
    8. Snow
  8. When you have collected all of your profiles, right click on each of the profiles in the list and select "Go to". This will show you the sample pixel on the Landsat image associated with this spectral curve. Double check your spectral profiles and samples, re-label any profiles if necessary.

Formatting and Exporting Spectral Profile Plot & Data

  1. Enlarge or Maximize the spectral profile window so it's easier to view. Now we will add a legend to our plot. Select "Options" → "Legend" from the Spectral Profile menu bar. The legend should now appear in the profile plot. Review your legend and graph to make sure you have collected all of the necessary data and have properly labeled your curves. Note that your graph should have 8 profiles and the shape of the curves may differ from the example below.
  2. Spectral Profile Plot
  3. Now it's time to export the plot data so we can make a more appealing graph in Excel. Select "Export" → "ASCII" from the Spectral Profile menu bar. This will export the plot data as a text file. Save the text file file in your Lab 3 Final folder. Navigate to your folder on the desktop and find your text file and double click on it. It should open in Notepad by default, leave it open.
  4. For reference you can export your spectral profile plot as an image. Select "Export" → "Image" from the Spectral Profile menu bar. The default filename and format is envi_plot.png, you may want to rename it. Save the image in your Lab 3 Final folder. You may now close ENVI, make sure the profile data has been saved before closing the window, if not your work will be lost and you will have to start over!

Importing Data and Creating Graphs in Excel

  1. Open up Microsoft Excel and open a new blank workbook. Switch back to text file that is open in Notepad and copy the data as shown below. The first column is the wavelength (x axis) and the following columns are the reflectance for the different materials at each of the wavelengths.Data
  2. Paste the data into Excel. After pasting, a small clipboard icon will appear below your data. Click on it and select "Use Text Import Wizard".
  3. In the Import Text File window Step 1, set the Original data type to "Delimited" and click "Next".
  4. On Step 2, under "Delimiters" check and "Space" then click next. This will tell Excel that the data is separated by spaces, in the Data Preview you should see the data appear in separate columns. On step 3 simply click "Finish".
  5. Insert a row above your data by right click on Row 1 and selecting "Insert". Add column headings based on the text file. The first column is the wavelength and the remaining columns should be labeled as the corresponding land cover type (Water, clouds etc).
  6. Now we will create a graph from the data. Highlight all of the data (including header) and navigate to the Insert tab and click the small "See All Charts" arrow in the lower corner. Click All Charts → XY (Scatter) and select either the chart type "Scatter with Smooth Lines and Markers" or "Scatter with Straight Lines and Markers". Select the chart option where wavelength is shown on the x-axis (from 0-2.5 micrometer) and reflectance on the y-axis (from ~0-100), then select OK. The chart will appear in the spreadsheet.Selecting Charts in Excel
  7. Click the Add Chart Element icon in the top left hand corner and select "Axis Title" → Primary Horizontal. Repeat and select "Axis Title"→ Primary Vertical. You should now see labels on the axes. Update the axis labels, the Y-axis should read "Reflectance" and the X-Axis "Wavelength (micrometers)". Remove the title by clicking on it and hitting delete.
  8. Right click on the Y-axis and select "Format Axis". Change the bounds so that the minimum value is 0 and the maximum is 1 (a value of 1 = 100% reflectance). Repeat this process for the X-axis, changing the minimum to 0.4 and maximum to 2.21.
  9. Resize the chart (it should be at least 5-6 inches wide). Increase the font size of the axis labels and legend labels (recommend at least 12 point). You may want to change the location and format of the legend by right clicking on it and selecting "Format Legend".Example spectral profile graph
  10. If you would like to change the colors of the data lines, right click on the line you want to change and select "Format Data Series", this allows you to change the color and style of the lines. You can also use the Design tab to select different preset chart styles.
  11. Save your Excel spreadsheet in your Lab 3 Final folder. The easiest way to insert your graph into your final report is to simply copy and paste your graph into your document. You may want to open a Word document now and paste your graph into the document.
  12. You will also need to include the data table in your report. I recommend doing basic table formatting in Excel, for example shrinking the columns, and editing the column names. For all other formatting (lines, shading, font etc.) I recommend pasting the table into Word. Use the Table Design and Layout tools to change the style and formatting of your table. There are many default table styles that work well or are a good place to start. Keep the formatting simple and easy to read. Save your Word document in your Lab 3 Final Folder.
  13. Make sure to properly label your graphs and tables with an appropriate captions. Before leaving make sure you back-up your screen shots, spreadsheet and data onto your Google Drive or USB drive. The easiest way to-do this is to transfer your Lab 3 Finals folder, there is no need to back up your original data.

Lab Report (Upload to Canvas)

For this assignment you will be submitting a written report presenting and discussing the results of the spectral profiles. This assignment will focus on the results and discussion sections of a scientific report. Here are some resources

Colorado State University - Writing the Scientific Paper

Scitable by Nature - Scientific Papers

The Craft of Scientific Communication (eBook available free to HSU students)

Your report should include the following elements:





Contact Info

Humboldt State University
1 Harpst Street Arcata, CA 95521
skh28@humboldt.edu

© Copyright 2020 HSU - All rights reserved.