version  0.0.1
Defines the C++ API for MsPASS
TimeSeriesWGaps.h
1 #ifndef _MSPASS_SEISMIC_TSWGAPS_H_
2 #define _MSPASS_SEISMIC_TSWGAPS_H_
3 #include "mspass/seismic/TimeSeries.h"
4 #include "mspass/seismic/DataGap.h"
5 namespace mspass::seismic{
6 class TimeSeriesWGaps : public TimeSeries, public DataGap
7 {
8 public:
19  TimeSeriesWGaps(const TimeSeries& parent) : TimeSeries(parent),DataGap(){};
22  : TimeSeries(dynamic_cast<const TimeSeries&>(parent)),
23  DataGap(dynamic_cast<const DataGap&>(parent)){};;
24  TimeSeriesWGaps(const TimeSeries& tsp, const DataGap& dgp)
25  : TimeSeries(tsp), DataGap(dgp) {};
26  TimeSeriesWGaps& operator=(const TimeSeriesWGaps& parent);
27  virtual ~TimeSeriesWGaps(){};
39  void ator(const double tshift);
54  void rtoa(const double tshift);
66  void rtoa();
73  void shift(const double dt);
76  void zero_gaps();
86  size_t memory_use() const;
87 };
88 } //end mspass::seismic namespace
89 #endif //end guard
double dt() const
Definition: BasicTimeSeries.h:157
Definition: DataGap.h:25
Implemntation of TimeSeries for MsPASS.
Definition: TimeSeries.h:15
Definition: TimeSeriesWGaps.h:7
void zero_gaps()
Definition: TimeSeriesWGaps.cc:133
TimeSeriesWGaps(const TimeSeriesWGaps &parent)
Definition: TimeSeriesWGaps.h:21
size_t memory_use() const
Definition: TimeSeriesWGaps.cc:163
void shift(const double dt)
Definition: TimeSeriesWGaps.cc:113
void rtoa()
Definition: TimeSeriesWGaps.cc:74
TimeSeriesWGaps()
Constructor.
Definition: TimeSeriesWGaps.h:13
void ator(const double tshift)
Definition: TimeSeriesWGaps.cc:16
TimeSeriesWGaps(const TimeSeries &parent)
Definition: TimeSeriesWGaps.h:19
Define metadata keys.
Definition: BasicSpectrum.h:6