def raster_weights(self, **kwargs):
if self.weights is None:<EOL><INDENT>self.weights = raster_weights(self.raster, **kwargs)<EOL><DEDENT>pass<EOL>
Compute neighbor weights for GeoRaster.
See help(gr.raster_weights) for options

Usage:
geo.raster_weights(rook=True)