- java.lang.Object
-
- spice.basic.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).
-
-
Field Summary
Fields Modifier and Type Field Description static int
BTMIDX
private int
center
static int
CLSIDX
private double
co1max
private double
co1min
private double
co2max
private double
co2min
private double
co3max
private double
co3min
private double[]
corpar
private int
corsys
static int
CTRIDX
static int
CYLSYS
private int
dclass
static int
DSKDSZ
private int
dtype
static int
ETMIDX
private int
frmcde
static int
FRMIDX
static int
GENCLS
static int
LATSYS
static int
MN1IDX
static int
MN2IDX
static int
MN3IDX
static int
MX1IDX
static int
MX2IDX
static int
MX3IDX
static int
NSYPAR
static int
PARIDX
static int
PDTSYS
static int
RECSYS
static int
SRFIDX
private double
start
private double
stop
private int
surfce
static int
SVFCLS
static int
SYSIDX
static int
TYPIDX
-
Constructor Summary
Constructors Constructor Description DSKDescriptor()
No-arguments constructor.DSKDescriptor(double[] descrArray)
Construct a DSK descriptor instance from an array of doubles.DSKDescriptor(DSKDescriptor dskdsc)
Copy constructor.This constructor creates a deep copy.
-
Method Summary
Modifier and Type Method Description int
getCenterID()
Get central body ID.double[][]
getCoordBounds()
Get coordinate bounds.double[]
getCoordParams()
Get coordinate system parameters.int
getCoordSysID()
Get coordinate system ID.int
getDataClass()
Get data class.int
getDataType()
Get data type.int
getFrameID()
Get reference frame ID code.int
getSurfaceID()
Get surface ID.double[]
getTimeBounds()
Get time bounds.double[]
toArray()
Extract descriptor contents into an array of type double.
-
-
-
Field Detail
-
SRFIDX
public static final int SRFIDX
- See Also:
- Constant Field Values
-
CTRIDX
public static final int CTRIDX
- See Also:
- Constant Field Values
-
CLSIDX
public static final int CLSIDX
- See Also:
- Constant Field Values
-
TYPIDX
public static final int TYPIDX
- See Also:
- Constant Field Values
-
FRMIDX
public static final int FRMIDX
- See Also:
- Constant Field Values
-
SYSIDX
public static final int SYSIDX
- See Also:
- Constant Field Values
-
PARIDX
public static final int PARIDX
- See Also:
- Constant Field Values
-
NSYPAR
public static final int NSYPAR
- See Also:
- Constant Field Values
-
MN1IDX
public static final int MN1IDX
- See Also:
- Constant Field Values
-
MX1IDX
public static final int MX1IDX
- See Also:
- Constant Field Values
-
MN2IDX
public static final int MN2IDX
- See Also:
- Constant Field Values
-
MX2IDX
public static final int MX2IDX
- See Also:
- Constant Field Values
-
MN3IDX
public static final int MN3IDX
- See Also:
- Constant Field Values
-
MX3IDX
public static final int MX3IDX
- See Also:
- Constant Field Values
-
BTMIDX
public static final int BTMIDX
- See Also:
- Constant Field Values
-
ETMIDX
public static final int ETMIDX
- See Also:
- Constant Field Values
-
DSKDSZ
public static final int DSKDSZ
- See Also:
- Constant Field Values
-
SVFCLS
public static final int SVFCLS
- See Also:
- Constant Field Values
-
GENCLS
public static final int GENCLS
- See Also:
- Constant Field Values
-
LATSYS
public static final int LATSYS
- See Also:
- Constant Field Values
-
CYLSYS
public static final int CYLSYS
- See Also:
- Constant Field Values
-
RECSYS
public static final int RECSYS
- See Also:
- Constant Field Values
-
PDTSYS
public static final int PDTSYS
- See Also:
- Constant Field Values
-
surfce
private int surfce
-
center
private int center
-
dclass
private int dclass
-
dtype
private int dtype
-
frmcde
private int frmcde
-
corsys
private int corsys
-
corpar
private double[] corpar
-
co1min
private double co1min
-
co1max
private double co1max
-
co2min
private double co2min
-
co2max
private double co2max
-
co3min
private double co3min
-
co3max
private double co3max
-
start
private double start
-
stop
private double stop
-
-
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[]
-
-