class Unpickler(inventory, default_network_code, default_location_code, default_channel_code, res_id_prefix, fields, event_point_separator, agency)[source]

Bases: builtins.object

De-serialize a GSE2.0 string into an ObsPy Catalog object.


__doc__ str(object=’‘) -> str
__module__ str(object=’‘) -> str
__weakref__ list of weak references to the object (if defined)

Public Methods

load Read GSE2.0 file into ObsPy catalog object.

Private Methods


Private methods are mainly for internal/developer use and their API might change without notice.

_add_line_nb Add line number at the end of a str message.
_check_header Just check some stuff in header.
_get_channel Use inventory to retrieve channel and location code.
_get_res_id Create a ResourceIdentifier object.
_parse_event Parse an event.
_parse_first_line_origin Parse the first line of origin data.
_parse_origin Parse an origin.
_warn Display a warning message with the line number.

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__new__ Create and return a new object.
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__ size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().