A class to hold time series data. In self.data['time'] has to be the
monotonically increasing times.
|
|
|
check(self)
Do integrity checks; should be invoked at the end of __init__ [NOT
IMPLEMENTED] |
source code
|
|
|
|
|
|
|
plot_ts(self,
var_name=None,
ax=None,
fmt=' - ' ,
**plot_kwargs)
Plots the time series data for var_name. |
source code
|
|
|
plot_date(self,
var_name=None,
ax=None,
fmt=' - ' ,
**plot_kwargs)
Plots the time series data for var_name with plt.plot_date. |
source code
|
|
|
time_filter_gauss(self,
field,
output_field,
time_window=0.021)
Filters the self.data[field] with a weighted moving average filter. |
source code
|
|
list of np.array
|
filter_and_resample(self,
field,
filter_window,
new_sample_int,
first_sample=None,
modify_instance=False)
Filters and resamples a time signal with a running average in a given
time intervall +/-filter_window/2. |
source code
|
|
|
|
|
get_ind_as_slice(self,
times)
This function takes two times and returns a slice object such that
the slice includes start and end time. |
source code
|
|
tuple
|
get_index_after(self,
time)
get_index_after(t) returns the index at t or immediatly after t and
the exact time corresponding to that index. |
source code
|
|
tuple
|
get_index_before(self,
time)
get_index_before(t) returns the index at t or immediately before t
and the exact time corresponding to that index. |
source code
|
|
tuple
|
|
|
|
|
integrate(self,
field,
start=None,
end=None)
Integrates the field from start time to end time by a trapezoidal
method. |
source code
|
|
Inherited from Data :
filter_by_freq ,
filter_low_pass ,
mask_if_true ,
mask_jumps ,
mask_jumps_one_dir ,
mask_value ,
pickle
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|