Class PositionAngleConverter

java.lang.Object
skyview.geometry.csys.PositionAngleConverter

public class PositionAngleConverter extends 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.
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Main program for testing. Usage: PositionAngleConverter -- Defaults to J2000 to Galactic or PositionAngleConverter output -- input defaults to J2000 or PositionAngleConverter input output
      Throws:
      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).