MS3TraceID¶
- class pymseed.mstracelist.MS3TraceID(cffi_ptr, parent_tracelist)[source]¶
Bases:
objectWrapper around CFFI MS3TraceID structure
This class supports list-like access to the trace segments:
len(traceid) returns the number of segments
traceid[i] returns the i-th segment
traceid[start:end] returns a slice of segments
for segment in traceid: iterates over all segments
Invalidated when the owning
MS3TraceListis closed; using it afterward raisesValueErrorinstead of reading freed memory.- Parameters:
cffi_ptr (Any)
parent_tracelist (Any)
- earliest_str(timeformat=TimeFormat.ISOMONTHDAY_Z, subsecond=SubSecond.NANO_MICRO_NONE)[source]¶
Return earliest time as formatted string
Returns the sentinel strings
"ERROR"or"UNSET"when the underlying nanosecond timestamp is the corresponding libmseed sentinel.- Parameters:
timeformat (TimeFormat)
subsecond (SubSecond)
- Return type:
- latest_str(timeformat=TimeFormat.ISOMONTHDAY_Z, subsecond=SubSecond.NANO_MICRO_NONE)[source]¶
Return latest time as formatted string
Returns the sentinel strings
"ERROR"or"UNSET"when the underlying nanosecond timestamp is the corresponding libmseed sentinel.- Parameters:
timeformat (TimeFormat)
subsecond (SubSecond)
- Return type: