Module JNISpice
Package spice.basic

Class DSKDescriptor


  • public class DSKDescriptor
    extends java.lang.Object
    Class DSKDescriptor represents DSK segment descriptors and declares DSK constants.

    Version 1.0.0 15-NOV-2016 (NJB)

    Based on the DSK class of the Alpha DSK JNISpice Toolkit.
    
    Index parameters declared in the Alpha DSK Toolkit
    DSK were changed from Fortran style (1-based)
    to Java style (0-based).
    
    • Constructor Detail

      • DSKDescriptor

        public DSKDescriptor​(double[] descrArray)
        Construct a DSK descriptor instance from an array of doubles.
        Parameters:
        descrArray - double[]
      • DSKDescriptor

        public DSKDescriptor()
        No-arguments constructor.
      • DSKDescriptor

        public DSKDescriptor​(DSKDescriptor dskdsc)
        Copy constructor.This constructor creates a deep copy.
        Parameters:
        dskdsc - DSKDescriptor
    • Method Detail

      • getSurfaceID

        public int getSurfaceID()
        Get surface ID.
        Returns:
        surface
      • getCenterID

        public int getCenterID()
        Get central body ID.
        Returns:
        center
      • getDataClass

        public int getDataClass()
        Get data class.
        Returns:
        dclass
      • getDataType

        public int getDataType()
        Get data type.
        Returns:
        dtype
      • getFrameID

        public int getFrameID()
        Get reference frame ID code.
        Returns:
        frmcde
      • getCoordSysID

        public int getCoordSysID()
        Get coordinate system ID.
        Returns:
        corsys
      • getCoordParams

        public double[] getCoordParams()
        Get coordinate system parameters.
        Returns:
        params double[]
      • getCoordBounds

        public double[][] getCoordBounds()
        Get coordinate bounds.
           The output array contains the minimum and maximum values
           of the ith coordinate, respectively, in the elements
           indexed
        
              [i][0]
              [i][1]
        
           The range of i is [0,2].
        
           
        Returns:
        double[][]
      • getTimeBounds

        public double[] getTimeBounds()
        Get time bounds.
        Returns:
        bounds double[]
      • toArray

        public double[] toArray()
        Extract descriptor contents into an array of type double.
        Returns:
        array double[]