|
MsPASS C++ API
2.4.1.dev4+g92330b7a
Defines the C++ API for MsPASS
|

Public Member Functions | |
| SegmentVectorProperties () | |
| SegmentVectorProperties (const std::vector< TimeSeries > &segments) | |
| SegmentVectorProperties (const SegmentVectorProperties &parent) | |
Public Attributes | |
| bool | dt_constant |
| bool | has_dead_components |
| bool | is_sorted |
| bool | has_overlaps |
| bool | has_gaps |
| int | number_live |
| int | first_live |
| double | t0 |
| double | endtime |
| double | dt |
| size_t | spliced_nsamp |
| ErrorLogger | elog |
File scope class to enscapsulate set of possible data problems.
Merging multiple data segments to a single time series, which is a common need with continous data, is prone to a number of practical problems. Clock issues and the design of modern digitizers can cause a mismatch in time computed by dt*nsamp and data time tags with formats like miniseed. This can create apparent gaps or overlaps. This class is intended to be used to scan a vector of time-sorted segment to flag issues that need to be handled downstream in algorithms later in this file. Issues it addresses at present are:
All attributes of this class are intentionally public as it should be thought of as a struct with convenient constructors.
| mspass::algorithms::SegmentVectorProperties::SegmentVectorProperties | ( | ) |
Construct an empty property set with conservative defaults.
References dt, dt_constant, endtime, first_live, has_dead_components, has_gaps, has_overlaps, is_sorted, number_live, spliced_nsamp, and t0.
| mspass::algorithms::SegmentVectorProperties::SegmentVectorProperties | ( | const std::vector< TimeSeries > & | segments | ) |
Scan a vector of segments and summarize ordering, gaps, overlaps, and size.
| segments | input segments to inspect before splicing. |
References dt, dt_constant, endtime, first_live, has_dead_components, has_gaps, has_overlaps, is_sorted, number_live, spliced_nsamp, and t0.
| mspass::algorithms::SegmentVectorProperties::SegmentVectorProperties | ( | const SegmentVectorProperties & | parent | ) |
Standard copy constructor.
| parent | property set to copy. |
References dt, dt_constant, endtime, first_live, has_dead_components, has_gaps, has_overlaps, is_sorted, number_live, spliced_nsamp, and t0.
| double mspass::algorithms::SegmentVectorProperties::dt |
Sample interval used for the spliced output when dt is constant.
| bool mspass::algorithms::SegmentVectorProperties::dt_constant |
True when all live segments have the same sample interval.
| ErrorLogger mspass::algorithms::SegmentVectorProperties::elog |
Messages formed while scanning input segments for downstream logging.
| double mspass::algorithms::SegmentVectorProperties::endtime |
Latest end time of the live segments.
| int mspass::algorithms::SegmentVectorProperties::first_live |
Index of the first live segment, or -1 when none are live.
| bool mspass::algorithms::SegmentVectorProperties::has_dead_components |
True when at least one input segment is marked dead.
| bool mspass::algorithms::SegmentVectorProperties::has_gaps |
True when adjacent live segments have a gap beyond the time-tear tolerance.
| bool mspass::algorithms::SegmentVectorProperties::has_overlaps |
True when adjacent live segments overlap beyond the time-tear tolerance.
| bool mspass::algorithms::SegmentVectorProperties::is_sorted |
True when live input segments are ordered by increasing start time.
| int mspass::algorithms::SegmentVectorProperties::number_live |
Number of live segments found in the input vector.
| size_t mspass::algorithms::SegmentVectorProperties::spliced_nsamp |
Number of samples needed to hold the spliced output.
| double mspass::algorithms::SegmentVectorProperties::t0 |
Earliest start time of the live segments.