obspy.core.event.source.Axis
- class Axis(*args, **kwargs)[source]
Bases:
AbstractEventType
This class describes an eigenvector of a moment tensor expressed in its principal-axes system. It uses the angles azimuth, plunge, and the eigenvalue length.
- Parameters:
azimuth (float) – Azimuth of eigenvector of moment tensor expressed in principal-axes system. Measured clockwise from South-North direction at epicenter. Unit: deg
azimuth_errors (
QuantityError
) – AttribDict containing error quantities.plunge (float) – Plunge of eigenvector of moment tensor expressed in principal-axes system. Measured against downward vertical direction at epicenter. Unit: deg
plunge_errors (
QuantityError
) – AttribDict containing error quantities.length (float) – Eigenvalue of moment tensor expressed in principal-axes system. Unit: Nm
length_errors (
QuantityError
) – AttribDict containing error quantities.
Note
For handling additional information not covered by the QuakeML standard and how to output it to QuakeML see the ObsPy Tutorial.
Attributes
Public Methods
Clear the class :return: |
|
If key is not found, d is returned if given, otherwise KeyError is raised. |
|
as a 2-tuple; but raise KeyError if D is empty. |
|
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
- Axis._cast_type(key, value)
Cast type of value to type required in _types dict.
- Parameters:
key (str) – The key from __setattr__.
value – The value being set to key.
- Returns:
value cast to correct type.
- Axis._pretty_str(priorized_keys=[], min_label_length=16)
Return better readable string representation of AttribDict object.
- Parameters:
- Returns:
String representation of current AttribDict object.
- Axis._repr_pretty_(p, cycle)
Special Methods
- Axis.__bool__()
- Axis.__contains__(key)
- Axis.__delattr__(name)
- Axis.__delitem__(name)
- Axis.__dir__()
Default dir() implementation.
- Axis.__eq__(other)
Two instances are considered equal if all attributes and all lists are identical.
- Axis.__format__(format_spec, /)
Default object formatter.
- Axis.__ge__(value, /)
Return self>=value.
- Axis.__getattr__(name, default=None)
Py3k hasattr() expects an AttributeError no KeyError to be raised if the attribute is not found.
- Axis.__getattribute__(name, /)
Return getattr(self, name).
- Axis.__getitem__(name, default=None)
- Axis.__gt__(value, /)
Return self>value.
- Axis.__init__(*args, **kwargs)
- Axis.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- Axis.__iter__()
- Axis.__le__(value, /)
Return self<=value.
- Axis.__len__()
- Axis.__lt__(value, /)
Return self<value.
- Axis.__ne__(other)
- Axis.__new__(**kwargs)
- Axis.__nonzero__()
- Axis.__reduce__()
Helper for pickle.
- Axis.__reduce_ex__(protocol, /)
Helper for pickle.
- Axis.__repr__()
- Axis.__setattr__(name, value)
Custom property implementation that works if the class is inheriting from AttribDict.
- Axis.__setitem__(key, value)
- Axis.__sizeof__()
Size of object in memory, in bytes.
- Axis.__str__(force_one_line=False)
Fairly extensive in an attempt to cover several use cases. It is always possible to change it in the child class.
- classmethod Axis.__subclasshook__(C)