pyrocko.io.mseed

Read/write MiniSEED files (wraps libmseed).

Functions

check_codes(tr)

Check that the codes of a trace can be stored in Mini-SEED.

Exceptions

CodeTooLong(*args, **kwargs)

Raised when a code of a trace is too long to be stored in Mini-SEED.

ExtraCodeNotSupported(*args, **kwargs)

Raised when trying to store a trace with an extra code in Mini-SEED.

exception CodeTooLong(*args, **kwargs)[source]

Bases: FileSaveError

Raised when a code of a trace is too long to be stored in Mini-SEED.

exception ExtraCodeNotSupported(*args, **kwargs)[source]

Bases: FileSaveError

Raised when trying to store a trace with an extra code in Mini-SEED.

check_codes(tr)[source]

Check that the codes of a trace can be stored in Mini-SEED.

Parameters:

tr (Trace) – Trace to check.

Raises:

CodeTooLong if a code is too long, ExtraCodeNotSupported if the trace has an extra code.