Package skyview.geometry.csys
Class PositionAngleConverter
- java.lang.Object
-
- skyview.geometry.csys.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.
-
-
Constructor Summary
Constructors Constructor Description PositionAngleConverter(CoordinateSystem input, CoordinateSystem output)
-
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.
-
-
-
Constructor Detail
-
PositionAngleConverter
public PositionAngleConverter(CoordinateSystem input, CoordinateSystem output) throws TransformationException
- Throws:
TransformationException
-
-
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).
-
-