obspy.core.quakeml.Pickler¶
- class Pickler(nsmap=None)[source]¶
Bases: future.types.newobject.newobject
Serializes an ObsPy Catalog object into QuakeML format.
Attributes
__dict__ __doc__ unicode(string [, encoding[, errors]]) -> object __module__ str(object) -> string __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. next Private Methods
_add_namespace _amplitude Converts an Amplitude into etree.Element object. _arrival Converts an Arrival into etree.Element object. _bool _comments _creation_info _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
__init__ __long__ __native__ Hook for the future.utils.native() function __nonzero__ __unicode__