Class RayCalculateable

java.lang.Object
edu.sc.seis.TauP.RayCalculateable
Direct Known Subclasses:
DistanceRay, ShootableRay, TimeRay

public abstract class RayCalculateable extends Object
Base class for information used to calculate a particular path for a seismic phase. For example distance from source to receiver, or takeoff angle from source.
  • Field Details

    • staLatLon

      protected edu.sc.seis.seisFile.LatLonLocatable staLatLon
    • evtLatLon

      protected edu.sc.seis.seisFile.LatLonLocatable evtLatLon
    • azimuth

      protected Double azimuth
    • backAzimuth

      protected Double backAzimuth
    • distCalc

      protected DistanceCalc distCalc
    • description

      protected String description
    • seismicSource

      protected SeismicSource seismicSource
      Optional source args for amp calculations.
  • Constructor Details

    • RayCalculateable

      public RayCalculateable(DistanceCalc distCalc)
  • Method Details

    • insertSeismicSource

      public void insertSeismicSource(edu.sc.seis.seisFile.LatLonLocatable evtLoc)
    • calculate

      public abstract List<Arrival> calculate(SeismicPhase phase) throws TauPException
      Throws:
      TauPException
    • withEventAzimuth

      public void withEventAzimuth(edu.sc.seis.seisFile.LatLonLocatable evt, double azimuth)
    • withStationBackAzimuth

      public void withStationBackAzimuth(edu.sc.seis.seisFile.LatLonLocatable sta, double backazimuth)
    • isLatLonable

      public abstract boolean isLatLonable()
    • getLatLonable

      public abstract LatLonable getLatLonable()
    • hasSourceDepth

      public boolean hasSourceDepth()
    • getSourceDepth

      public Double getSourceDepth()
    • hasSource

      public boolean hasSource()
    • getSource

      public edu.sc.seis.seisFile.LatLonLocatable getSource()
    • hasReceiverDepth

      public boolean hasReceiverDepth()
    • getReceiverDepth

      public Double getReceiverDepth()
    • hasReceiver

      public boolean hasReceiver()
    • getReceiver

      public edu.sc.seis.seisFile.LatLonLocatable getReceiver()
    • hasAzimuth

      public boolean hasAzimuth()
    • getDistCalc

      public DistanceCalc getDistCalc()
    • getGeodesic

      public net.sf.geographiclib.Geodesic getGeodesic()
    • getNormalizedAzimuth

      public Double getNormalizedAzimuth()
      Returns azimuth, if available, in the range -180<baz<=180.
      Returns:
      azimuth
    • normalizAzimuth

      public static Double normalizAzimuth(Double az)
    • getAzimuth

      public Double getAzimuth()
      Gets azimuth if available, null otherwise.
      Returns:
      azimuth
    • setAzimuth

      public void setAzimuth(Double azimuth)
    • hasBackAzimuth

      public boolean hasBackAzimuth()
    • getNormalizedBackAzimuth

      public Double getNormalizedBackAzimuth()
      Returns back azimuth, if available, in the range -180<baz<=180.
      Returns:
      back azimuth
    • getBackAzimuth

      public Double getBackAzimuth()
      Gets azimuth if available, null otherwise.
      Returns:
      azimuth
    • setBackAzimuth

      public void setBackAzimuth(Double backAzimuth)
    • hasMw

      public boolean hasMw()
    • getMw

      public float getMw()
    • getMoment

      public double getMoment()
    • hasFaultPlane

      public boolean hasFaultPlane()
    • getFaultPlane

      public FaultPlane getFaultPlane()
    • getAttenuationFrequency

      public double getAttenuationFrequency()
    • getNumFrequencies

      public int getNumFrequencies()
    • hasSeismicSource

      public boolean hasSeismicSource()
    • setSeismicSource

      public void setSeismicSource(SeismicSource source)
    • getSeismicSource

      public SeismicSource getSeismicSource()
    • hasDescription

      public boolean hasDescription()
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String desc)
    • toString

      public String toString()
      Overrides:
      toString in class Object