Tour the World with Landsat Imagery and Raster Functions

This notebook provides links to interesting locations using different band combinations of Landsat 8 imagery. A general description is provided for each location. The maps are live and you can navigate to any other location of the World and see the same bands.

This notebook uses Landsat 8 imagery layer that is accessible from ArcGIS Online. The Landsat 8 imagery layer provides multiple scenes for every location and is updated with new scenes every day from USGS. The scenes can be used for both visualization and analysis. Typically, all locations are covered every 16 days.

Landsat imagery

ArcGIS Online provides multispectral landsat imagery layer, that we'll be using in this notebook. Let's connect to ArcGIS Online and query for the "Landsat Multispectral" imagery layer:

In [ ]:
from arcgis.gis import GIS
In [ ]:
from arcgis.raster.functions import *
In [ ]:
gis = GIS()
In [ ]:
landsat_item = gis.content.search('"Landsat Multispectral"', 'Imagery Layer')[0]
In [ ]:
landsat_item
Out[ ]:
Multispectral Landsat
Landsat 8 OLI, 30m Multispectral 8 band scenes with visual renderings and indices. Updated daily. Based on the Landsat on AWS collections.Imagery Layer by esri
Last Modified: December 07, 2016
0 comments, 70,741 views
In [ ]:
landsat = landsat_item.layers[0]

Raster processing

The examples below will be extracting a particular band combination from the landsat layer, and applying a 'Percent Clip' stretch to enhance the raster so it looks more vibrant. Here, we define a Python function that will first use the extract_band raster function to extract the specified band combination from the input raster, and then feed the output to the stretch raster function. This function will be used by each example below to display different points of interest around the world.

In [ ]:
def extract_stretch(bandids):
    return stretch(extract_band(landsat, bandids),
                   stretch_type='PercentClip',
                   min_percent=2, 
                   max_percent=2,
                   dra=True, 
                   gamma=[0.8,0.8,0.8])

Cambridge Gulf, Australia

Cambridge Gulf is on an isolated stretch of the north coast of Western Australia. Mangroves thrive in this region that experiences wide tidal flows of 23-30 feet.

Green vegetation appears green in this band combination. The blue band is set to the blue channel here, so the water appears blue. There is a lot of sediment in the water, which can be seen here.

In [ ]:
from arcgis.geocoding import geocode
area = geocode('Cambridge Gulf')[0]
In [ ]:
m = gis.map(area, 10)
m

m

In [ ]:
m.add_layer(extract_stretch([5, 4, 1]))

Eye of the Sahara, Mauritania

The Richat Structure of central Mauritania is also known as the Eye of the Sahara. It is a prominent geologic feature in the Sahara Desert, likely an eroded dome. Since this image is largely devoid of vegetation, bands are used to emphasize the geologic structure. These particular bands are not always used for geology, site specific minerals and characteristics may call for a different combination.

In [ ]:
m2 = gis.map("Guelb Er Richat", 11)
m2

m2

In [ ]:
m2.add_layer(extract_stretch([6, 3, 1]))

Gosses Bluff, Australia

In this map, the circular ring of hills is part of a unique and spectacular geological structure known as Gosses Bluff. Gosses Bluff was formed some 142 million years ago due to the impact of an asteroid or comet up to 1.2 miles (2 kilometers) in diameter. The central ring of hills is approximately 3 miles (5 kilometers) in diameter and rises 200 meters above the plain. It is surrounded by a circular drainage system 15 miles (24 kilometers) in diameter that marks the outer ring of the crater. Gosses Bluff has been the subject of intensive geological and geophysical scientific study and is deeply significant to the Western Arrernte Aboriginal people who own the Tnorala Conservation Reserve that contains the crater.

In [ ]:
m3 = gis.map("Gosses Bluff", 10)
m3

m3

In [ ]:
m3.add_layer(extract_stretch([6, 3, 0]))

Exumas, Bahamas

The Exumas are an archipelago of 365 cays and islands, beginning just 35 miles southeast of Nassau. In clear water, Landsat sensors can penetrate nearly 100 feet (30m).

The water is so clear and shallow in this area that underwater features are easily distinguished. Green vegetation appears red.

In [ ]:
m4 = gis.map("Great Exumas, Bahamas", 11)
m4

m4

In [ ]:
m4.add_layer(extract_stretch([5, 3, 0]))

Mexico City, Mexico

Mexico City, the capital city of Mexico, is situated on a highland plateau that is 1.5 miles above sea level (7,350 feet). The greater Mexico City area is home to over 21 million people.

Short-wave Infrared with DRA (7,6,4): This band combination is used so that green vegetation appears green in the image.

In [ ]:
m5 = gis.map("Mexico City", 10)
m5

m5

In [ ]:
m5.add_layer(extract_stretch([6, 5, 3]))

Central Saudi Arabia

Center-pivot irrigation agriculture in Saudi Arabia is used to grow crops such as wheat. The irrigation systems extend beyond the image areas throughout the Buradah-Riyadh region of Saudi Arabia.

Agriculture with DRA (6,5,2): Green vegetation appears green in this band combination.

In [ ]:
m6 = gis.map("Ash Simasiyah, Saudi Arabia", 12)
m6

m6

In [ ]:
m6.add_layer(extract_stretch([5, 4, 1]))

Feedback on this topic?