Package edu.sc.seis.TauP
Class SeismicPhaseFactory
java.lang.Object
edu.sc.seis.TauP.SeismicPhaseFactory
Factory for calculating seismic phase from a phase name within a model.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected static doubleThe maximum degrees that a Pdiff or Sdiff can diffract along the CMB.protected static doubleThe maximum degrees that a Pn or Sn can refract along the moho.static final int -
Method Summary
Modifier and TypeMethodDescriptioncalcBranchSeqForRayparam(ProtoSeismicPhase proto, double rp) calcBranchSeqForRayparam(ProtoSeismicPhase proto, double rp, SeismicPhaseSegment seg, SeismicPhaseSegment prevSeg) static TimeDistcalcForIndex(ProtoSeismicPhase proto, int idx, int maxRayParamIndex, double[] rayParams) calcPierceForIndex(ProtoSeismicPhase proto, int idx, int maxRayParamIndex, double[] rayParams) intcalcStartBranch(ProtoSeismicPhase proto, String currLeg) static List<SeismicPhase>calculateSeismicPhases(TauModel tMod, List<PhaseName> phaseNameList, double sourceDepth, List<Double> receiverDepths, Scatterer scatterer) static voidconfigure(Properties toolProps) static SimpleSeismicPhasecreatePhase(String name, TauModel tMod) static SimpleSeismicPhasecreatePhase(String name, TauModel tMod, double sourceDepth) static SimpleSeismicPhasecreatePhase(String name, TauModel tMod, double sourceDepth, double receiverDepth) static SimpleSeismicPhasecreatePhase(String name, TauModel tMod, double sourceDepth, double receiverDepth, boolean debug) static List<SeismicPhase>createSeismicPhases(String name, TauModel tMod, double sourceDepth, double receiverDepth, Scatterer scat, boolean debug) static StringendActionString(PhaseInteraction endAction) static doublestatic doublestatic doublegetName()protected static SimpleContigSeismicPhasestatic BooleanlegIsPWave(String currLeg) static boolean[]legsArePWave(ArrayList<String> legs) protected ProtoSeismicPhaseConstructs a branch sequence from the given phase name and tau model.static voidsetMaxDiffraction(double max) static voidsetMaxKmpsLaps(double max) static voidsetMaxRefraction(double max) protected static SimpleSeismicPhasesumBranches(ProtoSeismicPhase proto) Sums the appropriate branches for this phase.
-
Field Details
-
CRUST_MANTLE_FACTORY
public static final int CRUST_MANTLE_FACTORY- See Also:
-
OUTER_CORE_FACTORY
public static final int OUTER_CORE_FACTORY- See Also:
-
INNER_CORE_FACTORY
public static final int INNER_CORE_FACTORY- See Also:
-
maxRefraction
protected static double maxRefractionThe maximum degrees that a Pn or Sn can refract along the moho. Note this is not the total distance, only the segment along the moho. The default is 20 degrees. -
maxDiffraction
protected static double maxDiffractionThe maximum degrees that a Pdiff or Sdiff can diffract along the CMB. Note this is not the total distance, only the segment along the CMB. The default is 60 degrees.
-
-
Method Details
-
getMaxRefraction
public static double getMaxRefraction() -
setMaxRefraction
public static void setMaxRefraction(double max) -
getMaxDiffraction
public static double getMaxDiffraction() -
setMaxDiffraction
public static void setMaxDiffraction(double max) -
getMaxKmpsLaps
public static double getMaxKmpsLaps() -
setMaxKmpsLaps
public static void setMaxKmpsLaps(double max) -
createPhase
- Throws:
TauModelException
-
createPhase
public static SimpleSeismicPhase createPhase(String name, TauModel tMod, double sourceDepth) throws TauModelException - Throws:
TauModelException
-
createPhase
public static SimpleSeismicPhase createPhase(String name, TauModel tMod, double sourceDepth, double receiverDepth) throws TauModelException - Throws:
TauModelException
-
createPhase
public static SimpleSeismicPhase createPhase(String name, TauModel tMod, double sourceDepth, double receiverDepth, boolean debug) throws TauModelException - Throws:
TauModelException
-
configure
-
createSeismicPhases
public static List<SeismicPhase> createSeismicPhases(String name, TauModel tMod, double sourceDepth, double receiverDepth, Scatterer scat, boolean debug) throws TauModelException - Throws:
TauModelException
-
calculateSeismicPhases
public static List<SeismicPhase> calculateSeismicPhases(TauModel tMod, List<PhaseName> phaseNameList, double sourceDepth, List<Double> receiverDepths, Scatterer scatterer) throws TauModelException - Throws:
TauModelException
-
getName
-
legIsPWave
-
legsArePWave
-
parseName
protected ProtoSeismicPhase parseName(TauModel tMod, ArrayList<String> legs) throws TauModelException Constructs a branch sequence from the given phase name and tau model.- Throws:
TauModelException
-
sumBranches
Sums the appropriate branches for this phase.- Throws:
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.
-
internalSumContigPhase
protected static SimpleContigSeismicPhase internalSumContigPhase(ProtoSeismicPhase proto) throws TauModelException - Throws:
TauModelException
-
calcBranchSeqForRayparam
public static List<TauBranch> calcBranchSeqForRayparam(ProtoSeismicPhase proto, double rp) throws TauModelException - Throws:
TauModelException
-
calcBranchSeqForRayparam
public static List<TauBranch> calcBranchSeqForRayparam(ProtoSeismicPhase proto, double rp, SeismicPhaseSegment seg, SeismicPhaseSegment prevSeg) throws TauModelException - Throws:
TauModelException
-
calcForIndex
public static TimeDist calcForIndex(ProtoSeismicPhase proto, int idx, int maxRayParamIndex, double[] rayParams) -
calcPierceForIndex
public static List<TimeDist> calcPierceForIndex(ProtoSeismicPhase proto, int idx, int maxRayParamIndex, double[] rayParams) -
calcStartBranch
-
endActionString
-