|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.sc.seis.TauP.TauModel
provides storage all of the TauBranch's comprising a model.
Field Summary | |
boolean |
DEBUG
True to enable debugging output. |
SlownessModel |
sMod
The slowness model that was used to generate the tau model. |
boolean |
spherical
True if this is a spherical slowness model. |
TauBranch[][] |
tauBranches
2D Array containing a TauBranch object corresponding to each "branch" of the tau model, 0 is P and 1 is S. |
Constructor Summary | |
TauModel()
|
Method Summary | |
void |
appendNoDisconDepth(double noDisconDepth)
|
void |
calcTauIncFrom(SlownessModel sMod)
Calculates tau for each branch within a slowness model. |
java.lang.Object |
clone()
Returns a clone of the tau model so that changes to the clone do not affect the original. |
TauModel |
depthCorrect(double depth)
Computes a new tau model for a source at depth using the previously computed branches for a surface source. |
int |
findBranch(double depth)
Finds the branch that either has the depth as its top boundary, or strictly contains the depth. |
double |
findDepth(double rayParam,
boolean isPWave)
returns the turning depth for a ray of given ray parameter. |
double[] |
getBranchDepths()
returns an array of the depths that are boundaries between branches |
int |
getCmbBranch()
|
double |
getCmbDepth()
|
int |
getIocbBranch()
|
double |
getIocbDepth()
|
java.lang.String |
getModelName()
|
int |
getMohoBranch()
|
double |
getMohoDepth()
|
double[] |
getNoDisconDepths()
Branches, such as the branch with the source at its top, that are not allowed to have reflections and phase conversions at their tops. |
int |
getNumBranches()
|
double |
getOneRayParam(int i)
|
double |
getRadiusOfEarth()
|
double[] |
getRayParams()
|
int |
getSourceBranch()
|
double |
getSourceDepth()
|
TauBranch |
getTauBranch(int branchNum,
boolean isPWave)
|
boolean |
isNoDisconBranch(int branchNum)
Does the given branch number have a noDisconDepth at its top? We test against PWave Tau branches (ie true) since S is the same. |
boolean |
isNoDisconDepth(double noDisconDepth)
Is the given depth a "noDisconDepth"? |
static void |
main(java.lang.String[] args)
|
void |
print()
|
static TauModel |
readModel(java.lang.String filename)
|
static TauModel |
readModelFromStream(java.io.InputStream inStream)
|
void |
setNoDisconDepths(double[] noDisconDepths)
|
TauModel |
splitBranch(double depth)
returns a new TauModel with the branches containing depth split at depth. |
java.lang.String |
toString()
|
boolean |
validate()
|
void |
writeModel(java.lang.String filename)
|
void |
writeModelToStream(java.io.OutputStream outStream)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public transient boolean DEBUG
public boolean spherical
public SlownessModel sMod
public TauBranch[][] tauBranches
Constructor Detail |
public TauModel()
Method Detail |
public java.lang.String getModelName()
public double getSourceDepth()
public int getSourceBranch()
public double[] getNoDisconDepths()
public boolean isNoDisconBranch(int branchNum)
public boolean isNoDisconDepth(double noDisconDepth)
public void setNoDisconDepths(double[] noDisconDepths)
public void appendNoDisconDepth(double noDisconDepth)
public double getMohoDepth()
public int getMohoBranch()
public double getCmbDepth()
public int getCmbBranch()
public double getIocbDepth()
public int getIocbBranch()
public double getRadiusOfEarth()
public double[] getRayParams()
public double getOneRayParam(int i)
public int getNumBranches()
public TauBranch getTauBranch(int branchNum, boolean isPWave)
public double[] getBranchDepths()
public double findDepth(double rayParam, boolean isPWave) throws TauModelException
public void calcTauIncFrom(SlownessModel sMod) throws SlownessModelException, NoSuchLayerException, TauModelException, NoSuchMatPropException
public int findBranch(double depth) throws TauModelException
public TauModel depthCorrect(double depth) throws TauModelException
public TauModel splitBranch(double depth) throws TauModelException
public void writeModel(java.lang.String filename) throws java.io.IOException
public void writeModelToStream(java.io.OutputStream outStream) throws java.io.IOException
public static TauModel readModel(java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException, java.io.StreamCorruptedException, java.lang.ClassNotFoundException, java.io.OptionalDataException
public static TauModel readModelFromStream(java.io.InputStream inStream) throws java.io.InvalidClassException, java.io.IOException, java.io.StreamCorruptedException, java.lang.ClassNotFoundException, java.io.OptionalDataException
public boolean validate()
public void print()
public java.lang.Object clone()
public java.lang.String toString()
public static void main(java.lang.String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |