Skip to content

Adding TimeSeries class

Artem Basalaev requested to merge add_time_series_class into main

Adding TimeSeries class that holds time series data. Time series by default are held in pandas::DataFrame with index corresponding to the channel. In the specific case of seismic time series, there's a child class SeismicTimeSeries and the data is held in ObsPy's stream object, which allows to use all ObsPy methods on it. It can be still converted to common pandas::DataFrame format, and it is converted internally for instance to calculate (L)PSD.

Bug fixed with pandas::DataFrame format time series: in this case, index or time counts are relative time, i.e. starts from zero. When files are stitched together, this index started from zero once again, now it starts from the last value of the previous file plus one period.

Edited by Artem Basalaev

Merge request reports

Loading