Index of Functions: A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X 
Index Page
cspice_scpart

Table of contents
Abstract
I/O
Parameters
Examples
Particulars
Exceptions
Files
Restrictions
Required_Reading
Literature_References
Author_and_Institution
Version
Index_Entries


Abstract


   CSPICE_SCPART gets spacecraft clock partition information from a
   spacecraft clock kernel file.

I/O


   Given:

      sc       the NAIF ID for the spacecraft whose clock partition
               information is being requested.

               help, sc
                  LONG = Scalar

   the call:

      cspice_scpart, sc, pstart, pstop

   returns:

      pstart   an array containing NPARTS partition start times represented
               as double precision, encoded SCLK ("ticks").

               help, pstart
                  DOUBLE = Array[NPARTS]

               The values contained in `pstart' are whole numbers.

      pstop    an array containing NPARTS partition end times represented as
               double precision, encoded SCLK ("ticks").

               help, pstop
                  DOUBLE = Array[NPARTS]

               The values contained in `pstop' are whole numbers.

Parameters


   MXPART      is the maximum number of spacecraft clock partitions
               expected in the kernel file for any one spacecraft.
               MXPART is currently set to 9999.

Examples


   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 finds partition start and stop
      times for the Stardust spacecraft from a spacecraft clock
      kernel file. Since those times are always returned in units
      of ticks, the program uses cspice_scfmt to print the times in
      Stardust clock format.

      Use the SCLK kernel below to load the Stardust time
      correlation data and spacecraft clock partition information.

         sdu_sclkscet_00074.tsc


      Example code begins here.


      PRO scpart_ex1

         ;;
         ;; Assign the value for the Stardust spacecraft ID.
         ;;
         sc = -29

         ;;
         ;; Load the SCLK file.
         ;;
         cspice_furnsh, 'sdu_sclkscet_00074.tsc'

         ;;
         ;; Retrieve the arrays for start and stop
         ;; of the partitions as measures in ticks.
         ;;
         cspice_scpart, sc, pstart, pstop

         ;;
         ;; Obtain the dimension of the arrays `pstart' & `pstop'.
         ;; Note: `nparts' becomes a 1-vector, so use nparts[0] for the
         ;; dimension value.
         ;;
         nparts = size(pstart, /dim)

         ;;
         ;; Loop over each array value.
         ;;
         for i = 0, (nparts[0]-1) do begin

            cspice_scfmt, sc, pstart[i], start
            cspice_scfmt, sc, pstop[i],  stop

            print, 'Partition: ', i
            print, 'Start    : ', start
            print, 'Stop     : ', stop
            print

         endfor

         ;;
         ;; It's always good form to unload kernels after use,
         ;; particularly in IDL due to data persistence.
         ;;
         cspice_kclear

      END


      When this program was executed on a Mac/Intel/IDL8.x/64-bit
      platform, the output was:


      Partition:        0
      Start    : 0000000000.000
      Stop     : 0602741011.080

      Partition:        1
      Start    : 0602741014.217
      Stop     : 0605660648.173

      Partition:        2
      Start    : 0605660649.000
      Stop     : 0631375256.224

      Partition:        3
      Start    : 0631375257.000
      Stop     : 0633545577.218

      Partition:        4
      Start    : 0633545578.000
      Stop     : 0644853954.043

      Partition:        5
      Start    : 0644853954.000
      Stop     : 0655316480.089

      Partition:        6
      Start    : 0655316480.000
      Stop     : 0660405279.066

      Partition:        7
      Start    : 0660405279.000
      Stop     : 0670256568.229

      Partition:        8
      Start    : 0670256569.000
      Stop     : 0674564039.091

      Partition:        9
      Start    : 0674564040.000
      Stop     : 4294537252.255


Particulars


   cspice_scpart looks for two variables in the kernel pool for each
   spacecraft's partition information. If sc = -nn, then the names of
   the variables are

      SCLK_PARTITION_START_nn
      SCLK_PARTITION_END_nn

   The start and stop times returned are in units of "ticks".

Exceptions


   1)  If the kernel variables containing the spacecraft clock
       partition start and stop times have not been loaded in the
       kernel pool, an error is signaled by a routine in the call
       tree of this routine.

   2)  If the number of start and stop times are different, the error
       SPICE(NUMPARTSUNEQUAL) is signaled by a routine in the call
       tree of this routine.

   3)  If the input argument `sc' is undefined, an error is signaled
       by the IDL error handling system.

   4)  If the input argument `sc' is not of the expected type, or it
       does not have the expected dimensions and size, an error is
       signaled by the Icy interface.

   5)  If any of the output arguments, `pstart' or `pstop', is not a
       named variable, an error is signaled by the Icy interface.

Files


   An SCLK kernel containing spacecraft clock partition start
   and stop times for the spacecraft clock indicated by `sc' must
   be loaded into the kernel pool.

Restrictions


   1)  This routine assumes that an SCLK kernel appropriate to the
       spacecraft identified by `sc' has been loaded into the kernel
       pool.

Required_Reading


   ICY.REQ
   SCLK.REQ

Literature_References


   None.

Author_and_Institution


   J. Diaz del Rio     (ODC Space)
   E.D. Wright         (JPL)

Version


   -Icy Version 1.0.1, 09-AUG-2021 (JDR)

       Edited to header to comply with NAIF standard. Added
       reference to required SCLK and created complete example from
       existing code fragment using Stardust PDS archived data.

       Added -Parameters, -Exceptions, -Files, -Restrictions,
       -Literature_References and -Author_and_Institution sections, and
       completed -Particulars section.

       Removed reference to the routine's corresponding CSPICE header from
       -Abstract section.

       Added arguments' type and size information in the -I/O section.

   -Icy Version 1.0.0, 16-JUN-2003 (EDW)

Index_Entries


   spacecraft_clock partition information



Fri Dec 31 18:43:07 2021