RasterFilter

class eolab.georastertools.processing.rasterproc.RasterFilter(name: str, algo: ~typing.Callable | None = None, nodata: float = -2.0, dtype: ~numpy.dtype = <class 'numpy.float32'>, per_band_algo: bool = False)[source]

Bases: RasterProcessing

Class that defines a raster processing for applying a filter on a kernel (square of configurable size).

Attributes

RasterFilter.algo

Process an algo that is called on a multidimensional array of data

RasterFilter.aliases

Aliases of the processing

RasterFilter.arguments

Definition of Arguments that parametrize the processing algorithm (see with_arguments for the description of the data structure)

RasterFilter.compress

Set the compression to use

RasterFilter.description

Long description of the processing

RasterFilter.dtype

Type of the generated data

RasterFilter.help

Help message of the processing

RasterFilter.in_dtype

Type of the processed data

RasterFilter.name

Name of the processing

RasterFilter.nbits

Bits size of the generated data

RasterFilter.nodata

No data value of the generated data

RasterFilter.per_band_algo

Whether the algo is applied on a dataset that contains only one band (per_band_algo=True) or on a dataset with all bands (per_band_algo=False)

Methods

RasterFilter.__init__(name[, algo, nodata, ...])

Constructor.

RasterFilter.compute(input_data)

Compute the output from the different bands of the input data.

RasterFilter.configure(argsdict)

Configure the processing algo with its specific arguments' values

RasterFilter.with_arguments(arguments)

Add new arguments that parametrize the processing algorithm.

RasterFilter.with_documentation([aliases, ...])

Set up the documentation for the processing