Package edu.sc.seis.TauP
Class DistAz
- java.lang.Object
-
- edu.sc.seis.TauP.DistAz
-
public class DistAz extends java.lang.Object
Distance, azimuth and back azimuth between two lat,lon pairs.
-
-
Field Summary
Fields Modifier and Type Field Description static double
wgs85_flattening
static double
wgs85_invflattening
static double
wgs85_meanEarthRadius
-
Constructor Summary
Constructors Constructor Description DistAz(double lat1, double lon1, double lat2, double lon2)
c lat1 Latitude of first point (+N, -S) in degrees c lon1 Longitude of first point (+E, -W) in degrees c lat2 Latitude of second point c lon2 Longitude of second point c c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from pt.DistAz(double lat1, double lon1, double lat2, double lon2, double flattening)
DistAz(edu.sc.seis.seisFile.fdsnws.quakeml.Event ev, edu.sc.seis.seisFile.fdsnws.stationxml.Channel chan)
c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from channel to event in degrees c getBaz() Back Azimuth from event to channel in degreesDistAz(edu.sc.seis.seisFile.fdsnws.quakeml.Origin origin, edu.sc.seis.seisFile.fdsnws.stationxml.Channel chan)
c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from channel to origin in degrees c getBaz() Back Azimuth from origin to channel in degreesDistAz(edu.sc.seis.seisFile.Location eventLoc, edu.sc.seis.seisFile.fdsnws.stationxml.Channel chan)
c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from channel to origin in degrees c getBaz() Back Azimuth from origin to channel in degreesDistAz(edu.sc.seis.seisFile.Location loc1, edu.sc.seis.seisFile.Location loc2)
c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from loc1 to loc2 in degrees c getBaz() Back Azimuth from loc2 to loc1 in degreesDistAz(edu.sc.seis.seisFile.Location loc1, edu.sc.seis.seisFile.Location loc2, double flattening)
c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from loc1 to loc2 in degrees c getBaz() Back Azimuth from loc2 to loc1 in degrees
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static double
degreesToKilometers(double degrees)
static double
degreesToKilometers(double degrees, double radius)
boolean
equals(java.lang.Object o)
double
getAz()
double
getBaz()
double
getDelta()
double
getRadialAzimuth()
double
getTransverseAzimuth()
int
hashCode()
static double
kilometersToDegrees(double kilometers, double radius)
static double
kmPerDeg()
static double
kmPerDeg(double radius)
-
-
-
Field Detail
-
wgs85_invflattening
public static final double wgs85_invflattening
- See Also:
- Constant Field Values
-
wgs85_flattening
public static final double wgs85_flattening
- See Also:
- Constant Field Values
-
wgs85_meanEarthRadius
public static final double wgs85_meanEarthRadius
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DistAz
public DistAz(edu.sc.seis.seisFile.fdsnws.quakeml.Event ev, edu.sc.seis.seisFile.fdsnws.stationxml.Channel chan)
c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from channel to event in degrees c getBaz() Back Azimuth from event to channel in degrees
-
DistAz
public DistAz(edu.sc.seis.seisFile.fdsnws.quakeml.Origin origin, edu.sc.seis.seisFile.fdsnws.stationxml.Channel chan)
c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from channel to origin in degrees c getBaz() Back Azimuth from origin to channel in degrees
-
DistAz
public DistAz(edu.sc.seis.seisFile.Location eventLoc, edu.sc.seis.seisFile.fdsnws.stationxml.Channel chan)
c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from channel to origin in degrees c getBaz() Back Azimuth from origin to channel in degrees
-
DistAz
public DistAz(edu.sc.seis.seisFile.Location loc1, edu.sc.seis.seisFile.Location loc2)
c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from loc1 to loc2 in degrees c getBaz() Back Azimuth from loc2 to loc1 in degrees
-
DistAz
public DistAz(edu.sc.seis.seisFile.Location loc1, edu.sc.seis.seisFile.Location loc2, double flattening)
c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from loc1 to loc2 in degrees c getBaz() Back Azimuth from loc2 to loc1 in degrees
-
DistAz
public DistAz(double lat1, double lon1, double lat2, double lon2)
c lat1 Latitude of first point (+N, -S) in degrees c lon1 Longitude of first point (+E, -W) in degrees c lat2 Latitude of second point c lon2 Longitude of second point c c getDelta() Great Circle Arc distance in degrees c getAz() Azimuth from pt. 1 to pt. 2 in degrees c getBaz() Back Azimuth from pt. 2 to pt. 1 in degrees
-
DistAz
public DistAz(double lat1, double lon1, double lat2, double lon2, double flattening)
-
-
Method Detail
-
getDelta
public double getDelta()
-
getAz
public double getAz()
-
getBaz
public double getBaz()
-
getRadialAzimuth
public double getRadialAzimuth()
-
getTransverseAzimuth
public double getTransverseAzimuth()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
kmPerDeg
public static double kmPerDeg()
-
kmPerDeg
public static double kmPerDeg(double radius)
-
degreesToKilometers
public static double degreesToKilometers(double degrees)
-
degreesToKilometers
public static double degreesToKilometers(double degrees, double radius)
-
kilometersToDegrees
public static double kilometersToDegrees(double kilometers, double radius)
-
-