Class TauP_Path

  • Direct Known Subclasses:
    TauP_Wavefront

    public class TauP_Path
    extends TauP_Pierce
    Calculate travel paths for different phases using a linear interpolated ray parameter between known slowness samples.
    • Field Detail

      • mapWidthUnit

        protected java.lang.String mapWidthUnit
      • mapWidth

        protected float mapWidth
      • gmtScript

        protected boolean gmtScript
      • withTime

        protected boolean withTime
      • psFile

        protected java.lang.String psFile
      • maxPathTime

        protected float maxPathTime
      • maxPathInc

        protected static double maxPathInc
    • Method Detail

      • setMapWidth

        public void setMapWidth​(float mapWidth)
        Sets the gmt map width to be used with the output script and for creating the circles for each discontinuity. Default is 6 inches.
      • getMapWidth

        public float getMapWidth()
        Gets the gmt map width to be used with the output script and for creating the circles for each discontinuity.
      • getMapWidthUnit

        public java.lang.String getMapWidthUnit()
      • setMapWidthUnit

        public void setMapWidthUnit​(java.lang.String mapWidthUnit)
      • getMaxPathTime

        public float getMaxPathTime()
      • setMaxPathTime

        public void setMaxPathTime​(float maxPathTime)
      • isGmtScript

        public boolean isGmtScript()
      • setGmtScript

        public void setGmtScript​(boolean gmtScript)
      • getMaxPathInc

        public static double getMaxPathInc()
      • setMaxPathInc

        public static void setMaxPathInc​(double max)
      • printResult

        public void printResult​(java.io.PrintWriter out)
                         throws java.io.IOException
        Overrides:
        printResult in class TauP_Pierce
        Throws:
        java.io.IOException
      • printDistRadius

        protected void printDistRadius​(java.io.Writer out,
                                       double calcDist,
                                       double radius)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • printLatLon

        protected void printLatLon​(java.io.Writer out,
                                   double calcDist)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • printScriptBeginning

        public void printScriptBeginning​(java.io.PrintWriter out)
                                  throws java.io.IOException
        Description copied from class: TauP_Tool
        a noop that allows overriding classes to print things before results are calculated. For example to set up GMT commands before drawing paths.
        Overrides:
        printScriptBeginning in class TauP_Tool
        Throws:
        java.io.IOException
      • printScriptBeginningSVG

        public void printScriptBeginningSVG​(java.io.PrintWriter out)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • printScriptBeginning

        public void printScriptBeginning​(java.io.PrintWriter out,
                                         java.lang.String psFile)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • printUsage

        public void printUsage()
        Description copied from class: TauP_Pierce
        prints the known command line flags.
        Overrides:
        printUsage in class TauP_Pierce
      • parseCmdLineArgs

        public java.lang.String[] parseCmdLineArgs​(java.lang.String[] args)
                                            throws java.io.IOException
        Overrides:
        parseCmdLineArgs in class TauP_Pierce
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Allows TauP_Path to run as an application. Creates an instance of TauP_Path and calls TauP_Path.init() and TauP_Path.start(). ToolRun.main should be used instead.
        Throws:
        java.io.IOException