obspy.taup.seismic_phase.SeismicPhase

class SeismicPhase(name, tau_model, receiver_depth=0.0)[source]

Bases: object

Stores and transforms seismic phase names to and from their corresponding sequence of branches. Will maybe contain “expert” mode wherein paths may start in the core. Principal use is to calculate leg contributions for scattered phases. Nomenclature: “K” - downgoing wave from source in core; “k” - upgoing wave from source in core.

Public Methods

add_to_branch

Add branch numbers to branch_seq.

calc_branch_mult

Calculate how many times the phase passes through a branch, up or down.

calc_incident_angle

calc_path

Calculate the paths this phase takes through the planet model.

calc_path_from_arrival

Calculate the paths this phase takes through the planet model.

calc_pierce

Calculate pierce points for this phase.

calc_pierce_from_arrival

Calculate the pierce points for a particular arrival.

calc_ray_param_for_takeoff

calc_takeoff_angle

calc_time

Calculate arrival times for this phase, sorted by time.

create_purist_name

get_earliest_arrival

handle_special_waves

Handle head or diffracted waves.

linear_interp_arrival

parse_name

Construct a branch sequence from the given phase name and tau model.

phase_conversion

Change max_ray_param and min_ray_param where there is a phase conversion.

refine_arrival

shoot_ray

sum_branches

Sum the appropriate branches for this phase.

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

SeismicPhase._refine_arrival(degrees, left_estimate, right_estimate, search_dist, tolerance, recursion_limit)[source]

Special Methods

SeismicPhase.__delattr__(name, /)

Implement delattr(self, name).

SeismicPhase.__dir__()

Default dir() implementation.

SeismicPhase.__eq__(value, /)

Return self==value.

SeismicPhase.__format__(format_spec, /)

Default object formatter.

SeismicPhase.__ge__(value, /)

Return self>=value.

SeismicPhase.__getattribute__(name, /)

Return getattr(self, name).

SeismicPhase.__gt__(value, /)

Return self>value.

SeismicPhase.__hash__()

Return hash(self).

SeismicPhase.__init__(name, tau_model, receiver_depth=0.0)[source]
SeismicPhase.__init_subclass__()

This method is called when a class is subclassed.

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

SeismicPhase.__le__(value, /)

Return self<=value.

SeismicPhase.__lt__(value, /)

Return self<value.

SeismicPhase.__ne__(value, /)

Return self!=value.

SeismicPhase.__new__(**kwargs)
SeismicPhase.__reduce__()

Helper for pickle.

SeismicPhase.__reduce_ex__(protocol, /)

Helper for pickle.

SeismicPhase.__repr__()

Return repr(self).

SeismicPhase.__setattr__(name, value, /)

Implement setattr(self, name, value).

SeismicPhase.__sizeof__()

Size of object in memory, in bytes.

SeismicPhase.__str__()

Return str(self).

SeismicPhase.__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).