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

I/O


   Given:

      None.

   the call:

      name = cspice_dafgn

   returns:

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

               [1,c1] = size(name); char = class(name)

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 = 'daftest.bsp';
      NI  = 6;
      ND  = 2;

      %
      % Open the DAF for read
      %
      handle = cspice_dafopr( DAF );

      %
      % Begin a forward search on 'DAF'.
      %
      cspice_dafbfs( handle )
      found = cspice_daffna;

      %
      % Loop while found
      %
      while ( found )

         [dc, ic] = cspice_dafgs( ND, NI );
         name = cspice_dafgn;

         %
         % Output each array name.
         %
         fprintf( '%s\n', name)

         %
         % Check for a next segment.
         %
         found = cspice_daffna;

      end

      %
      % SAFELY close the file.
      %
      cspice_dafcls( handle )

   MATLAB outputs:

      PHOENIX SPACECRAFT
      MERCURY BARYCENTER
      VENUS BARYCENTER
      EARTH BARYCENTER

         ...

      CANBERRA
      MADRID
      PHOBOS BASECAMP
      TRANQUILITY BASE

Particulars


   None.

Required Reading


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

   MICE.REQ
   DAF.REQ

Version


   -Mice Version 1.0.0, 11-JUN-2013, EDW (JPL)

Index_Entries


   get DAF array name


Wed Apr  5 18:00:30 2017