version  0.0.1
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
LeastSquareDecon.h
1#ifndef __SIMPLE_LEAST_SQUARE_DECON_H__
2#define __SIMPLE_LEAST_SQUARE_DECON_H__
3#include "mspass/algorithms/deconvolution/FFTDeconOperator.h"
4#include "mspass/algorithms/deconvolution/ScalarDecon.h"
5#include "mspass/algorithms/deconvolution/ShapingWavelet.h"
6#include "mspass/seismic/CoreTimeSeries.h"
7#include "mspass/utility/Metadata.h"
8#include <boost/archive/text_iarchive.hpp>
9#include <boost/archive/text_oarchive.hpp>
10#include <boost/serialization/base_object.hpp>
11#include <vector>
12namespace mspass::algorithms::deconvolution {
14public:
15 LeastSquareDecon() : FFTDeconOperator(), ScalarDecon() { damp = 1.0; };
19 const std::vector<double> &wavelet,
20 const std::vector<double> &data);
21 void changeparameter(const mspass::utility::Metadata &md);
22 void process();
55 mspass::seismic::CoreTimeSeries inverse_wavelet(const double t0parent = 0.0);
67
68private:
69 int read_metadata(const mspass::utility::Metadata &md);
70 int apply();
71 double damp;
72 friend boost::serialization::access;
73 template <class Archive>
74 void serialize(Archive &ar, const unsigned int version) {
75 ar &boost::serialization::base_object<FFTDeconOperator>(*this);
76 ar &boost::serialization::base_object<ScalarDecon>(*this);
77 ar & damp;
78 }
79};
80} // namespace mspass::algorithms::deconvolution
81#endif
Object to hold components needed in all fft based decon algorithms.
Definition FFTDeconOperator.h:20
mspass::seismic::CoreTimeSeries inverse_wavelet()
Return default FIR represesentation of the inverse filter.
Definition LeastSquareDecon.cc:171
mspass::utility::Metadata QCMetrics()
Return appropriate quality measures.
Definition LeastSquareDecon.cc:178
mspass::seismic::CoreTimeSeries actual_output()
Return the actual output of the deconvolution operator.
Definition LeastSquareDecon.cc:121
Base class decon operator for single station 3C decon (receiver functions).
Definition ScalarDecon.h:29
Scalar time series data object.
Definition CoreTimeSeries.h:17
Definition Metadata.h:71