Exercise 3 – working with raster data and the API's geoprocessing functions

For this exercise, we'll have a look at the raster module. We'll work with raster data in the form of Landsat 8 satellite images and look at ways to describe the data and use geoprocessing functionality from ArcGIS Online. As always, we'll start with importing the arcgis package and gis module, this time using an anonymous login:

In: import arcgis    from arcgis.gis import GIS    from IPython.display import display    gis = GIS()

Next, we'll search for content—we'll specify that we're looking for imagery layers, the data type for imagery used for the raster module. We limit the results to a maximum of 2:

In: items = gis.content.search("Landsat 8 Views", item_type="Imagery ...

Get Mastering Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.