def raster_weights(self, **kwargs):
        """
        Compute neighbor weights for GeoRaster.
        See help(gr.raster_weights) for options

        Usage:
        geo.raster_weights(rook=True)
        """
        if self.weights is None:
            self.weights = raster_weights(self.raster, **kwargs)
        pass
def raster_weights ( self , ** kwargs ) : if self . weights is None : self . weights = raster_weights ( self . raster , ** kwargs ) pass
Compute neighbor weights for GeoRaster.
        See help(gr.raster_weights) for options

        Usage:
        geo.raster_weights(rook=True)