|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sc.seis.TauP.SeismicPhase
Stores and transforms seismic phase names to and from their corresponding sequence of branches.
Field Summary | |
protected java.util.Vector |
arrivals
Vector holding all arrivals for this phase at the given distance. |
protected java.util.Vector |
branchSeq
Array of branch numbers for the given phase. |
protected int |
currBranch
temporary branch number so we know where to start add to the branch sequence. |
boolean |
DEBUG
Enables debugging output. |
protected double[] |
dist
Array of distances corresponding to the ray parameters stored in rayParams. |
protected java.util.Vector |
downGoing
true if the current leg of the phase is down going. |
protected int |
endAction
temporary end action so we know what we did at the end of the last section of the branch sequence. |
protected java.util.Vector |
legAction
records the end action for the current leg. |
protected java.util.Vector |
legs
Vector containing Strings for each leg. |
protected double |
maxDiffraction
The maximum degrees that a Pdiff or Sdiff can diffract along the CMB. |
protected double |
maxDistance
The maximum distance that this phase can be theoretically observed. |
protected double |
maxRayParam
Maximum ray parameter that exists for this phase. |
protected int |
maxRayParamIndex
Index within TauModel.rayParams that corresponds to maxRayParam. |
protected double |
maxRefraction
The maximum degrees that a Pn or Sn can refract along the moho. |
protected double |
minDistance
The minimum distance that this phase can be theoretically observed. |
protected double |
minRayParam
Minimum ray parameter that exists for this phase. |
protected int |
minRayParamIndex
Index within TauModel.rayParams that corresponds to minRayParam. |
protected java.lang.String |
name
The phase name, ie PKiKP. |
protected java.lang.String |
puristName
name with depths corrected to be actuall discontinuities in the model. |
static boolean |
PWAVE
|
protected double[] |
rayParams
Array of possible ray parameters for this phase. |
protected static int |
REFLECTBOT
Used by addToBranch when the path reflects off the bottom of the end of a segment, ie v. |
protected static int |
REFLECTTOP
Used by addToBranch when the path reflects off the top of the end of a segment, ie ^. |
protected double |
sourceDepth
The source depth within the TauModel that was used to generate this phase. |
static boolean |
SWAVE
|
protected double[] |
time
Array of times corresponding to the ray parameters stored in rayParams. |
protected TauModel |
tMod
TauModel to generate phase for. |
protected static int |
TRANSDOWN
Used by addToBranch when the path transmits down through the end of a segment. |
protected static int |
TRANSUP
Used by addToBranch when the path transmits up through the end of a segment. |
protected static int |
TURN
Used by addToBranch when the path turns within a segment. |
boolean |
verbose
Enables verbose output. |
protected java.util.Vector |
waveType
Vector of wave types corresponding to each leg of the phase. |
Constructor Summary | |
SeismicPhase(java.lang.String name,
TauModel tMod)
|
Method Summary | |
protected void |
addToBranch(TauModel tMod,
int startBranch,
int endBranch,
boolean isPWave,
int endAction)
|
void |
calcPath(TauModel tMod)
calculates the path this phase takes through the earth model. |
void |
calcPierce(TauModel tMod)
Calculates the "pierce points" for the arrivals stored in arrivals. |
void |
calcTime(double deg)
calculates arrival times for this phase. |
java.lang.Object |
clone()
Returns an independent clone of the SeismicPhase. |
int |
closestBranchToDepth(TauModel tMod,
java.lang.String depthString)
Finds the closest discontinuity to the given depth that can have refletions and phase transformations. |
protected void |
createPuristName(TauModel tMod)
|
void |
dump()
|
Arrival[] |
getArrivals()
Returns arrival time array. |
double[] |
getDist()
|
java.lang.String[] |
getLegs()
|
double |
getMaxDiffraction()
|
double |
getMaxDistance()
|
double |
getMaxRayParam()
|
int |
getMaxRayParamIndex()
|
double |
getMinDistance()
|
double |
getMinRayParam()
|
int |
getMinRayParamIndex()
|
java.lang.String |
getName()
|
java.lang.String |
getPuristName()
|
double[] |
getRayParams()
|
double[] |
getTau()
|
TauModel |
getTauModel()
|
double[] |
getTime()
|
boolean |
hasArrivals()
|
void |
init()
|
protected void |
legPuller()
Tokenizes a phase name into legs, ie PcS becomes 'P'+'c'+'S' while p^410P would become 'p'+'^410'+'P'. |
static void |
main(java.lang.String[] args)
|
protected void |
parseName(TauModel tMod)
Constructs a branch sequence from the given phase name and tau model. |
protected void |
phaseConversion(TauModel tMod,
int fromBranch,
int endAction,
boolean isPtoS)
changes maxRayParam and minRayParam whenever there is a phase conversion. |
boolean |
phaseValidate()
Performs consistency checks on the previously tokenized phase name stored in legs. |
void |
setDEBUG(boolean DEBUG)
|
void |
setMaxDiffraction(double maxDiffraction)
|
void |
setTauModel(TauModel tMod)
|
protected void |
sumBranches(TauModel tMod)
Sums the appropriate branches for this phase. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public transient boolean DEBUG
public transient boolean verbose
protected TauModel tMod
protected static final int TURN
protected static final int REFLECTTOP
protected static final int REFLECTBOT
protected static final int TRANSUP
protected static final int TRANSDOWN
protected double maxRefraction
protected double maxDiffraction
protected double sourceDepth
protected double[] dist
protected double[] time
protected double[] rayParams
protected double minRayParam
protected double maxRayParam
protected int maxRayParamIndex
protected int minRayParamIndex
protected double minDistance
protected double maxDistance
protected java.util.Vector arrivals
Arrival
,
calcTime(double)
,
calcPierce(TauModel)
,
calcPath(TauModel)
protected java.util.Vector branchSeq
protected java.lang.String name
protected java.lang.String puristName
protected java.util.Vector legs
protected transient int currBranch
protected transient int endAction
protected java.util.Vector legAction
protected java.util.Vector downGoing
protected java.util.Vector waveType
legs
public static final boolean PWAVE
public static final boolean SWAVE
Constructor Detail |
public SeismicPhase(java.lang.String name, TauModel tMod)
tMod
- Tau model to be used to construct the phase.Method Detail |
public boolean hasArrivals()
public Arrival[] getArrivals()
public void setTauModel(TauModel tMod) throws TauModelException
TauModelException
public TauModel getTauModel()
public void setDEBUG(boolean DEBUG)
public double getMinDistance()
public double getMaxDistance()
public double getMaxRayParam()
public double getMinRayParam()
public int getMaxRayParamIndex()
public int getMinRayParamIndex()
public double getMaxDiffraction()
public void setMaxDiffraction(double maxDiffraction)
public java.lang.String getName()
public java.lang.String getPuristName()
public java.lang.String[] getLegs()
public double[] getRayParams()
public double[] getDist()
public double[] getTime()
public double[] getTau()
public void init() throws TauModelException
TauModelException
public void calcTime(double deg)
protected void phaseConversion(TauModel tMod, int fromBranch, int endAction, boolean isPtoS) throws TauModelException
TauModelException
protected void addToBranch(TauModel tMod, int startBranch, int endBranch, boolean isPWave, int endAction) throws TauModelException
TauModelException
public int closestBranchToDepth(TauModel tMod, java.lang.String depthString)
protected void parseName(TauModel tMod) throws TauModelException
TauModelException
protected void legPuller() throws TauModelException
TauModelException
- if the phase name cannot be tokenized.protected void createPuristName(TauModel tMod)
protected void sumBranches(TauModel tMod) throws TauModelException
TauModelException
- if the topDepth of the high slowness zone is not contained
within the TauModel. This should never happen and would
indicate an invalid TauModel.public void calcPierce(TauModel tMod) throws TauModelException
TauModelException
public void calcPath(TauModel tMod)
public boolean phaseValidate()
public java.lang.String toString()
public void dump()
public java.lang.Object clone()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |