<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pysal_Moran_Local(self, **kwargs):
 """ Compute Local Moran's I measure of local spatial autocorrelation for GeoRaster Usage: geo.pysal_Moran_Local(permutations = 1000, rook=True) arguments passed to raster_weights() and pysal.Moran_Local See help(gr.raster_weights), help(pysal.Moran_Local) for options """

        if self.weights is None:
            self.raster_weights(**kwargs)
        rasterf = self.raster.flatten()
        rasterf = rasterf[rasterf.mask==False]
        self.Moran_Local = pysal.Moran_Local(rasterf, self.weights, **kwargs)
        for i in self.Moran_Local.__dict__.keys():
            if (isinstance(getattr(self.Moran_Local, i), np.ma.masked_array) or
                (isinstance(getattr(self.Moran_Local, i), np.ndarray)) and
                 len(getattr(self.Moran_Local, i).shape) == 1):
                setattr(self.Moran_Local, i, self.map_vector(getattr(self.Moran_Local, i)))