edu.sc.seis.TauP
Class Arrival

java.lang.Object
  extended by edu.sc.seis.TauP.Arrival
All Implemented Interfaces:
java.lang.Cloneable

public class Arrival
extends java.lang.Object
implements java.lang.Cloneable

convenience class for storing the parameters associated with a phase arrival.

Version:
1.1.3 Wed Jul 18 15:00:35 GMT 2001
Author:
H. Philip Crotwell

Field Summary
protected  double dist
          angular distance (great circle) in radians
protected static double DtoR
           
protected  java.lang.String name
          phase name
protected  TimeDist[] path
          pierce and path points
protected  SeismicPhase phase
          phase that generated this arrival.
protected  TimeDist[] pierce
          pierce and path points
protected  java.lang.String puristName
          phase name changed for true depths
protected  double rayParam
          ray parameter in seconds per radians.
protected  int rayParamIndex
           
protected static double RtoD
           
protected  double sourceDepth
          source depth in kilometers
protected  double time
          travel time in seconds
protected static double TWOPI
           
 
Constructor Summary
Arrival(SeismicPhase phase, double time, double dist, double rayParam, int rayParamIndex, java.lang.String name, java.lang.String puristName, double sourceDepth)
           
 
Method Summary
 java.lang.Object clone()
           
 double getDist()
          returns travel distance in radians
 double getDistDeg()
          returns travel distance in degrees.
 TimeDist getFirstPiercePoint(double depth)
          finds the first pierce point at the given depth.
 TimeDist getLastPiercePoint(double depth)
          finds the last pierce point at the given depth.
 double getModuloDist()
          returns distance in radians and in the range 0-PI.
 double getModuloDistDeg()
          returns distance in degrees and in the range 0-180.
 java.lang.String getName()
          returns phase name
 int getNumPathPoints()
           
 int getNumPiercePoints()
           
 TimeDist[] getPath()
          returns pierce points as TimeDist objects.
 TimeDist getPathPoint(int i)
           
 SeismicPhase getPhase()
           
 TimeDist[] getPierce()
          returns pierce points as TimeDist objects.
 TimeDist getPiercePoint(int i)
           
 java.lang.String getPuristName()
          returns purist's version of name.
 double getRayParam()
          returns ray parameter in seconds per radian
 double getSourceDepth()
          returns source depth in kilometers
 double getTime()
          returns travel time in seconds
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

phase

protected SeismicPhase phase
phase that generated this arrival.


time

protected double time
travel time in seconds


dist

protected double dist
angular distance (great circle) in radians


rayParam

protected double rayParam
ray parameter in seconds per radians.


rayParamIndex

protected int rayParamIndex

name

protected java.lang.String name
phase name


puristName

protected java.lang.String puristName
phase name changed for true depths


sourceDepth

protected double sourceDepth
source depth in kilometers


pierce

protected TimeDist[] pierce
pierce and path points


path

protected TimeDist[] path
pierce and path points


TWOPI

protected static final double TWOPI
See Also:
Constant Field Values

DtoR

protected static final double DtoR
See Also:
Constant Field Values

RtoD

protected static final double RtoD
See Also:
Constant Field Values
Constructor Detail

Arrival

public Arrival(SeismicPhase phase,
               double time,
               double dist,
               double rayParam,
               int rayParamIndex,
               java.lang.String name,
               java.lang.String puristName,
               double sourceDepth)
Method Detail

getPhase

public SeismicPhase getPhase()

getTime

public double getTime()
returns travel time in seconds


getDist

public double getDist()
returns travel distance in radians


getDistDeg

public double getDistDeg()
returns travel distance in degrees.


getModuloDist

public double getModuloDist()
returns distance in radians and in the range 0-PI. Note this may not be the actual distance traveled.


getModuloDistDeg

public double getModuloDistDeg()
returns distance in degrees and in the range 0-180. Note this may not be the actual distance traveled.


getRayParam

public double getRayParam()
returns ray parameter in seconds per radian


getName

public java.lang.String getName()
returns phase name


getPuristName

public java.lang.String getPuristName()
returns purist's version of name. Depths are changed to reflect the true depth of the interface.


getSourceDepth

public double getSourceDepth()
returns source depth in kilometers


getPierce

public TimeDist[] getPierce()
returns pierce points as TimeDist objects.


getPath

public TimeDist[] getPath()
returns pierce points as TimeDist objects.


clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getNumPiercePoints

public int getNumPiercePoints()

getNumPathPoints

public int getNumPathPoints()

getPiercePoint

public TimeDist getPiercePoint(int i)

getFirstPiercePoint

public TimeDist getFirstPiercePoint(double depth)
finds the first pierce point at the given depth.

Throws:
java.lang.ArrayIndexOutOfBoundsException - if depth is not found

getLastPiercePoint

public TimeDist getLastPiercePoint(double depth)
finds the last pierce point at the given depth.

Throws:
java.lang.ArrayIndexOutOfBoundsException - if depth is not found

getPathPoint

public TimeDist getPathPoint(int i)


Copyright © 1999-2006 Seismology at the University of South Carolina. All Rights Reserved.