|
MsPASS C++ API
2.4.1.dev4+g92330b7a
Defines the C++ API for MsPASS
|
#include <Taper.h>


Public Member Functions | |
| VectorTaper (const std::vector< double > taperdata) | |
| int | apply (mspass::seismic::TimeSeries &d) |
| int | apply (mspass::seismic::Seismogram &d) |
| void | disable () |
| void | enable () |
| std::vector< double > | get_taper () |
| double | get_t0head () const |
| double | get_t1head () 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 |
General taper.
This method provides a simple way to build a taper from a set of uniformly spaced points. The apply methods will dogmatically only accept input data of the same length as the taper defined in the operator.
| mspass::algorithms::VectorTaper::VectorTaper | ( | ) |
| mspass::algorithms::VectorTaper::VectorTaper | ( | const std::vector< double > | taperdata | ) |
Construct from a vector of taper weights.
References mspass::algorithms::BasicTaper::all, mspass::algorithms::BasicTaper::head, and mspass::algorithms::BasicTaper::tail.
|
virtual |
Apply the vector taper to a three-component Seismogram.
Implements mspass::algorithms::BasicTaper.
References mspass::algorithms::BasicTaper::all, mspass::utility::ProcessingHistory::elog, mspass::utility::ErrorLogger::log_error(), mspass::seismic::BasicTimeSeries::npts(), and mspass::seismic::CoreSeismogram::u.
|
virtual |
Apply the vector taper to a scalar TimeSeries.
Implements mspass::algorithms::BasicTaper.
References mspass::algorithms::BasicTaper::all, mspass::utility::ProcessingHistory::elog, mspass::utility::ErrorLogger::log_error(), mspass::seismic::BasicTimeSeries::npts(), and mspass::seismic::CoreTimeSeries::s.
|
inline |
|
inline |
Enable this vector taper when weights are available.
References mspass::algorithms::BasicTaper::all.
|
inlinevirtual |
Vector tapers do not define a head start time.
Implements mspass::algorithms::BasicTaper.
|
inlinevirtual |
Vector tapers do not define a head end time.
Implements mspass::algorithms::BasicTaper.
|
inline |
Return a copy of the taper weights.