obspy.mseed.util.getRecordInformation

getRecordInformation(file_or_file_object, offset=0)[source]

Returns record information about given files and file-like object.

Example

>>> from obspy.core.util import getExampleFile
>>> filename = getExampleFile("test.mseed")
>>> getRecordInformation(filename)  
{'record_length': 4096, 'data_quality_flags': 0, 'activity_flags': 0,
 'byteorder': '>', 'encoding': 11, 'samp_rate': 40.0, 'excess_bytes': 0L,
 'filesize': 8192L,
 'starttime': UTCDateTime(2003, 5, 29, 2, 13, 22, 43400), 'npts': 5980,
 'endtime': UTCDateTime(2003, 5, 29, 2, 15, 51, 518400),
 'number_of_records': 2L, 'io_and_clock_flags': 0}

This Page