Time series

This module contains the TimeSeries class.

A TimeSeries object is a new kind of product, made from either L1, L2, or L3 products, and allowing one to build a time series:

  • Masks can be used to clip data.

  • Basic statistics can be calculated.

  • Generic plots can easily be made.

Example:

paths = [<first S2_ESA_L2A product>, <second S2_ESA_L2A product>, ...,
       <n-th S2_ESA_L2A product>]
mask_paths = [
    [<first water_mask>, <second water_mask>, ..., <n-th water_mask>],
    [<first mask2>
config = {
    'paths': paths,
    'product_type': 'S2_ESA_L2A',
    'requested_bands': ['B2', 'B3', 'B4', 'B5', 'B6'],
    'wkt': wkt,
    'srid': 4326,
}
S2L2A_ts = factory.create('TS', **config)
S2L2A_ts.compute_stats(<filename>)
S2L2A_ts.plot()

Constructing time series

TimeSeries objects can be constructed using:

Note

Using the low-level constructor involves that you must generate and correctly format the dataset you’ll be using.

TimeSeries(dataset)

A 'L4' product, made from either L1, L2, or L3 products.

Masking time series

mask_time_series(ts_algo, ts_masks, ...[, ...])

Masks time series of L3AlgoProducts.

Querying spatial features

sisppeo.utils.products.CoordinatesMixin()

A Mixin which adds extra properties and methods related to coordinates.