Module JNISpice
Package spice.basic

Class RADecCoordinates


  • public class RADecCoordinates
    extends Coordinates
    Class RADecCoordinates represents sets of coordinates expressed in the right ascension/declination system: positions are specified by radius, right ascension, and declination.

    Right ascension increases in the counterclockwise sense about the +Z axis. The range of right ascension is 0-360 degrees.

    Declination of a point is the angle between the X-Y plane and the vector from the origin to the point.

    Version 1.0.0 18-DEC-2009 (NJB)

    • Field Detail

      • radius

        private double radius
      • rightAscension

        private double rightAscension
      • declination

        private double declination
    • Constructor Detail

      • RADecCoordinates

        public RADecCoordinates()
        No-arguments constructor.
      • RADecCoordinates

        public RADecCoordinates​(RADecCoordinates coords)
        Copy constructor.

        This method creates a deep copy.

        Parameters:
        coords - RADecCoordinates
      • RADecCoordinates

        public RADecCoordinates​(double radius,
                                double rightAscension,
                                double declination)
                         throws SpiceException
        Construct a RADecCoordinates instance from a radius, RA, and declination.Angular units are radians.
        Parameters:
        radius - double
        declination - double
        rightAscension - double
        Throws:
        SpiceException - exception
      • RADecCoordinates

        public RADecCoordinates​(Vector3 v)
                         throws SpiceException
        Construct a RADecCoordinates instance from a 3-vector.
        Parameters:
        v - Vector3
        Throws:
        SpiceException - exception
    • Method Detail

      • getRadius

        public double getRadius()
        Return radius.
        Returns:
        double
      • getRightAscension

        public double getRightAscension()
        Return RA in radians.
        Returns:
        double
      • getDeclination

        public double getDeclination()
        Return declination in radians.
        Returns:
        double
      • getRADRecJacobian

        public Matrix33 getRADRecJacobian()
                                   throws SpiceException
        Return the Jacobian matrix of the RA/Dec-to-rectangular coordinate transformation at the point specified by this instance.
        Returns:
        Matrix33
        Throws:
        SpiceException - exception
      • getRecRADJacobian

        public static Matrix33 getRecRADJacobian​(Vector3 v)
                                          throws SpiceException
        Return the Jacobian matrix of the rectangular-to-RA/Dec coordinate transformation at the point specified by a 3-vector.
        Parameters:
        v - Vector3
        Returns:
        Matrix33
        Throws:
        SpiceException - exception