Timeseries

class eolab.georastertools.Timeseries(start_date: datetime, end_date: datetime, period: int, bands: List[int] = [1])[source]

Bases: Rastertool, Windowable

Raster tool that generates the time series of raster images. The timeseries is generated with a linear interpolation thus enabling to fill gaps.

Attributes

Timeseries.bands

List of bands to process

Timeseries.end_date

End date of the timeseries to generate

Timeseries.keep_vrt

Whether intermediate VRT images shall be kept

Timeseries.outputdir

Path of the output directory where are stored the results

Timeseries.pad_mode

//numpy.org/doc/stable/reference/generated/numpy.pad.html>`_ the image when the window is on the edge of the image The mode can be self defined or among [constant (default), edge, linear_ramp, maximum, mean, median, minimum, reflect, symmetric, wrap, empty].

Timeseries.period

Period (in days) of the timeseries to generate

Timeseries.start_date

Start date of the timeseries to generate

Timeseries.vrt_dir

Dir where to store intermediate VRT images

Timeseries.window_size

Size of the windows to split the image in small parts

Methods

Timeseries.__init__(start_date, end_date, period)

Constructor

Timeseries.postprocess_files(inputfiles, ...)

Generates the timeseries from a list of inputfiles.

Timeseries.process_file(inputfile)

Run the rastertool to a single input file.

Timeseries.process_files(inputfiles)

Run the rastertool to a set of input files.

Timeseries.with_output([outputdir])

Set up the output.

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

Timeseries.with_windows([window_size, pad_mode])

Configure the window generation for processing image