accessmod/layer.py
def unique(self) -> List[int]:
        """Get unique values in raster."""
        with self.fs.open(self.filepath) as f:
            with rasterio.open(f) as src:
                unique_values = list(np.unique(src.read(1)))
                unique_values = [v for v in unique_values if v != src.nodata]
        return unique_values
Get unique values in raster.
Get unique values in raster.
Get unique values in raster .
def unique(self) -> List[int]:
        with self.fs.open(self.filepath) as f:
            with rasterio.open(f) as src:
                unique_values = list(np.unique(src.read(1)))
                unique_values = [v for v in unique_values if v != src.nodata]
        return unique_values
def unique ( self ) -> List [ int ] : with self . fs . open ( self . filepath ) as f : with rasterio . open ( f ) as src : unique_values = list ( np . unique ( src . read ( 1 ) ) ) unique_values = [ v for v in unique_values if v != src . nodata ] return unique_values
Get unique values in raster.
Get unique values in raster .
"""Get unique values in raster."""
self