1 #ifndef _MSPASS_CORETIMESERIES_H_
2 #define _MSPASS_CORETIMESERIES_H_
4 #include "mspass/seismic/BasicTimeSeries.h"
5 #include "mspass/utility/Metadata.h"
72 void set_dt(
const double sample_interval);
118 void set_t0(
const double t0in);
Base class for time series objects.
Definition: BasicTimeSeries.h:35
size_t npts() const
Definition: BasicTimeSeries.h:183
Scalar time series data object.
Definition: CoreTimeSeries.h:18
CoreTimeSeries()
Definition: CoreTimeSeries.cc:15
CoreTimeSeries & operator=(const CoreTimeSeries &parent)
Definition: CoreTimeSeries.cc:66
const CoreTimeSeries operator+(const CoreTimeSeries &other) const
Definition: CoreTimeSeries.cc:168
const CoreTimeSeries operator-(const CoreTimeSeries &other) const
Definition: CoreTimeSeries.cc:174
double operator[](size_t const sample) const
Definition: CoreTimeSeries.cc:271
void set_dt(const double sample_interval)
Set the sample interval.
Definition: CoreTimeSeries.cc:185
CoreTimeSeries & operator*=(const double)
Definition: CoreTimeSeries.cc:180
CoreTimeSeries & operator+=(const CoreTimeSeries &d)
Summation operator.
Definition: CoreTimeSeries.cc:78
std::vector< double > s
Definition: CoreTimeSeries.h:28
void sync_npts()
Sync the number of samples attribute with actual data size.
Definition: CoreTimeSeries.cc:248
void set_npts(const size_t npts)
Set the number of samples attribute for data.
Definition: CoreTimeSeries.cc:222
void set_t0(const double t0in)
Set the data start time.
Definition: CoreTimeSeries.cc:203
CoreTimeSeries & operator-=(const CoreTimeSeries &d)
Subtraction operator.
Definition: CoreTimeSeries.cc:125
Define metadata keys.
Definition: BasicSpectrum.h:6