obspy.io.mseed.util¶
MiniSEED specific utilities.
Public Functions
get_flags |
Counts all data quality, I/O, and activity flags of the given MiniSEED file and returns statistics about the timing quality if applicable. |
get_record_information |
Returns record information about given files and file-like object. |
get_start_and_end_time |
Returns the start and end time of a MiniSEED file or file-like object. |
get_timing_and_data_quality |
|
set_flags_in_fixed_headers |
Updates a given MiniSEED file with some fixed header flags. |
shift_time_of_file |
Takes a MiniSEED file and shifts the time of every record by the given amount. |
Private Functions
Warning
Private functions are mainly for internal/developer use and their API might change without notice.
_check_flag_value |
Search for a given flag in a given blockette for the current record. |
_convert_and_check_encoding_for_writing |
Helper function to handle and test encodings. |
_convert_datetime_to_mstime |
Takes a obspy.util.UTCDateTime object and returns an epoch time in ms. |
_convert_flags_to_raw_byte |
Converts a flag dictionary to a byte, ready to be encoded in a MiniSEED header. |
_convert_msr_to_dict |
Internal method used for setting header attributes. |
_convert_mstime_to_datetime |
Takes a MiniSEED timestamp and returns a obspy.util.UTCDateTime object. |
_ctypes_array_2_numpy_array |
Takes a Ctypes array and its length and type and returns it as a NumPy array. |
_decode_header_field |
Helper function to decode header fields. |
_get_record_information |
Searches the first MiniSEED record stored in file_object at the current position and returns some information about it. |
_search_flag_in_blockette |
Search for a given flag in a given blockette for the current record. |
_unpack_steim_1 |
Unpack steim1 compressed data given as numpy array. |
_unpack_steim_2 |
Unpack steim2 compressed data given as numpy array. |