Package edu.sc.seis.TauP
Class RayCalculateable
- java.lang.Object
-
- edu.sc.seis.TauP.RayCalculateable
-
- Direct Known Subclasses:
DistanceRay
,ShootableRay
public abstract class RayCalculateable extends java.lang.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 Summary
Fields Modifier and Type Field Description protected java.lang.Double
azimuth
protected java.lang.Double
backAzimuth
protected java.lang.String
description
protected edu.sc.seis.seisFile.Location
evtLatLon
protected boolean
geodetic
protected java.lang.Double
invFlattening
protected SeismicSourceArgs
sourceArgs
Optional source args for amp calculations.protected edu.sc.seis.seisFile.Location
staLatLon
-
Constructor Summary
Constructors Constructor Description RayCalculateable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.List<Arrival>
calculate(SeismicPhase phase)
java.lang.Double
getAzimuth()
Gets azimuth if available, null otherwise.java.lang.Double
getBackAzimuth()
Gets azimuth if available, null otherwise.java.lang.String
getDescription()
abstract LatLonable
getLatLonable()
java.lang.Double
getNormalizedAzimuth()
Returns azimuth, if available, in the range -180<baz<=180.java.lang.Double
getNormalizedBackAzimuth()
Returns back azimuth, if available, in the range -180<baz<=180.edu.sc.seis.seisFile.Location
getReceiver()
java.lang.Double
getReceiverDepth()
edu.sc.seis.seisFile.Location
getSource()
SeismicSourceArgs
getSourceArgs()
java.lang.Double
getSourceDepth()
boolean
hasAzimuth()
boolean
hasBackAzimuth()
boolean
hasDescription()
boolean
hasReceiver()
boolean
hasReceiverDepth()
boolean
hasSource()
boolean
hasSourceArgs()
boolean
hasSourceDepth()
boolean
isGeodetic()
abstract boolean
isLatLonable()
void
setAzimuth(java.lang.Double azimuth)
void
setBackAzimuth(java.lang.Double backAzimuth)
void
setDescription(java.lang.String desc)
void
setSourceArgs(SeismicSourceArgs sourceArgs)
java.lang.String
toString()
void
withEventAzimuth(edu.sc.seis.seisFile.Location evt, double azimuth)
void
withStationBackAzimuth(edu.sc.seis.seisFile.Location sta, double backazimuth)
-
-
-
Field Detail
-
staLatLon
protected edu.sc.seis.seisFile.Location staLatLon
-
evtLatLon
protected edu.sc.seis.seisFile.Location evtLatLon
-
azimuth
protected java.lang.Double azimuth
-
backAzimuth
protected java.lang.Double backAzimuth
-
geodetic
protected boolean geodetic
-
invFlattening
protected java.lang.Double invFlattening
-
description
protected java.lang.String description
-
sourceArgs
protected SeismicSourceArgs sourceArgs
Optional source args for amp calculations.
-
-
Method Detail
-
calculate
public abstract java.util.List<Arrival> calculate(SeismicPhase phase) throws TauPException
- Throws:
TauPException
-
withEventAzimuth
public void withEventAzimuth(edu.sc.seis.seisFile.Location evt, double azimuth)
-
withStationBackAzimuth
public void withStationBackAzimuth(edu.sc.seis.seisFile.Location sta, double backazimuth)
-
isLatLonable
public abstract boolean isLatLonable()
-
getLatLonable
public abstract LatLonable getLatLonable()
-
hasSourceDepth
public boolean hasSourceDepth()
-
getSourceDepth
public java.lang.Double getSourceDepth()
-
hasSource
public boolean hasSource()
-
getSource
public edu.sc.seis.seisFile.Location getSource()
-
hasReceiverDepth
public boolean hasReceiverDepth()
-
getReceiverDepth
public java.lang.Double getReceiverDepth()
-
hasReceiver
public boolean hasReceiver()
-
getReceiver
public edu.sc.seis.seisFile.Location getReceiver()
-
hasAzimuth
public boolean hasAzimuth()
-
isGeodetic
public boolean isGeodetic()
-
getNormalizedAzimuth
public java.lang.Double getNormalizedAzimuth()
Returns azimuth, if available, in the range -180<baz<=180.- Returns:
- azimuth
-
getAzimuth
public java.lang.Double getAzimuth()
Gets azimuth if available, null otherwise.- Returns:
- azimuth
-
setAzimuth
public void setAzimuth(java.lang.Double azimuth)
-
hasBackAzimuth
public boolean hasBackAzimuth()
-
getNormalizedBackAzimuth
public java.lang.Double getNormalizedBackAzimuth()
Returns back azimuth, if available, in the range -180<baz<=180.- Returns:
- back azimuth
-
getBackAzimuth
public java.lang.Double getBackAzimuth()
Gets azimuth if available, null otherwise.- Returns:
- azimuth
-
setBackAzimuth
public void setBackAzimuth(java.lang.Double backAzimuth)
-
hasSourceArgs
public boolean hasSourceArgs()
-
setSourceArgs
public void setSourceArgs(SeismicSourceArgs sourceArgs)
-
getSourceArgs
public SeismicSourceArgs getSourceArgs()
-
hasDescription
public boolean hasDescription()
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String desc)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-