|
MsPASS C++ API
2.4.1.dev4+g92330b7a
Defines the C++ API for MsPASS
|
Taper front and/or end of a time seris with a half cosine function. More...
#include <Taper.h>


Public Member Functions | |
| CosineTaper (const double t0head, const double t1head, const double t1tail, const double t0tail) | |
| primary constructor. | |
| int | apply (mspass::seismic::TimeSeries &d) |
| int | apply (mspass::seismic::Seismogram &d) |
| double | get_t0head () const |
| double | get_t1head () const |
| double | get_t0tail () const |
| double | get_t1tail () const |
Public Member Functions inherited from mspass::algorithms::BasicTaper | |
| BasicTaper () | |
| virtual | ~BasicTaper () |
| void | enable_head () |
| void | disable_head () |
| void | enable_tail () |
| void | disable_tail () |
| bool | head_is_enabled () |
| bool | tail_is_enable () |
Friends | |
| class | boost::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from mspass::algorithms::BasicTaper | |
| bool | head |
| bool | tail |
| bool | all |
Taper front and/or end of a time seris with a half cosine function.
A sine taper is a common, simple approach to taper data. When applied at the front it defnes a half cycle of a cosine curve +1.0 in range -pi to 0. On the right it defines the same function for the range 0 to pi. The period of the left and right operator can be different. Turn off left or right by giving illegal start and end points and the operator will silently be only one sided.
| mspass::algorithms::CosineTaper::CosineTaper | ( | ) |
| mspass::algorithms::CosineTaper::CosineTaper | ( | const double | t0head, |
| const double | t1head, | ||
| const double | t1tail, | ||
| const double | t0tail | ||
| ) |
primary constructor.
Defines half-cycle sine taper for front and/or back end of a time range. Zero times before t0head and after t0tail. Taper between t0head and t1head and in opposite sense from t1tail to t0tail.
References mspass::algorithms::BasicTaper::all, mspass::algorithms::BasicTaper::head, and mspass::algorithms::BasicTaper::tail.
|
virtual |
Apply the cosine taper to a three-component Seismogram.
Implements mspass::algorithms::BasicTaper.
References mspass::seismic::BasicTimeSeries::dt(), mspass::utility::ProcessingHistory::elog, mspass::seismic::CoreSeismogram::endtime(), mspass::algorithms::BasicTaper::head, mspass::utility::ErrorLogger::log_error(), mspass::seismic::BasicTimeSeries::npts(), mspass::seismic::BasicTimeSeries::sample_number(), mspass::seismic::BasicTimeSeries::t0(), mspass::algorithms::BasicTaper::tail, and mspass::seismic::CoreSeismogram::u.
|
virtual |
Apply the cosine taper to a scalar TimeSeries.
Implements mspass::algorithms::BasicTaper.
References mspass::seismic::BasicTimeSeries::dt(), mspass::utility::ProcessingHistory::elog, mspass::seismic::BasicTimeSeries::endtime(), mspass::algorithms::BasicTaper::head, mspass::utility::ErrorLogger::log_error(), mspass::seismic::BasicTimeSeries::npts(), mspass::seismic::CoreTimeSeries::s, mspass::seismic::BasicTimeSeries::sample_number(), mspass::seismic::BasicTimeSeries::t0(), and mspass::algorithms::BasicTaper::tail.
|
inlinevirtual |
Return the start time of the head taper.
Implements mspass::algorithms::BasicTaper.
|
inline |
Return the zero-weight end time of the tail taper.
|
inlinevirtual |
Return the end time of the head taper.
Implements mspass::algorithms::BasicTaper.
|
inline |
Return the one-weight start time of the tail taper.