obspy.io.quakeml.core.Pickler

class Pickler(nsmap=None)[source]

Bases: builtins.object

Serializes an ObsPy Catalog object into QuakeML format.

Attributes

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

Public Methods

dump Writes ObsPy Catalog into given file.
dumps Returns QuakeML string of given ObsPy Catalog object.

Private Methods

Warning

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

_add_namespace
_amplitude Converts an Amplitude into etree.Element object.
_arrival Converts an Arrival into etree.Element object.
_bool
_comments
_creation_info
_custom
_extra Add information stored in obj.extra as custom tags/attributes in
_focal_mechanism Converts a FocalMechanism into etree.Element object.
_get_namespace_map
_id
_magnitude Converts an Magnitude into etree.Element object.
_moment_tensor Converts a MomentTensor into etree.Element object.
_nodal_planes Converts a NodalPlanes into etree.Element object.
_origin Converts an Origin into etree.Element object.
_pick Converts a Pick into etree.Element object.
_principal_axes Converts a PrincipalAxes into etree.Element object.
_serialize Converts a Catalog object into XML string.
_station_magnitude Converts an StationMagnitude into etree.Element object.
_station_magnitude_contributions
_str
_time
_time_window
_value
_waveform_id
_waveform_ids

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__init__
__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().