Table of contents
CSPICE_SZPOOL returns the kernel pool size limitations.
Given:
name the name of a kernel pool size parameter.
[1,c1] = size(name); char = class(name)
or
[1,1] = size(name); cell = class(name)
The following parameters may be specified.
'MAXVAR'
'MAXVAL'
'MAXLIN'
'MAXCHR'
'MXNOTE'
'MAXLEN'
'MAXAGT'
See the main routine for a description of the
meaning of these parameters. Note that the case
of `name' is insignificant.
the call:
[n, found] = cspice_szpool( name )
returns:
n the value of the parameter specified by `name'.
[1,1] = size(n); int32 = class(n)
If `name' is not one of the items specified above, `n' will
be returned with the value 0.
found true if the parameter is recognized false if it is not.
[1,1] = size(found); logical = class(found)
None.
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.
1) The following code example demonstrates how to determine the
size of a kernel reader parameter.
Example code begins here.
function szpool_ex1()
%
% Local Variables
%
varname = 'MAXLEN';
%
% Make the call to retrieve the value of MAXLEN
%
[n, found] = cspice_szpool( varname );
%
% If MAXLEN parameter was found, print it out
%
if ( found )
fprintf( 'Kernel parameter found.\n' )
fprintf( 'value: %s = %d\n', char(varname), n )
end
When this program was executed on a Mac/Intel/Octave6.x/64-bit
platform, the output was:
Kernel parameter found.
value: MAXLEN = 32
This routine provides the a programmatic interface to the
parameters used to define the kernel pool. It is not
anticipated that most kernel pool users will need to use this
routine.
1) If the specified parameter is not recognized, the value of `n'
returned will be zero and `found' will be set to false.
2) If the input argument `name' is undefined, an error is
signaled by the Matlab error handling system.
3) If the input argument `name' is not of the expected type, or
it does not have the expected dimensions and size, an error is
signaled by the Mice interface.
None.
None.
KERNEL.REQ
MICE.REQ
None.
J. Diaz del Rio (ODC Space)
-Mice Version 1.0.0, 30-JUN-2021 (JDR)
return a kernel pool definition parameter
|