|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sc.seis.TauP.TauModel
public class TauModel
provides storage all of the TauBranch's comprising a model.
Field Summary | |
---|---|
protected int |
cmbBranch
Branch with the cmb at its top. |
protected double |
cmbDepth
Depth of the cmb. |
static boolean |
DEBUG
True to enable debugging output. |
protected int |
iocbBranch
Branch with the iocb at its top. |
protected double |
iocbDepth
Depth of the iocb. |
protected int |
mohoBranch
Branch with the moho at its top. |
protected double |
mohoDepth
Depth of the moho. |
protected double[] |
noDisconDepths
Depths that should not have reflections or phase conversions. |
protected double |
radiusOfEarth
Radius of the Earth in km, usually input from the velocity model. |
protected double[] |
rayParams
ray parameters used to construct the tau branches. |
protected int |
sourceBranch
Branch with the source at its top. |
protected double |
sourceDepth
Depth for which tau model was constructed. |
protected 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(boolean spherical,
double sourceDepth,
int sourceBranch,
double[] noDisconDepths,
double mohoDepth,
int mohoBranch,
double cmbDepth,
int cmbBranch,
double iocbDepth,
int iocbBranch,
double radiusOfEarth,
SlownessModel mod,
double[] rayParams,
TauBranch[][] tauBranches)
|
|
TauModel(SlownessModel sMod)
|
Method Summary | |
---|---|
void |
appendNoDisconDepth(double noDisconDepth)
|
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()
|
SlownessModel |
getSlownessModel()
|
int |
getSourceBranch()
|
double |
getSourceDepth()
|
TauBranch |
getTauBranch(int branchNum,
boolean isPWave)
|
VelocityModel |
getVelocityModel()
|
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"? |
boolean |
isSpherical()
|
protected TauModel |
loadFromDepthCache(java.lang.Double depth)
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static transient boolean DEBUG
protected boolean spherical
protected double sourceDepth
protected int sourceBranch
protected double[] noDisconDepths
protected double mohoDepth
protected int mohoBranch
protected double cmbDepth
protected int cmbBranch
protected double iocbDepth
protected int iocbBranch
protected double radiusOfEarth
protected double[] rayParams
public TauBranch[][] tauBranches
Constructor Detail |
---|
public TauModel(SlownessModel sMod) throws NoSuchLayerException, NoSuchMatPropException, SlownessModelException, TauModelException
NoSuchLayerException
NoSuchMatPropException
SlownessModelException
TauModelException
public TauModel(boolean spherical, double sourceDepth, int sourceBranch, double[] noDisconDepths, double mohoDepth, int mohoBranch, double cmbDepth, int cmbBranch, double iocbDepth, int iocbBranch, double radiusOfEarth, SlownessModel mod, double[] rayParams, TauBranch[][] tauBranches)
Method Detail |
---|
public boolean isSpherical()
public java.lang.String getModelName()
public SlownessModel getSlownessModel()
public VelocityModel getVelocityModel()
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
TauModelException
public int findBranch(double depth) throws TauModelException
TauModelException
public TauModel depthCorrect(double depth) throws TauModelException
TauModelException
public TauModel splitBranch(double depth) throws TauModelException
TauModelException
public void writeModel(java.lang.String filename) throws java.io.IOException
java.io.IOException
public void writeModelToStream(java.io.OutputStream outStream) throws java.io.IOException
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
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
java.io.InvalidClassException
java.io.IOException
java.io.StreamCorruptedException
java.lang.ClassNotFoundException
java.io.OptionalDataException
public boolean validate()
public void print()
public java.lang.String toString()
toString
in class java.lang.Object
protected TauModel loadFromDepthCache(java.lang.Double depth)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |