obspy.io.mseed.util.get_record_information

get_record_information(file_or_file_object, offset=0, endian=None)[source]

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

Parameters:

endian – If given, the byte order will be enforced. Can be either “<” or “>”. If None, it will be determined automatically. Defaults to None.

Example

>>> from obspy.core.util import get_example_file
>>> filename = get_example_file("test.mseed")
>>> ri = get_record_information(filename)
>>> for k, v in sorted(ri.items()):
...     print(k, v)
activity_flags 0
byteorder >
channel BHZ
data_quality_flags 0
encoding 11
endtime 2003-05-29T02:15:51.518400Z
excess_bytes 0
filesize 8192
io_and_clock_flags 0
location 00
network NL
npts 5980
number_of_records 2
record_length 4096
samp_rate 40.0
starttime 2003-05-29T02:13:22.043400Z
station HGN
time_correction 0