obspy.taup.helper_classes.Arrival

class Arrival(phase, distance, time, purist_dist, ray_param, ray_param_index, name, purist_name, source_depth, receiver_depth, takeoff_angle=None, incident_angle=None)[source]

Bases: object

Convenience class for storing parameters associated with a phase arrival.

Variables
  • phase (SeismicPhase) – Phase that generated this arrival

  • distance (float) – Actual distance in degrees

  • time (float) – Travel time in seconds

  • purist_dist (float) – Purist angular distance (great circle) in radians

  • ray_param (float) – Ray parameter in seconds per radians

  • name (str) – Phase name

  • purist_name (str) – Phase name changed for true depths

  • source_depth (float) – Source depth in kilometers

  • incident_angle (float) – Angle (in degrees) at which the ray arrives at the receiver

  • takeoff_angle (float) – Angle (in degrees) at which the ray leaves the source

  • pierce (ndarray (dtype = TimeDist)) – Points pierced by ray

  • path (ndarray (dtype = TimeDist)) – Path taken by ray

Attributes

purist_distance

Return the purist distance in degrees.

ray_param_sec_degree

Return the ray parameter in seconds per degree.

Special Methods

Arrival.__delattr__(name, /)

Implement delattr(self, name).

Arrival.__dir__()

Default dir() implementation.

Arrival.__eq__(value, /)

Return self==value.

Arrival.__format__(format_spec, /)

Default object formatter.

Arrival.__ge__(value, /)

Return self>=value.

Arrival.__getattribute__(name, /)

Return getattr(self, name).

Arrival.__gt__(value, /)

Return self>value.

Arrival.__hash__()

Return hash(self).

Arrival.__init__(phase, distance, time, purist_dist, ray_param, ray_param_index, name, purist_name, source_depth, receiver_depth, takeoff_angle=None, incident_angle=None)[source]
Arrival.__init_subclass__()

This method is called when a class is subclassed.

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

Arrival.__le__(value, /)

Return self<=value.

Arrival.__lt__(value, /)

Return self<value.

Arrival.__ne__(value, /)

Return self!=value.

Arrival.__new__(**kwargs)
Arrival.__reduce__()

Helper for pickle.

Arrival.__reduce_ex__(protocol, /)

Helper for pickle.

Arrival.__repr__()

Return repr(self).

Arrival.__setattr__(name, value, /)

Implement setattr(self, name, value).

Arrival.__sizeof__()

Size of object in memory, in bytes.

Arrival.__str__()[source]
Arrival.__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).