Class PositionAngleConverter


  • public class PositionAngleConverter
    extends java.lang.Object
    This class implements an algorithm that calculates the offsets between the position angle expressed with respect to the poles in two different coordinate systems. If we transform between coordinate systems we are likely to want to express position angles with reference to the poles in the new coordinates, rather than the pole in the old coordinate system.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getOffsetAngle​(double[] unitIn)
      Calculate the offset between the position angles in the two coordinate systems at the point defined by the input unit vector (presumed to be in the input coordinate system).
      static void main​(java.lang.String[] args)
      Main program for testing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Main program for testing. Usage: PositionAngleConverter -- Defaults to J2000 to Galactic or PositionAngleConverter output -- input defaults to J2000 or PositionAngleConverter input output
        Throws:
        java.lang.Exception
      • getOffsetAngle

        public double getOffsetAngle​(double[] unitIn)
        Calculate the offset between the position angles in the two coordinate systems at the point defined by the input unit vector (presumed to be in the input coordinate system).