|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sc.seis.TauP.TauP_Time
Calculate travel times for different branches using linear interpolation between known slowness samples.
Field Summary | |
protected java.util.Vector |
arrivals
|
protected double |
azimuth
|
protected double |
backAzimuth
|
boolean |
DEBUG
Turns on debugging output. |
protected double |
degrees
|
protected double |
depth
|
protected java.io.DataOutputStream |
dos
|
protected double |
eventLat
|
protected double |
eventLon
|
protected boolean |
GUI
|
protected java.lang.String |
modelName
|
protected boolean |
onlyPrintRayP
|
protected boolean |
onlyPrintTime
|
protected java.lang.String |
outFile
|
protected Outputs |
outForms
|
protected java.util.Vector |
phaseNames
names of phases to be used, ie PKIKP. |
protected java.util.Vector |
phases
vector to hold the SeismicPhases for the phases named in phaseNames. |
protected double |
stationLat
|
protected double |
stationLon
|
protected TauModel |
tMod
Tau model calculated previously. |
protected TauModel |
tModDepth
TauModel derived from tMod by correcting it for a non-surface source. |
protected java.util.Properties |
toolProps
|
boolean |
verbose
Turns on verbose output. |
Constructor Summary | |
TauP_Time()
|
|
TauP_Time(java.lang.String modelName)
creates a TauP_Time object with the tau model specified by modelName already loaded. |
|
TauP_Time(TauModel tMod)
|
Method Summary | |
void |
appendPhaseName(PhaseName phaseName)
|
void |
appendPhaseName(java.lang.String phaseName)
|
void |
calcTime(double degrees)
|
void |
calculate(double degrees)
|
void |
clearArrivals()
|
void |
clearPhaseNames()
|
void |
depthCorrect(double depth)
corrects the TauModel for the given source depth. |
void |
destroy()
|
Arrival |
getArrival(int i)
|
Arrival[] |
getArrivals()
|
double[] |
getDisconDepths()
|
int |
getNumArrivals()
|
int |
getNumPhases()
|
java.lang.String[] |
getPhaseNames()
|
static java.util.List |
getPhaseNames(java.lang.String phaseName)
|
java.lang.String |
getPhaseNameString()
|
double |
getSourceDepth()
|
TauModel |
getTauModel()
|
java.lang.String |
getTauModelName()
|
void |
init()
preforms intialization of the tool. |
void |
loadTauModel(java.lang.String modelName)
|
static void |
main(java.lang.String[] args)
Allows TauP_Time to run as an application. |
protected java.lang.String[] |
parseCmdLineArgs(java.lang.String[] args)
|
double[] |
parseDegreeList(java.lang.String degList)
Parses a comma separated list of distances and returns them in an array. |
void |
parsePhaseList(java.lang.String phaseList)
parses a comma separated list of phase names and adds them to the phaseNames vector. |
void |
printHelp()
|
void |
printResult(java.io.DataOutputStream dos)
|
void |
printResult(java.io.Writer out)
|
void |
printStdUsage()
Prints the command line arguments common to all TauP tools. |
void |
printStdUsageHead()
|
void |
printStdUsageTail()
|
void |
printUsage()
|
protected void |
readPhaseFile(java.lang.String filename)
Reads in list of phase names from a text file. |
protected void |
readTauModel()
Reads the velocity model, slowness model, and tau model from a file saved using Java's Serializable interface. |
void |
recalcPhases()
reclaulates the given phases using a possibly new or changed tau model. |
void |
setPhaseNames(PhaseName[] phaseNames)
|
void |
setPhaseNames(java.lang.String[] phaseNames)
|
void |
setSourceDepth(double depth)
|
void |
setTauModel(TauModel tMod)
|
void |
sortArrivals()
|
void |
start()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public boolean DEBUG
public boolean verbose
protected java.lang.String modelName
protected TauModel tMod
TauModel
protected transient TauModel tModDepth
protected java.util.Vector phases
protected java.util.Vector phaseNames
protected double depth
protected double degrees
protected double azimuth
protected double backAzimuth
protected double stationLat
protected double stationLon
protected double eventLat
protected double eventLon
protected java.util.Vector arrivals
protected boolean GUI
protected boolean onlyPrintRayP
protected boolean onlyPrintTime
protected java.lang.String outFile
protected java.io.DataOutputStream dos
protected java.util.Properties toolProps
protected Outputs outForms
Constructor Detail |
public TauP_Time()
public TauP_Time(TauModel tMod) throws TauModelException
public TauP_Time(java.lang.String modelName) throws TauModelException
TauModelException
- if the file can't be found or is corrupted in some way.Method Detail |
public java.lang.String[] getPhaseNames()
public java.lang.String getPhaseNameString()
public void setPhaseNames(java.lang.String[] phaseNames)
public void setPhaseNames(PhaseName[] phaseNames)
public static java.util.List getPhaseNames(java.lang.String phaseName)
public void appendPhaseName(java.lang.String phaseName)
public void appendPhaseName(PhaseName phaseName)
public int getNumPhases()
public void clearPhaseNames()
public double getSourceDepth()
public void setSourceDepth(double depth)
public java.lang.String getTauModelName()
public TauModel getTauModel()
public void setTauModel(TauModel tMod)
public void loadTauModel(java.lang.String modelName) throws java.io.FileNotFoundException, java.io.InvalidClassException, java.io.IOException, java.io.StreamCorruptedException, java.io.OptionalDataException, TauModelException
java.io.FileNotFoundException
java.io.InvalidClassException
java.io.IOException
java.io.StreamCorruptedException
java.io.OptionalDataException
TauModelException
public double[] getDisconDepths()
public void clearArrivals()
public int getNumArrivals()
public Arrival getArrival(int i)
public Arrival[] getArrivals()
protected void readTauModel() throws java.io.FileNotFoundException, java.io.InvalidClassException, java.io.IOException, java.io.StreamCorruptedException, java.io.OptionalDataException, TauModelException
java.io.FileNotFoundException
java.io.InvalidClassException
java.io.IOException
java.io.StreamCorruptedException
java.io.OptionalDataException
TauModelException
protected void readPhaseFile(java.lang.String filename) throws java.io.IOException
java.io.IOException
public void parsePhaseList(java.lang.String phaseList)
public double[] parseDegreeList(java.lang.String degList)
protected java.lang.String[] parseCmdLineArgs(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void sortArrivals()
public void calculate(double degrees) throws TauModelException
TauModelException
public void calcTime(double degrees)
public void depthCorrect(double depth) throws TauModelException
TauModelException
public void recalcPhases()
public void printResult(java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
public void printResult(java.io.Writer out) throws java.io.IOException
java.io.IOException
public void init() throws java.io.IOException
java.io.IOException
public void printHelp()
public void start() throws java.io.IOException, TauModelException, TauPException
java.io.IOException
TauModelException
TauPException
public void destroy() throws java.io.IOException
java.io.IOException
public void printStdUsageHead()
public void printStdUsage()
public void printStdUsageTail()
public void printUsage()
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException, java.io.IOException, java.io.StreamCorruptedException, java.lang.ClassNotFoundException, java.io.OptionalDataException
java.io.FileNotFoundException
java.io.IOException
java.io.StreamCorruptedException
java.lang.ClassNotFoundException
java.io.OptionalDataException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |