public final class SpiceFrame extends Object
It is build as an adaptation of the framex.for file from the SPICE library.
| Modifier and Type | Field and Description |
|---|---|
static int |
CK
CK frame type.
|
static int |
INERTL
Inertial frame type.
|
static int |
NINERT
Number of inertial frames.
|
static int |
PCK
PCK frame type.
|
static int |
TK
TK frame type.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
frameId2Name(int code)
Retrieve the name of a reference frame associated with a SPICE ID code.
|
static boolean |
frameInfo(int frCode,
int[] cent,
int[] frClass,
int[] classId)
Retrieve the minimal attributes associated with a frame needed for converting transformations to and from it.
|
static int |
frameName2Id(String frame)
Look up the frame ID code associated with a string.
|
static int |
frameName2IdBypass(CounterArray usrctr,
String[] savnam,
int[] savcde,
String nameF)
Translate a string containing a frame name to its ID code, but bypass calling frameName2Id and return saved value
provided by the caller if the name is the same as the saved name and the POOL state did not change.
|
static boolean |
getFrameFromClass(int frClass,
int classId,
int[] frCode,
String[] frName,
int[] cent)
Getter for the frame name, frame ID, and center associated with a given frame class and class ID.
|
static boolean |
isInertial(int code)
Determine if a frame ID code corresponds to an inertial frame code.
|
public static final int NINERT
public static final int INERTL
public static final int PCK
public static final int CK
public static final int TK
public static String frameId2Name(int code) throws PatriusException
This routine is a translation of FRMNAM from the SPICE library.
code - an integer code for a reference framePatriusException - if there is a problem with the counter array or with the poolpublic static int frameName2Id(String frame) throws PatriusException
frame - The name of some reference framePatriusException - if there is a problem with the counter array or with the poolpublic static boolean frameInfo(int frCode,
int[] cent,
int[] frClass,
int[] classId)
throws PatriusException
This method is based on the FRINFO routine of the SPICE library.
frCode - the ID code for some framecent - (out) the center of the framefrClass - (out) the class (type) of the frameclassId - (out) the ID code for the frame within its classtrue if the requested information is availablePatriusException - if there is an initialization problempublic static boolean getFrameFromClass(int frClass,
int classId,
int[] frCode,
String[] frName,
int[] cent)
Method based on the CCIFRM routine from the SPICE library.
frClass - Class of frameclassId - Class ID of framefrCode - (out) ID code of the frame identified by FRCLSS, CLSSIDfrName - (out) Name of the frame identified by FRCLSS, CLSSIDcent - (out) Center of the frame identified by FRCLSS, CLSSItrue if the requested information is availablepublic static int frameName2IdBypass(CounterArray usrctr, String[] savnam, int[] savcde, String nameF) throws PatriusException
Based on the ZZNAMFRM routine of the SPICE library.
usrctr - POOL state counter saved by the callersavnam - Frame name saved by the callersavcde - Frame ID code saved by the callernameF - Frame namePatriusException - if there is a problem checking a counter update or translating the name to Idpublic static boolean isInertial(int code)
code - frame SPICE ID codeCopyright © 2025 CNES. All rights reserved.