All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.sc.seis.TauP.TauP_SetSac

edu.sc.seis.TauP.TauP_Time
   |
   +----edu.sc.seis.TauP.TauP_SetSac

public class TauP_SetSac
extends TauP_Time
Calculate times for phases and set sac headers based on gcarc or dist or station lat and lon and event lat and lon. Note that triplicated phases will cause problems, as there is only one spot to put a time. An improved method would allow a phase to have several t#'s associated with it, so that all arrivals could be marked. Currently however, only the first arrival for a phase name is used. Warning: I assume the evdp header has depth in meters unless the -evdpkm flag is set, in which case I assume kilometers. This may be a problem for users that improperly use kilometers for the depth units. Due to much abuse of the sac depth header units I output a warning message if the depth appears to be in kilometers, ie it is < 1000. This can be safely ignored if the event really is less than 1000 meters deep.


Constructor Index

 o TauP_SetSac(String)
 o TauP_SetSac(TauModel)

Method Index

 o calculate(double)
 o getEvdpkm()
 o init()
preforms intialization of the tool.
 o main(String[])
Allows TauP_SetSac to run as an application.
 o parseCmdLineArgs(String[])
 o printStdUsage()
Prints the command line arguments common to all TauP tools.
 o printStdUsageTail()
 o printUsage()
 o setEvdpkm(boolean)
 o setSacFileNames(String[])
 o start()

Constructors

 o TauP_SetSac
 public TauP_SetSac(TauModel tMod) throws TauModelException
 o TauP_SetSac
 public TauP_SetSac(String modelName) throws TauModelException

Methods

 o getEvdpkm
 public boolean getEvdpkm()
 o setEvdpkm
 public void setEvdpkm(boolean evdpkm)
 o setSacFileNames
 public void setSacFileNames(String sacFileNames[])
 o calculate
 public void calculate(double degrees)
Overrides:
calculate in class TauP_Time
 o init
 public void init() throws IOException
preforms intialization of the tool.

Overrides:
init in class TauP_Time
 o start
 public void start() throws IOException, TauModelException
Overrides:
start in class TauP_Time
 o printStdUsage
 public void printStdUsage()
Prints the command line arguments common to all TauP tools.

Overrides:
printStdUsage in class TauP_Time
 o printStdUsageTail
 public void printStdUsageTail()
Overrides:
printStdUsageTail in class TauP_Time
 o printUsage
 public void printUsage()
Overrides:
printUsage in class TauP_Time
 o parseCmdLineArgs
 public String[] parseCmdLineArgs(String args[]) throws IOException
Overrides:
parseCmdLineArgs in class TauP_Time
 o main
 public static void main(String args[]) throws FileNotFoundException, IOException, StreamCorruptedException, ClassNotFoundException, OptionalDataException
Allows TauP_SetSac to run as an application. Creates an instance of TauP_SetSac. .


All Packages  Class Hierarchy  This Package  Previous  Next  Index