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

Abstract
I/O
Examples
Particulars
Required Reading
Version
Index_Entries

Abstract


   CSPICE_DAFCS sets the active DAF to search. A search must be
   in progress for the DAF.

   For important details concerning this module's function, please refer to
   the CSPICE routine dafcs_c.

I/O


   Given:

      handle   the scalar integer file handle referring to a DAF to
               set as the "active" file for a search

   the call:

      cspice_dafcs, handle

   causes DAF search activity apply to the file
   referred to by 'handle'.

   returns:

      None.

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.


      Example(1):

      ;;
      ;; Define two SPK test files.
      ;;
      SPK1 = 'phoenix1.bsp'
      SPK2 = 'test13.bsp'

      ;;
      ;; Open the DAFs for read
      ;;
      cspice_dafopr, SPK1, han1
      cspice_dafopr, SPK2, han2

      ;;
      ;; Begin a forward search on SPK1
      ;;
      cspice_dafbfs, han1
      cspice_daffna, found

      ;;
      ;; Begin a backwards search on SPK2
      ;;
      cspice_dafbbs, han2
      cspice_daffpa, found2

      ;;
      ;; Reinstitute the search on han1, loop
      ;; so long as segment data are found.
      ;;
      cspice_dafcs, han1

      while ( found ) do begin

         cspice_dafgs, 2, 6, dc, ic
         cspice_dafgn, segid
         cspice_daffna, found

         ;;
         ;; Output each segment ID.
         ;;
         print, segid

      endwhile

      ;;
      ;; Close the files.
      ;;
      cspice_dafcls, han1
      cspice_dafcls, han2

   IDL outputs (phoenix.bsp):

      PHOENIX SPACECRAFT
      MERCURY BARYCENTER
      VENUS BARYCENTER

         ... continued...

      GOLDSTONE
      CANBERRA
      MADRID
      PHOBOS BASECAMP
      TRANQUILITY BASE

   Example(2), switch the definitions for SPK1 and SPK2:

      ;;
      ;; Define two SPK test files.
      ;;
      SPK2 = 'phoenix1.bsp'
      SPK1 = 'test13.bsp'

         ... remainder of example unchanged ..

   IDL outputs (test13.bsp):

      SPK type 13 test segment

Particulars


   None.

Required Reading


   ICY.REQ
   DAF.REQ

Version


   -Icy Version 1.0.2, 13-SEP-2012, EDW (JPL)

      Edits to Examples text.

   -Icy Version 1.0.1, 08-AUG-2008, EDW (JPL)

      Minor edits to header text.

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

Index_Entries


   select a DAF to continue searching




Wed Apr  5 17:57:59 2017