TimeSeries

TimeSeries(self, data)

Time series data

Attributes

Name Description
gtype Geometry type
n_points Number of data points
name Name of time series (value item name)
plot Plot using the ComparerPlotter
quantity Quantity of time series
time Time index
values Values as numpy array
x x-coordinate
y y-coordinate

Methods

Name Description
equals Check if two TimeSeries are equal
sel Select data by label
to_dataframe Convert matched data to pandas DataFrame
trim Trim observation data to a given time interval

equals

TimeSeries.equals(other)

Check if two TimeSeries are equal

sel

TimeSeries.sel(**kwargs)

Select data by label

to_dataframe

TimeSeries.to_dataframe()

Convert matched data to pandas DataFrame

Include x, y coordinates only if gtype=track

Returns

Name Type Description
pd.DataFrame data as a pandas DataFrame

trim

TimeSeries.trim(start_time=None, end_time=None, buffer='1s')

Trim observation data to a given time interval

Parameters

Name Type Description Default
start_time pd.Timestamp start time None
end_time pd.Timestamp end time None
buffer str buffer time around start and end time, by default “1s” '1s'