Index Page
cspice_ekccnt
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_EKCCNT returns the number of distinct columns in an 
   loaded table.

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

I/O

   
   Given:
   
      table   the scalar string name of a table
   
   the call:
   
      cspice_ekccnt, table, ccount
   
   returns to the scalar integer 'ccount' the number of 
   distinct columns in 'table'.
   

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.

   
      ;;
      ;; Assign the name of an EK file.
      ;;
      EK = 'test_file.ek'
   
      ;;
      ;; Load an EK.
      ;;
      cspice_furnsh, EK
   
      ;;
      ;; How many loaded tables in the active EK?
      ;;
      cspice_ekntab, num_table
      print, 'Number of tables in EK: ', num_table
      print
   
      ;;
      ;; Loop over the number of tables.
      ;;
      for i=0, (num_table - 1 ) do begin
   
         ;;
         ;; Retrieve the name of each table.
         ;;
         cspice_ektnam, i, table_name
   
         ;;
         ;; Retrieve the number of columns for each table.
         ;;
         cspice_ekccnt, table_name, num_cols
         print, '   Table: ', table_name, ' number of columns: ', num_cols
   
     endfor
   
      ;;
      ;; Unload the kernel.
      ;;
      cspice_unload, EK
   
   IDL outputs:
   
      Number of tables in EK:            6
   
         Table: SCALAR_1 number of columns:            8
         Table: SCALAR_2 number of columns:           19
         Table: SCALAR_3 number of columns:            8
         Table: SCALAR_4 number of columns:           16
         Table: VECTOR_1 number of columns:           12
         Table: VECTOR_2 number of columns:           20

Particulars


   None.

Required Reading


   ICY.REQ
   EK.REQ

Version


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

Index_Entries

 
   return the number of loaded EK columns 
   return the count of loaded EK columns 
 



Wed Apr  5 17:58:00 2017