CSPICE_NAMFRM retrieves the SPICE frame ID code associated
with a frame name.
frname the name of some reference frame (either inertial or
[n,m] = size(frname); char = class(frname)
[1,n] = size(frname); cell = class(frname)
Leading blanks in 'frname' are ignored as is character case.
Note that all legitimate frame names contain 32 or fewer
frcode = cspice_namfrm(frname)
frcode the SPICE code(s) used for internal representation of the named
[1,n] = size(frcode); int32 = class(frcode)
If the name input through frname is not recognized, 'frcode'
will be returned with a value of zero.
'frcode' returns with the same vectorization measure (N)
Any numerical results shown for this example may differ between
platforms as the results depend on the SPICE kernels used as input
and the machine specific arithmetic implementation.
% Retrieve frame information for a single frame.
name = 'ITRF93';
% Output the frame name corresponding to 'name'.
frcode = cspice_namfrm( name )
% Retrieve frame information for a vector of names.
% Create a vector of frame IDs, 1 to 5.
codes = [1:5];
% Convert 'codes' to the corresponding frame name.
names = cspice_frmnam( codes );
% Output the frame IDs corresponding to 'names'.
% The result should match the 'codes' vector'.
frcode = cspice_namfrm( names )
1 2 3 4 5
For important details concerning this module's function, please refer to
the CSPICE routine namfrm_c.
-Mice Version 1.0.1, 03-JAN-2016, EDW (JPL), ML (JPL)
Corrected minor typo, "or" rather than "of."
-Mice Version 1.0.0, 14-NOV-2014, EDW (JPL), SCK (JPL)
frame name to frame ID code translation