MS3RecordPtr

class pymseed.mstracelist.MS3RecordPtr(cffi_ptr, parent_tracelist)[source]

Bases: object

A record that contributed samples to a trace segment

Entries of an MS3RecordList, present only when the trace list was read with record_list=True. Each locates its record in the source it was read from, by filename and fileoffset for a file or by an internal pointer for a buffer, and exposes the parsed header as record without decoding the data samples.

Invalidated when the owning MS3TraceList is closed; using it afterward raises ValueError instead of reading freed memory.

Parameters:
  • cffi_ptr (Any)

  • parent_tracelist (Any)

property record: MS3Record

Return a constructed MS3Record.

Borrowed from this entry: reading it after the trace list is closed raises ValueError (see _msr_for_borrower()).

property filename: str | None

Return filename, or None if the record came from a buffer rather than a file.

property fileoffset: int

Return file offset

property endtime: int

Return end time

property dataoffset: int

Return data offset