Class DistanceRay

    • Method Detail

      • ofKilometers

        public static DistanceKmRay ofKilometers​(double km)
      • ofExactDegrees

        public static ExactDistanceRay ofExactDegrees​(double deg)
      • ofExactKilometers

        public static ExactDistanceRay ofExactKilometers​(double km)
      • ofExactRadians

        public static ExactDistanceRay ofExactRadians​(double rad)
      • ofEventStation

        public static DistanceAngleRay ofEventStation​(edu.sc.seis.seisFile.LatLonLocatable evt,
                                                      edu.sc.seis.seisFile.LatLonLocatable sta)
      • ofGeodeticEventStation

        public static DistanceAngleRay ofGeodeticEventStation​(edu.sc.seis.seisFile.LatLonLocatable evt,
                                                              edu.sc.seis.seisFile.LatLonLocatable sta,
                                                              net.sf.geographiclib.Geodesic geod)
        Creates distance ray for the angle between the event and station using the given geodesic. The distance is calculated via Geographiclib and the resulting meters are converted to degrees on a sphere of radius (2a+b)/3, the average radius of the ellipsoid from the geodesic.
        Parameters:
        evt - event location
        sta - station location
        geod - geodesic representing the ellipsoid, often WSG84
        Returns:
        Distance ray for the angle on the average sphere
      • getDegrees

        public abstract double getDegrees​(double radius)
      • getRadians

        public abstract double getRadians​(double radius)
      • getKilometers

        public abstract double getKilometers​(double radius)
      • calcRadiansInRange

        public java.util.List<java.lang.Double> calcRadiansInRange​(double minRadian,
                                                                   double maxRadian,
                                                                   double radius,
                                                                   boolean phaseBothHemisphere)