Index Page
cspice_ckopn
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_CKOPN opens a new CK file, returning the handle 
   of the opened file.

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

I/O

   
   Given:
   
      fname    a string defining the name of the CK file 
               to open
               
      ifname   a string defining the descriptive internal 
               filename for the CK
               
      ncomch   the scalar integer number of characters to 
               reserve for comments. 
   
   the call:
   
      cspice_ckopn, name, ifname, ncomch, handle
   
   returns:
   
      handle   a scalar integer file handle assigned to 'fname'
   

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 needed parameters: a name for the CK, the
      ;; file internal name, and the number of characters
      ;; to reserve for a comment block.
      ;;
      CK1        = "type1.bc"
      IFNAME     = "Test CK created by ck_idl"
      NCOMCH     = 10
   
      ;;
      ;; Open a new kernel.
      ;;
      cspice_ckopn, CK1, IFNAME, NCOMCH, handle
   
         ... do some writes to the open CK file ... 
   
      ;;
      ;; SAFELY close the file
      ;;
      cspice_ckcls, handle

Particulars


   None.

Required Reading


   ICY.REQ
   CK.REQ

Version


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

Index_Entries

 
   open a new ck file 
 



Wed Apr  5 17:57:59 2017