There are many useful tools in the ArcPy library, particularly the Spatial Analyst tools, which could be deployed as Python Raster Functions for use in a mosaic or image function chain. There is some documentation on GitHub on how to construct a Python Raster Function but there is nothing on how to integrate any of the arcpy.sa functionality into a new function. Having this capability allows the user to create, for example, a mosaic of a terrain derivative based on a complex function using calls to the arcpy.sa libraries. Having "cookbook" documentation explaining the steps would be very useful.
David,
Have you reviewed the help and documentation here: GitHub - Esri/raster-functions: A curated set of lightweight but powerful tools for on-the-fly image... ?
Yes I have. That is how I got started on Python Raster Functions. There is one function I eventually found (after much searching all over the GitHub site as well as other google queries) in, utils.py, which integrated the arcpy library.
====================================
David Hildebrand, M.Sc.
780-427-3558 (office)
310-0000 (toll free in Alberta)
780-915-2364 (mobile)
Resource Information Management Specialist
Environmental Stewardship Branch
Alberta Agriculture and Forestry
I re-reviewed the git-hub documentation on Python Raster Functions and was finally able to understand it and figure out what may be going on “under the hood”. Nevertheless, it would be nice to have that background made explicit and have a “cookbook” with different types of examples, including integrating with Spatial Analyst tools or other extensions.
I
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.