public final class SpkRecord extends Object
Modifier and Type | Method and Description |
---|---|
static double[] |
evaluateType2(double epoch,
double[] record)
Evaluate a single data record from an PCK or SPK segment of type 2 (Chebyshev Polynomials, 3 components).
|
static double[] |
evaluateType3(double epoch,
double[] record)
Evaluate a single data record from asegment of type 3 (Chebyshev Polynomials, position and velocity).
|
static double[] |
readType2(int handle,
double[] descr,
double epoch)
Read a single SPK data record from a segment of type 2 (Chebyshev, position only).
|
static double[] |
readType3(int handle,
double[] descr,
double epoch)
Read a single SPK data record from a segment of type 3 (Chebyshev coefficients, position and velocity).
|
public static double[] readType2(int handle, double[] descr, double epoch) throws PatriusException
Based on the SPKR02 routine from the SPICE library.
handle
- File handledescr
- Segment descriptorepoch
- Evaluation epochThe structure of the record is as follows:
+--------------------------------------+ | record size (excluding this element) | +--------------------------------------+ | Coverage interval midpoint | +--------------------------------------+ | Coverage interval radius | +--------------------------------------+ | Coeffs for X position component | +--------------------------------------+ | Coeffs for Y position component | +--------------------------------------+ | Coeffs for Z position component | +--------------------------------------+In the above record:
PatriusException
- if there is a problem reading the records.public static double[] evaluateType2(double epoch, double[] record) throws PatriusException
Based on the SPKE02 routine from the SPICE library.
epoch
- Evaluation epochrecord
- Data recordPatriusException
- if there is a problem with the number of coefs or the domain radiuspublic static double[] readType3(int handle, double[] descr, double epoch) throws PatriusException
Based on the SPKR03 routine from the SPICE library.
handle
- File handledescr
- Segment descriptorepoch
- Evaluation epoch+--------------------------------------+ | record size (excluding this element) | +--------------------------------------+ | Coverage interval midpoint | +--------------------------------------+ | Coverage interval radius | +--------------------------------------+ | Coeffs for X position component | +--------------------------------------+ | Coeffs for Y position component | +--------------------------------------+ | Coeffs for Z position component | +--------------------------------------+ | Coeffs for X velocity component | +--------------------------------------+ | Coeffs for Y velocity component | +--------------------------------------+ | Coeffs for Z velocity component | +--------------------------------------+In the above record:
PatriusException
- if there is a problem reading the recordspublic static double[] evaluateType3(double epoch, double[] record) throws PatriusException
Based on the SPKE02 routine from the SPICE library
epoch
- Evaluation epochrecord
- Data recordPatriusException
- if there is a problem with the number of coefs or the domain radiusCopyright © 2023 CNES. All rights reserved.