Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python for ArcGIS Pro

You're reading from   Python for ArcGIS Pro Automate cartography and data analysis using ArcPy, ArcGIS API for Python, Notebooks, and pandas

Arrow left icon
Product type Paperback
Published in Apr 2022
Publisher Packt
ISBN-13 9781803241661
Length 586 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
William Parker William Parker
Author Profile Icon William Parker
William Parker
Silas Toms Silas Toms
Author Profile Icon Silas Toms
Silas Toms
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Part I: Introduction to Python Modules for ArcGIS Pro
2. Introduction to Python for GIS FREE CHAPTER 3. Basics of ArcPy 4. ArcGIS API for Python 5. Part II: Applying Python Modules to Common GIS Tasks
6. The Data Access Module and Cursors 7. Publishing to ArcGIS Online 8. ArcToolbox Script Tools 9. Automated Map Production 10. Part III: Geospatial Data Analysis
11. Pandas, Data Frames, and Vector Data 12. Raster Analysis with Python 13. Geospatial Data Processing with NumPy 14. Part IV: Case Studies
15. Case Study: ArcGIS Online Administration and Data Management 16. Case Study: Advanced Map Automation 17. Case Study: Predicting Crop Yields 18. Other Books You May Enjoy
19. Index

Using arcgis.raster

ArcGIS API for Python (the arcgis module) also contains useful tools for raster layers and imagery layers. Used in combination with arcpy, it can allow you to store rasters or imagery in the cloud, pull down the rasters, perform analysis or a process on the rasters, and then put the rasters back into ArcGIS Online.

Much like arcpy, there are a ton of built-in functions for arcgis that enable you to interact with raster data. These functions allow you, for example, to get statistical properties of the raster such as mean or maximum or minimum cell value, or to perform mathematics on the cell values. Most of these functions are part of the raster subclass of arcgis and are available at arcgis.raster.functions.

Working with imagery layers

In this example, we will load an imagery layer from the web into a map and save it to disk.

You may carry on in the same Notebook as the previous section.

  1. The first step is to create a GIS object to access...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime