Package edu.sc.seis.TauP.cmdline.args
Class PhaseArgs
java.lang.Object
edu.sc.seis.TauP.cmdline.args.PhaseArgs
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractPhaseNames(String phaseNames) Parse comma separated list of phase names, expanding convience phase names like ttp into real phase names.static StringgetPhaseNamesAsString(List<PhaseName> phaseNameList) booleanisEmpty()readPhaseFile(String filename) Reads in list of phase names from a text file.voidsetPhaseFiles(List<String> phaseFile) voidsetPhaseNames(List<String> phaseNamesStr) names of phases to be used, ie P,S,PKIKP.voidstatic String[]splitPhaseNameList(String phaseList)
-
Field Details
-
DEFAULT_PHASES
- See Also:
-
-
Constructor Details
-
PhaseArgs
public PhaseArgs()
-
-
Method Details
-
extractPhaseNames
Parse comma separated list of phase names, expanding convience phase names like ttp into real phase names.- Parameters:
phaseNames- string to parse- Returns:
- parsed list of phase names
-
splitPhaseNameList
-
setTool
-
setPhaseNames
names of phases to be used, ie P,S,PKIKP.- Parameters:
phaseNamesStr- phases to calculate
-
setPhaseFiles
-
parsePhaseNameList
- Throws:
PhaseParseException
-
getPhaseNamesAsString
-
readPhaseFile
Reads in list of phase names from a text file. So long as each phase name is separated by some whitespace, " " or newline or tab, it should read them fine. Also, comments are allowed, either # or // are comments to the end of the line while c style slash-star make a block a comment.- Parameters:
filename- file to read- Returns:
- list of phase names from file
- Throws:
IOException- if problem reading file
-
isEmpty
public boolean isEmpty()
-