Package edu.sc.seis.TauP
Class PhaseName
java.lang.Object
edu.sc.seis.TauP.PhaseName
- All Implemented Interfaces:
Serializable
Convenience class that allows sac header variables to be associated with a
seismic phase name.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()static PhaseNameParses phase name of the form name or name-sachdrs where name is a seismic phase name according to the TauP phase naming convention and sachdrs is one or more sac header numbers, a, x, 0 to 9, into with to set the times when using taup setsac.intsacTNumForTriplication(int index) Gets sac header for the index triplication.toString()
-
Field Details
-
name
name of the phase, ie PKIKP -
sacTNum
public int sacTNumsac t header to be associated with the phase -
sacTNumTriplication
list of sac t headers to be associated with the phase, including n triplications
-
-
Constructor Details
-
PhaseName
- Throws:
PhaseParseException
-
PhaseName
- Throws:
PhaseParseException
-
-
Method Details
-
parseName
Parses phase name of the form name or name-sachdrs where name is a seismic phase name according to the TauP phase naming convention and sachdrs is one or more sac header numbers, a, x, 0 to 9, into with to set the times when using taup setsac. The x value in a list means to skip the nth arrival. The sachrds is ignored for all other tools.- Parameters:
name- phase name with optional sac headers- Returns:
- parsed phase name
- Throws:
PhaseParseException- if unable to parse the name
-
equals
-
getName
-
sacTNumForTriplication
public int sacTNumForTriplication(int index) Gets sac header for the index triplication. Zero is the first arrival, 1 is next arrival, etc. Index zero should be same as this.sacTNum.- Parameters:
index- triplication index- Returns:
- index arrival for the phase
-
toString
-