def pysal_Moran(self, **kwargs):
        """
        Compute Moran's I measure of global spatial autocorrelation for GeoRaster

        Usage:
        geo.pysal_Moran(permutations = 1000, rook=True)

        arguments passed to raster_weights() and pysal.Moran
        See help(gr.raster_weights), help(pysal.Moran) for options
        """
        if self.weights is None:
            self.raster_weights(**kwargs)
        rasterf = self.raster.flatten()
        rasterf = rasterf[rasterf.mask==False]
        self.Moran = pysal.Moran(rasterf, self.weights, **kwargs)
def pysal_Moran ( self , ** kwargs ) : if self . weights is None : self . raster_weights ( ** kwargs ) rasterf = self . raster . flatten ( ) rasterf = rasterf [ rasterf . mask == False ] self . Moran = pysal . Moran ( rasterf , self . weights , ** kwargs )
Compute Moran's I measure of global spatial autocorrelation for GeoRaster

        Usage:
        geo.pysal_Moran(permutations = 1000, rook=True)

        arguments passed to raster_weights() and pysal.Moran
        See help(gr.raster_weights), help(pysal.Moran) for options