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:
the top-level function
sisppeo.generate()
;the three methods
TimeSeries.from_file()
,TimeSeries.from_files()
, andTimeSeries.from_l3products()
;the low-level
TimeSeries
constructor.
Note
Using the low-level constructor involves that you must generate and correctly format the dataset you’ll be using.
|
A 'L4' product, made from either L1, L2, or L3 products. |
Masking time series¶
|
Masks time series of L3AlgoProducts. |
Querying spatial features¶
A Mixin which adds extra properties and methods related to coordinates. |