version  0.0.1
Defines the C++ API for MsPASS
Seismogram.h
1 #ifndef _SEISMOGRAM_H_
2 #define _SEISMOGRAM_H_
3 #include "mspass/seismic/CoreSeismogram.h"
4 #include "mspass/utility/ProcessingHistory.h"
5 #include "mspass/utility/ErrorLogger.h"
6 
7 namespace mspass::seismic{
15 {
16 public:
18  Seismogram() : mspass::seismic::CoreSeismogram(),mspass::utility::ProcessingHistory(){};
37  Seismogram(const size_t nsamples);
70  Seismogram(const mspass::seismic::CoreSeismogram& d, const std::string alg);
83  const mspass::utility::Metadata& md);
84 
85 
106  const bool card, const bool ortho,
107  const mspass::utility::dmatrix& tm, const mspass::utility::dmatrix& uin);
127  Seismogram(const Metadata& md,const std::string jobname=std::string("test"),
128  const std::string jobid=std::string("UNDEFINED"),
129  const std::string readername=std::string("load3C"),
130  const std::string algid=std::string("0"));
131 
167  Seismogram(const Metadata& md, bool load_data)
168  : mspass::seismic::CoreSeismogram(md,load_data), mspass::utility::ProcessingHistory()
169  {};
171  Seismogram(const Seismogram& parent)
172  : mspass::seismic::CoreSeismogram(parent), mspass::utility::ProcessingHistory(parent)
173  {};
174  virtual ~Seismogram(){};
176  Seismogram& operator=(const Seismogram& parent);
195  size_t memory_use() const;
196 };
197 }//END mspass::seismic namespace
198 #endif
Base class for time series objects.
Definition: BasicTimeSeries.h:35
Vector (three-component) seismogram data object.
Definition: CoreSeismogram.h:40
Implemntation of Seismogram for MsPASS.
Definition: Seismogram.h:15
Seismogram(const Seismogram &parent)
Definition: Seismogram.h:171
Seismogram()
Definition: Seismogram.h:18
Seismogram & operator=(const Seismogram &parent)
Definition: Seismogram.cc:115
void load_history(const mspass::utility::ProcessingHistory &h)
Load just the ProcessingHistory data from another data source.
Definition: Seismogram.cc:124
size_t memory_use() const
Definition: Seismogram.cc:128
Seismogram(const Metadata &md, const std::string jobname=std::string("test"), const std::string jobid=std::string("UNDEFINED"), const std::string readername=std::string("load3C"), const std::string algid=std::string("0"))
Seismogram(const mspass::seismic::CoreSeismogram &d, const std::string alg)
Seismogram(const Metadata &md, bool load_data)
Construct from Metadata definition that includes data path.
Definition: Seismogram.h:167
Definition: Metadata.h:76
Lightweight class to preserve procesing chain of atomic objects.
Definition: ProcessingHistory.h:258
Lightweight, simple matrix object.
Definition: dmatrix.h:102
Define metadata keys.
Definition: BasicSpectrum.h:6