version  0.0.1
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
WaterLevelDecon.h
1#ifndef __SIMPLE_WATER_LEVEL_DECON_H__
2#define __SIMPLE_WATER_LEVEL_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:
16 this->wlv = 0.1;
17 this->regularization_fraction = 0.0;
18 };
19 WaterLevelDecon(const WaterLevelDecon &parent);
22 const std::vector<double> &wavelet,
23 const std::vector<double> &data);
24 void changeparameter(const mspass::utility::Metadata &md);
25 void process();
60 mspass::seismic::CoreTimeSeries inverse_wavelet(const double t0parent = 0.0);
72
73private:
74 int read_metadata(const mspass::utility::Metadata &md);
75 int apply();
76 double wlv;
77 /* QC metrics. */
78 /* This is the fraction of frequencies below the water level */
79 double regularization_fraction;
80 friend boost::serialization::access;
81 template <class Archive>
82 void serialize(Archive &ar, const unsigned int version) {
83 ar &boost::serialization::base_object<FFTDeconOperator>(*this);
84 ar &boost::serialization::base_object<ScalarDecon>(*this);
85 ar & wlv;
86 ar & regularization_fraction;
87 }
88};
89} // namespace mspass::algorithms::deconvolution
90#endif
Object to hold components needed in all fft based decon algorithms.
Definition FFTDeconOperator.h:20
Base class decon operator for single station 3C decon (receiver functions).
Definition ScalarDecon.h:29
mspass::seismic::CoreTimeSeries inverse_wavelet()
Return default FIR represesentation of the inverse filter.
Definition WaterLevelDecon.cc:179
mspass::utility::Metadata QCMetrics()
Return appropriate quality measures.
Definition WaterLevelDecon.cc:186
mspass::seismic::CoreTimeSeries actual_output()
Return the actual output of the deconvolution operator.
Definition WaterLevelDecon.cc:130
Scalar time series data object.
Definition CoreTimeSeries.h:17
Definition Metadata.h:71