version
0.0.1
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
cxx
include
mspass
seismic
TimeSeries.h
1
#ifndef _TIMESERIES_H_
2
#define _TIMESERIES_H_
3
#include "mspass/seismic/CoreTimeSeries.h"
4
#include "mspass/utility/ErrorLogger.h"
5
#include "mspass/utility/ProcessingHistory.h"
6
namespace
mspass::seismic
{
13
class
TimeSeries
:
public
mspass::seismic::CoreTimeSeries
,
14
public
mspass::utility::ProcessingHistory
{
15
public
:
17
TimeSeries
()
18
: mspass::seismic::
CoreTimeSeries
(),
19
mspass::utility::
ProcessingHistory
() {};
36
TimeSeries
(
const
size_t
nsamples)
37
: mspass::seismic::
CoreTimeSeries
(nsamples),
38
mspass::utility::
ProcessingHistory
() {};
53
TimeSeries
(
const
BasicTimeSeries
&bts,
const
Metadata
&md)
54
: mspass::seismic::
CoreTimeSeries
(bts, md),
55
mspass::utility::
ProcessingHistory
() {};
78
TimeSeries
(
const
Metadata
&md);
79
95
TimeSeries
(
const
mspass::seismic::CoreTimeSeries
&d)
96
: mspass::seismic::
CoreTimeSeries
(d),
97
mspass::utility::
ProcessingHistory
() {};
115
TimeSeries
(
const
mspass::seismic::CoreTimeSeries
&d,
const
std::string alg);
126
TimeSeries
(
const
mspass::seismic::BasicTimeSeries
&b,
127
const
mspass::utility::Metadata
&m,
128
const
mspass::utility::ProcessingHistory
&mcts,
129
const
std::vector<double> &d);
131
TimeSeries
(
const
TimeSeries
&parent)
132
: mspass::seismic::
CoreTimeSeries
(parent),
133
mspass::utility::
ProcessingHistory
(parent) {};
135
TimeSeries
&
operator=
(
const
TimeSeries
&parent);
136
TimeSeries
&operator+=(
const
TimeSeries
&d) {
137
dynamic_cast<
CoreTimeSeries
&
>
(*this) +=
138
dynamic_cast<
const
CoreTimeSeries
&
>
(d);
139
return
(*
this
);
140
};
141
TimeSeries
&operator*=(
const
double
scale) {
142
dynamic_cast<
CoreTimeSeries
&
>
(*this) *= scale;
143
return
*
this
;
144
};
145
TimeSeries
&operator-=(
const
TimeSeries
&d) {
146
dynamic_cast<
CoreTimeSeries
&
>
(*this) -=
147
dynamic_cast<
const
CoreTimeSeries
&
>
(d);
148
return
(*
this
);
149
};
150
void
load_history(
const
mspass::utility::ProcessingHistory
&h);
160
size_t
memory_use
()
const
;
161
};
162
}
// namespace mspass::seismic
163
#endif
mspass::seismic::BasicTimeSeries
Base class for time series objects.
Definition
BasicTimeSeries.h:35
mspass::seismic::CoreTimeSeries
Scalar time series data object.
Definition
CoreTimeSeries.h:17
mspass::seismic::CoreTimeSeries::CoreTimeSeries
CoreTimeSeries()
Definition
CoreTimeSeries.cc:14
mspass::seismic::TimeSeries
Implemntation of TimeSeries for MsPASS.
Definition
TimeSeries.h:14
mspass::seismic::TimeSeries::TimeSeries
TimeSeries(const mspass::seismic::CoreTimeSeries &d)
Construct from lower level CoreTimeSeries.
Definition
TimeSeries.h:95
mspass::seismic::TimeSeries::memory_use
size_t memory_use() const
Definition
TimeSeries.cc:86
mspass::seismic::TimeSeries::TimeSeries
TimeSeries()
Definition
TimeSeries.h:17
mspass::seismic::TimeSeries::TimeSeries
TimeSeries(const TimeSeries &parent)
Definition
TimeSeries.h:131
mspass::seismic::TimeSeries::TimeSeries
TimeSeries(const size_t nsamples)
Definition
TimeSeries.h:36
mspass::seismic::TimeSeries::TimeSeries
TimeSeries(const mspass::seismic::BasicTimeSeries &b, const mspass::utility::Metadata &m, const mspass::utility::ProcessingHistory &mcts, const std::vector< double > &d)
mspass::seismic::TimeSeries::operator=
TimeSeries & operator=(const TimeSeries &parent)
Definition
TimeSeries.cc:76
mspass::seismic::TimeSeries::TimeSeries
TimeSeries(const BasicTimeSeries &bts, const Metadata &md)
Definition
TimeSeries.h:53
mspass::utility::Metadata
Definition
Metadata.h:71
mspass::utility::ProcessingHistory
Lightweight class to preserve procesing chain of atomic objects.
Definition
ProcessingHistory.h:226
mspass::seismic
Define metadata keys.
Definition
BasicSpectrum.h:6
Generated by
1.9.8