obspy.io.quakeml.core.Pickler¶
-
class
Pickler
(nsmap=None)[source]¶ Bases:
object
Serializes an ObsPy Catalog object into QuakeML format.
Attributes
__dict__
__doc__
__module__
__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 non-quakeml namespace. _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__
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().