Index Page
cspice_dafgn
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_DAFGN returns the name for current array in the current
   DAF being searched.

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

I/O


   The call:

      cspice_dafgn, name

   returns:

      name   the scalar string of the current DAF array - that array
             found by a previous call to cspice_daffna or cspice_daffpa.

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.


      ;;
      ;; Define a DAF from which to read the name for each array in
      ;; the DAF.
      ;;
      DAF = 'phoenix1.bsp'
      NI  = 6
      ND  = 2

      ;;
      ;; Open the DAF for read
      ;;
      cspice_dafopr, DAF, handle

      ;;
      ;; Begin a forward search on 'DAF'.
      ;;
      cspice_dafbfs, handle
      cspice_daffna, found

      ;;
      ;; Loop while found
      ;;
      while ( found ) do begin

         cspice_dafgs, ND, NI, dc, ic
         cspice_dafgn, name

         ;;
         ;; Output each array name.
         ;;
         print, name

         ;;
         ;; Check for a next segment.
         ;;
         cspice_daffna, found

      endwhile

      ;;
      ;; Close the file.
      ;;
      cspice_dafcls, handle

   IDL outputs:

      PHOENIX SPACECRAFT
      MERCURY BARYCENTER
      VENUS BARYCENTER

         ... continued ...

      CANBERRA
      MADRID
      PHOBOS BASECAMP
      TRANQUILITY BASE

Particulars


   None.

Required Reading


   ICY.REQ
   DAF.REQ

Version


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

      Edits and clean up to header text.

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

Index_Entries


   get DAF array name




Wed Apr  5 17:57:59 2017