pyrocko.multitrace¶
Multi-component waveform data model.
Classes
|
Container for multi-component waveforms with common time span and sampling. |
- class MultiTrace(traces=None, codes=None, data=None, tmin=None, deltat=None)[source]¶
Bases:
Object
Container for multi-component waveforms with common time span and sampling.
Instances of this class can be used to efficiently represent multi-component waveforms of a single sensor or of a sensor array. The data samples are stored in a single 2D array where the first index runs over components and the second index over time. Metadata contains sampling rate, start-time and
CodesNSLCE
identifiers for the contained traces.- Parameters:
traces (
list
ofTrace
) – If given, construct multi-trace from given single-component waveforms (seeget_traces_data_as_array()
) and ignore any other arguments.
- ♦ codes¶
list
ofpyrocko.squirrel.model.CodesNSLCE
objects, default:[]
List of codes identifying the components.
- ♦ data¶
numpy.ndarray (
pyrocko.guts_array.Array
)Array containing the data samples indexed as
(icomponent, isample)
.
- ♦ tmin¶
pyrocko.util.get_time_float (
pyrocko.guts.Timestamp
), default:str_to_time('1970-01-01 00:00:00')
Start time.
- ♦ deltat¶
float
, default:1.0
Sampling interval [s]
- property tmax¶
End time (time of last sample, read-only).