Package edu.sc.seis.TauP
Class SeismicPhaseWalk
- java.lang.Object
-
- edu.sc.seis.TauP.SeismicPhaseWalk
-
public class SeismicPhaseWalk extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int
receiverBranch
Temporary assume receiver is at surface.double
receiverDepth
-
Constructor Summary
Constructors Constructor Description SeismicPhaseWalk(TauModel tMod)
SeismicPhaseWalk(TauModel tMod, java.lang.Double minRayParam, java.lang.Double maxRayParam, double receiverDepth)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canMergePhases(ProtoSeismicPhase curr, ProtoSeismicPhase other)
java.util.List<ProtoSeismicPhase>
cleanDuplicates(java.util.List<ProtoSeismicPhase> in)
ProtoSeismicPhase
consolidateSegment(ProtoSeismicPhase proto)
ProtoSeismicPhase
consolidateTrans(ProtoSeismicPhase proto)
java.util.List<ProtoSeismicPhase>
createSourceSegments(TauModel tMod, boolean isPWave, double receiverDepth)
void
excludeBoundaries(java.util.List<java.lang.Double> layerDepths)
java.util.List<ProtoSeismicPhase>
findEndingPaths(int maxAction)
static java.lang.String
legNameForTauBranch(TauModel tMod, int branchNum, boolean isPWave, boolean isDowngoing)
ProtoSeismicPhase
mergePhases(ProtoSeismicPhase curr, ProtoSeismicPhase other)
java.util.List<ProtoSeismicPhase>
nextLegs(TauModel tMod, ProtoSeismicPhase segmentList, boolean isPWave)
static void
outTreeAdd(java.util.List<ProtoSeismicPhase> outTree, ProtoSeismicPhase proto)
java.util.List<ProtoSeismicPhase>
overlapsRayParam(java.util.List<ProtoSeismicPhase> segTree, java.lang.Double minRayParam, java.lang.Double maxRayParam)
java.util.List<ProtoSeismicPhase>
walkPhases(int maxAction)
java.util.List<ProtoSeismicPhase>
walkPhases(TauModel tMod, java.util.List<ProtoSeismicPhase> segmentTree, int maxLegs)
-
-
-
Constructor Detail
-
SeismicPhaseWalk
public SeismicPhaseWalk(TauModel tMod) throws TauModelException
- Throws:
TauModelException
-
SeismicPhaseWalk
public SeismicPhaseWalk(TauModel tMod, java.lang.Double minRayParam, java.lang.Double maxRayParam, double receiverDepth) throws TauModelException
- Throws:
TauModelException
-
-
Method Detail
-
excludeBoundaries
public void excludeBoundaries(java.util.List<java.lang.Double> layerDepths) throws TauModelException
- Throws:
TauModelException
-
findEndingPaths
public java.util.List<ProtoSeismicPhase> findEndingPaths(int maxAction) throws TauModelException
- Throws:
TauModelException
-
walkPhases
public java.util.List<ProtoSeismicPhase> walkPhases(int maxAction) throws TauModelException
- Throws:
TauModelException
-
createSourceSegments
public java.util.List<ProtoSeismicPhase> createSourceSegments(TauModel tMod, boolean isPWave, double receiverDepth)
-
cleanDuplicates
public java.util.List<ProtoSeismicPhase> cleanDuplicates(java.util.List<ProtoSeismicPhase> in)
-
canMergePhases
public boolean canMergePhases(ProtoSeismicPhase curr, ProtoSeismicPhase other)
-
mergePhases
public ProtoSeismicPhase mergePhases(ProtoSeismicPhase curr, ProtoSeismicPhase other)
-
walkPhases
public java.util.List<ProtoSeismicPhase> walkPhases(TauModel tMod, java.util.List<ProtoSeismicPhase> segmentTree, int maxLegs) throws TauModelException
- Throws:
TauModelException
-
overlapsRayParam
public java.util.List<ProtoSeismicPhase> overlapsRayParam(java.util.List<ProtoSeismicPhase> segTree, java.lang.Double minRayParam, java.lang.Double maxRayParam)
-
nextLegs
public java.util.List<ProtoSeismicPhase> nextLegs(TauModel tMod, ProtoSeismicPhase segmentList, boolean isPWave) throws TauModelException
- Throws:
TauModelException
-
outTreeAdd
public static void outTreeAdd(java.util.List<ProtoSeismicPhase> outTree, ProtoSeismicPhase proto)
-
legNameForTauBranch
public static java.lang.String legNameForTauBranch(TauModel tMod, int branchNum, boolean isPWave, boolean isDowngoing)
-
consolidateSegment
public ProtoSeismicPhase consolidateSegment(ProtoSeismicPhase proto) throws TauModelException
- Throws:
TauModelException
-
consolidateTrans
public ProtoSeismicPhase consolidateTrans(ProtoSeismicPhase proto) throws TauModelException
- Throws:
TauModelException
-
-