|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sc.seis.TauP.TauBranch
provides storage and methods for distance, time and tau increments for a branch. A branch is a group of layers bounded by discontinuities or reversals in slowness gradient.
Field Summary | |
boolean |
DEBUG
Turns on debugging output. |
protected double[] |
dist
Holds distance (radians) evaluated at the ith ray parameter for this branch. |
protected boolean |
isPWave
The type of wave for this branch, P or S. |
protected double[] |
tau
Holds tau evaluated at the ith ray parameter for this branch. |
protected double[] |
time
Holds time (seconds) evaluated at the ith ray parameter for this branch. |
Constructor Summary | |
TauBranch(double topDepth,
double botDepth,
boolean isPWave)
|
Method Summary | |
TimeDist |
calcTimeDist(SlownessModel sMod,
int topLayerNum,
int botLayerNum,
double p)
calculates the time and distance increments for the given ray parameter. |
java.lang.Object |
clone()
Returns a clone of this TauBranch object. |
void |
createBranch(SlownessModel sMod,
double minPSoFar,
double[] rayParams)
Calculates tau for this branch, between slowness layers topLayerNum and botLayerNum, inclusive. |
protected TauBranch |
difference(TauBranch topBranch,
int indexP,
int indexS,
SlownessModel sMod,
double minPSoFar,
double[] rayParams)
generates a new tau branch by "subtracting" the given tau branch from this tau branch. |
double |
getBotDepth()
|
double[] |
getDist()
|
double |
getDist(int i)
|
double |
getMaxRayParam()
|
double |
getMinRayParam()
|
double |
getMinTurnRayParam()
|
double[] |
getTau()
|
double |
getTau(int i)
|
double[] |
getTime()
|
double |
getTime(int i)
|
double |
getTopDepth()
|
protected void |
insert(double rayParam,
SlownessModel sMod,
int index)
Inserts the distance, time, and tau increment for the slowness sample given to the branch. |
TimeDist[] |
path(double rayParam,
boolean downgoing,
SlownessModel sMod)
|
static TauBranch |
readFromStream(java.io.DataInputStream dis)
|
void |
shiftBranch(int index)
|
java.lang.String |
toString()
|
void |
writeToStream(java.io.DataOutputStream dos)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public transient boolean DEBUG
protected boolean isPWave
protected double[] dist
protected double[] time
protected double[] tau
Constructor Detail |
public TauBranch(double topDepth, double botDepth, boolean isPWave)
Method Detail |
public double getTopDepth()
public double getBotDepth()
public double getMaxRayParam()
public double getMinTurnRayParam()
public double getMinRayParam()
public double[] getDist()
public double getDist(int i)
public double[] getTime()
public double getTime(int i)
public double[] getTau()
public double getTau(int i)
public void createBranch(SlownessModel sMod, double minPSoFar, double[] rayParams) throws NoSuchLayerException, SlownessModelException, TauModelException
NoSuchLayerException
- if a needed slowness layer cannot be found.
SlownessModelException
- if there is a problem with the slowness model
TauModelException
- if the slownessmodel and taumodel are not compatiblepublic TimeDist calcTimeDist(SlownessModel sMod, int topLayerNum, int botLayerNum, double p) throws NoSuchLayerException, SlownessModelException
NoSuchLayerException
- if topLayerNum or botLayerNum are not in the slowness
model.
SlownessModelException
- if the ray with ray parameter p turns within a layer
instead of at the bottom.protected void insert(double rayParam, SlownessModel sMod, int index) throws NoSuchLayerException, SlownessModelException, TauModelException
TauModelException
- if the tau branch is not compatable with the slowness
sampling
NoSuchLayerException
SlownessModelException
edu.sc.seis.TauP.TauModel.depthCorrect(double)
protected TauBranch difference(TauBranch topBranch, int indexP, int indexS, SlownessModel sMod, double minPSoFar, double[] rayParams) throws NoSuchLayerException, SlownessModelException, TauModelException
NoSuchLayerException
SlownessModelException
TauModelException
public void shiftBranch(int index)
public TimeDist[] path(double rayParam, boolean downgoing, SlownessModel sMod) throws SlownessModelException
SlownessModelException
public void writeToStream(java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
public static TauBranch readFromStream(java.io.DataInputStream dis) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public java.lang.Object clone()
Cloneable
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |