void frinfo_c ( SpiceInt frcode,
SpiceBoolean *found )
Retrieve the minimal attributes associated with a frame
needed for converting transformations to and from it.
VARIABLE I/O DESCRIPTION
-------- --- --------------------------------------------------
frcode I the idcode for some frame
cent O the center of the frame
frclss O the class (type) of the frame
clssid O the idcode for the frame within its class.
found O SPICETRUE if the requested information is available.
frcode is the ID code for some reference frame.
cent is the body ID code for the center of the reference
frame (if such an ID code is appropriate).
frclss is the class or type of the frame. This identifies
which subsystem will be used to perform frame
clssid is the ID-code used for the frame within its class.
This may be different from the frame ID-code.
found is SPICETRUE if cent, frclss and frcode are available.
Otherwise, found is returned with the value SPICEFALSE.
This is a low level routine needed by state transformation
software to transform states and attitudes between different
The routine first examines local "hard-coded" information about
reference frames to see if the requested frame belongs to this
set. If it does that information is returned.
If the requested information is not stored locally, the routine
then examines the kernel pool to see if the requested information
is stored there. If it is and has the expected format, the data
is retrieved and returned.
Suppose that you needed to determine the center of some
reference frame. The following code fragment illustrates
how to use this routine to determine this information.
frinfo_c ( frcode, ¢, &frclss, &clssid, &found );
if ( found )
printf ( "The center of reference frame %\n"
"has body ID code: %d\n",
printf ( "There is insufficient data for frame %s\n", frcode );
N.J. Bachman (JPL)
W.L. Taber (JPL)
-CSPICE Version 1.2.0, 22-JUL-1999 (NJB)
Now uses logical local variable for found flag.
-CSPICE Version 1.1.0, 16-MAY-1999 (NJB)
Changed name of argument "class" to frclss for C++
-CSPICE Version 1.0.0, 21-JUN-1998 (NJB) (WLT)
Based on SPICELIB Version 3.0.0, 03-JUN-1997 (WLT)
Fetch reference frame attributes