Rastertool

class eolab.georastertools.Rastertool[source]

Bases: ABC

Base class for every raster tool which contains the common configuration:

  • the output dir where to store the results (by default, current dir)

  • whether to save to disk the intermediate VRT images that can be created when handling the input raster products (that can be an archive of several band files for example). This parameter is mainly for debug purpose and is False by default.

Attributes

Rastertool.keep_vrt

Whether intermediate VRT images shall be kept

Rastertool.outputdir

Path of the output directory where are stored the results

Rastertool.vrt_dir

Dir where to store intermediate VRT images

Methods

Rastertool.__init__()

Constructor

Rastertool.postprocess_files(inputfiles, ...)

Run a postprocess when all input files have been processed.

Rastertool.process_file(inputfile)

Run the rastertool to a single input file.

Rastertool.process_files(inputfiles)

Run the rastertool to a set of input files.

Rastertool.with_output([outputdir])

Set up the output.

Rastertool.with_vrt_stored(keep_vrt)

Configure if the intermediate VRT images that are generated when handling the input files (which can be complex raster product composed of several band files) shall be stored to disk or not - for debug purpose for instance.