Package edu.sc.seis.TauP
Class DistanceRay
- java.lang.Object
-
- edu.sc.seis.TauP.RayCalculateable
-
- edu.sc.seis.TauP.DistanceRay
-
- Direct Known Subclasses:
ExactDistanceRay
public class DistanceRay extends RayCalculateable
-
-
Field Summary
Fields Modifier and Type Field Description protected DistanceArgs
args
protected java.lang.Double
azimuth
protected java.lang.Double
backAzimuth
protected java.lang.Double
degrees
protected edu.sc.seis.seisFile.Location
evtLatLon
protected java.lang.Double
flattening
protected boolean
geodetic
protected java.lang.Double
kilometers
protected java.lang.Double
lat
protected java.lang.Double
lon
protected java.lang.Double
radians
protected edu.sc.seis.seisFile.Location
staLatLon
-
Constructor Summary
Constructors Constructor Description DistanceRay(DistanceRay dr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Arrival>
calculate(SeismicPhase phase)
double
getDegrees(double radius)
LatLonable
getLatLonable()
double
getRadians(double radius)
boolean
isLatLonable()
static DistanceRay
ofDegrees(double deg)
static DistanceRay
ofGeodeticStationEvent(edu.sc.seis.seisFile.Location sta, edu.sc.seis.seisFile.Location evt, double flattening)
static DistanceRay
ofKilometers(double km)
static DistanceRay
ofRadians(double rad)
static DistanceRay
ofStationEvent(edu.sc.seis.seisFile.Location sta, edu.sc.seis.seisFile.Location evt)
void
withEventAzimuth(edu.sc.seis.seisFile.Location evt, double azimuth)
void
withStationBackAzimuth(edu.sc.seis.seisFile.Location sta, double backazimuth)
-
-
-
Field Detail
-
radians
protected java.lang.Double radians
-
degrees
protected java.lang.Double degrees
-
kilometers
protected java.lang.Double kilometers
-
staLatLon
protected edu.sc.seis.seisFile.Location staLatLon
-
evtLatLon
protected edu.sc.seis.seisFile.Location evtLatLon
-
lat
protected java.lang.Double lat
-
lon
protected java.lang.Double lon
-
azimuth
protected java.lang.Double azimuth
-
backAzimuth
protected java.lang.Double backAzimuth
-
geodetic
protected boolean geodetic
-
flattening
protected java.lang.Double flattening
-
args
protected DistanceArgs args
-
-
Constructor Detail
-
DistanceRay
public DistanceRay(DistanceRay dr)
-
-
Method Detail
-
ofDegrees
public static DistanceRay ofDegrees(double deg)
-
ofKilometers
public static DistanceRay ofKilometers(double km)
-
ofRadians
public static DistanceRay ofRadians(double rad)
-
ofStationEvent
public static DistanceRay ofStationEvent(edu.sc.seis.seisFile.Location sta, edu.sc.seis.seisFile.Location evt)
-
withEventAzimuth
public void withEventAzimuth(edu.sc.seis.seisFile.Location evt, double azimuth)
-
withStationBackAzimuth
public void withStationBackAzimuth(edu.sc.seis.seisFile.Location sta, double backazimuth)
-
ofGeodeticStationEvent
public static DistanceRay ofGeodeticStationEvent(edu.sc.seis.seisFile.Location sta, edu.sc.seis.seisFile.Location evt, double flattening)
-
calculate
public java.util.List<Arrival> calculate(SeismicPhase phase) throws SlownessModelException, NoSuchLayerException
- Specified by:
calculate
in classRayCalculateable
- Throws:
SlownessModelException
NoSuchLayerException
-
getDegrees
public double getDegrees(double radius)
-
getRadians
public double getRadians(double radius)
-
isLatLonable
public boolean isLatLonable()
- Specified by:
isLatLonable
in classRayCalculateable
-
getLatLonable
public LatLonable getLatLonable()
- Specified by:
getLatLonable
in classRayCalculateable
-
-