obspy.imaging.beachball.PrincipalAxis

class PrincipalAxis(val=0, strike=0, dip=0)[source]

Bases: object

A principal axis.

Strike and dip values are in degrees.

>>> a = PrincipalAxis(1.3, 20, 50)
>>> a.dip
50
>>> a.strike
20
>>> a.val
1.3

Special Methods

PrincipalAxis.__delattr__(name, /)

Implement delattr(self, name).

PrincipalAxis.__dir__()

Default dir() implementation.

PrincipalAxis.__eq__(value, /)

Return self==value.

PrincipalAxis.__format__(format_spec, /)

Default object formatter.

PrincipalAxis.__ge__(value, /)

Return self>=value.

PrincipalAxis.__getattribute__(name, /)

Return getattr(self, name).

PrincipalAxis.__gt__(value, /)

Return self>value.

PrincipalAxis.__hash__()

Return hash(self).

PrincipalAxis.__init__(val=0, strike=0, dip=0)[source]
PrincipalAxis.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

PrincipalAxis.__le__(value, /)

Return self<=value.

PrincipalAxis.__lt__(value, /)

Return self<value.

PrincipalAxis.__ne__(value, /)

Return self!=value.

PrincipalAxis.__new__(**kwargs)
PrincipalAxis.__reduce__()

Helper for pickle.

PrincipalAxis.__reduce_ex__(protocol, /)

Helper for pickle.

PrincipalAxis.__repr__()

Return repr(self).

PrincipalAxis.__setattr__(name, value, /)

Implement setattr(self, name, value).

PrincipalAxis.__sizeof__()

Size of object in memory, in bytes.

PrincipalAxis.__str__()

Return str(self).

PrincipalAxis.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).