Mini-SEED specific utilities.

Public Functions

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 Mini-SEED file or file-like object.
get_timing_and_data_quality Counts all data quality flags of the given Mini-SEED file and returns
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

Private Functions


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
_convert_msr_to_dict Internal method used for setting header attributes.
_convert_mstime_to_datetime Takes a Mini-SEED 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
_get_record_information Searches the first Mini-SEED record stored in file_object at the current
_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 string.
_unpack_steim_2 Unpack steim2 compressed data given as string.