obspy.io.gse2.bulletin.Unpickler

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

Bases: object

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

Attributes

__dict__

__doc__

__module__

__weakref__

list of weak references to the object (if defined)

Public Methods

load

Read GSE2.0 file into ObsPy catalog object.

Private Methods

Warning

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.

_comment

_deserialize

_get_channel

Use inventory to retrieve channel and location code.

_get_creation_info

_get_res_id

Create a ResourceIdentifier object.

_parse_arrivals

_parse_event

Parse an event.

_parse_first_line_origin

Parse the first line of origin data.

_parse_origin

Parse an origin.

_parse_region_name

_parse_second_line_origin

_skip_empty_lines

_warn

Display a warning message with the line number.

Special Methods

__dir__

Default dir() implementation.

__format__

Default object formatter.

__init__

Initialize self.

__init_subclass__

This method is called when a class is subclassed.

__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().