version
0.0.1
Defines the C++ API for MsPASS
|
Mute operator for "top" of signals defined first smaple forward. More...
#include <Taper.h>
Public Member Functions | |
TopMute () | |
TopMute (const double t0, const double t1, const std::string type) | |
Primary constructor driven by a named keyword. More... | |
TopMute (const TopMute &parent) | |
~TopMute () | |
TopMute & | operator= (const TopMute &parent) |
int | apply (mspass::seismic::TimeSeries &d) |
int | apply (mspass::seismic::Seismogram &d) |
double | get_t0 () const |
double | get_t1 () const |
std::string | taper_type () const |
Mute operator for "top" of signals defined first smaple forward.
A top mute is very commonly used in a many forms of seismic processing. It is, for example, a very low level operation in traditional seismic reflection processing. A top mute zeros the front (forward in time from first sample) of the signal and ramps up to a multiplier of 1 (does nothing) at some later time. It can also be thought of as a taper with only the low side altered. The implementation, in fact, uses the family of mspass taper operators internally the the high time range (tail) turned off.
The main constructor uses a string keyword to select the type of tapering applied to define the mute. Because of the relationship to mspass tapers there is also a constructor using the base class for Taper objects. It allows custom implementations of taper beyond those associated with keywords in the definition passed to the main constructor.
mspass::algorithms::TopMute::TopMute | ( | ) |
mspass::algorithms::TopMute::TopMute | ( | const double | t0, |
const double | t1, | ||
const std::string | type | ||
) |
Primary constructor driven by a named keyword.
This is the normal constructor most users will want to us. It is defined by a time range for the mute to ramp from 0 to 1 and a string matching one of the supported types. Note the mspass VectorTaper cannot be used for this constructor because it requires more than 2 arguments to be defined.
t0 | is the end of the zeroed time range. Date from the first sample to this value will be zeroed. |
t1 | end ramp. Data with t>t1 will be unaltered. |
type | defines the type of taper desired. Current options are 'linear' and 'cosine'. They enable the LinearTaper and CosineTaper opeators respectively. |
This | function will throw a MsPASSError if t1<=t0. |
mspass::algorithms::TopMute::TopMute | ( | const TopMute & | parent | ) |
mspass::algorithms::TopMute::~TopMute | ( | ) |
int mspass::algorithms::TopMute::apply | ( | mspass::seismic::Seismogram & | d | ) |
int mspass::algorithms::TopMute::apply | ( | mspass::seismic::TimeSeries & | d | ) |
|
inline |
|
inline |
string mspass::algorithms::TopMute::taper_type | ( | ) | const |
Return a string with a name describing the form of the taper - currently returns either linear or cosine