RasterProcessing

class eolab.georastertools.processing.rasterproc.RasterProcessing(name: str, algo: Callable | None = None, nodata: float | None = None, dtype: dtype | None = None, in_dtype: dtype | None = None, compress: str | None = None, nbits: int = False, per_band_algo: bool = False)[source]

Bases: object

Defines a processing algorithm for raster image data.

This class allows users to define custom processing operations on raster data by specifying an algorithm, data types, compression, and other parameters.

Attributes

RasterProcessing.algo

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

RasterProcessing.aliases

Aliases of the processing

RasterProcessing.arguments

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

RasterProcessing.compress

Set the compression to use

RasterProcessing.description

Long description of the processing

RasterProcessing.dtype

Type of the generated data

RasterProcessing.help

Help message of the processing

RasterProcessing.in_dtype

Type of the processed data

RasterProcessing.name

Name of the processing

RasterProcessing.nbits

Bits size of the generated data

RasterProcessing.nodata

No data value of the generated data

RasterProcessing.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

RasterProcessing.__init__(name[, algo, ...])

Constructor

RasterProcessing.compute(input_data)

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

RasterProcessing.configure(argsdict)

Configure the processing algo with its specific arguments' values

RasterProcessing.with_arguments(arguments)

Add new arguments that parametrize the processing algorithm.

RasterProcessing.with_documentation([...])

Set up the documentation for the processing