Skip to content

Instantly share code, notes, and snippets.

View gbrunner's full-sized avatar

Gregory Brunner gbrunner

  • Esri
  • O'Fallon, MO
View GitHub Profile
@gbrunner
gbrunner / README.md
Last active July 12, 2019 17:18
Python Raster Function Enhancements

Python Raster Function Enhanacements

A GUI to setup a raster function

We need a GUI to configure the Python Raster Funciton. These initialization def __init__(self):, parameter definaition def getParameterInfo(self):, configuration setting def getConfiguration(self, **scalars):, and Raster Metadata Updating def updateRasterInfo(self, **kwargs): should not look as complicated as the following:

def __init__(self):
        self.name = "Compound Topographic Index"
        self.description = ("Computes the compound topographic index (CTI), also "
                            "known as the topographic wetness index (TWI).  "