Open an existing E-kernel file for reading.
Variable I/O Description -------- --- -------------------------------------------------- fname I Name of EK file. handle O Handle attached to EK file.
fname is the name of an existing E-kernel file to be opened for read access.
handle is the EK file handle of the file designated by fname. This handle is used to identify the file to other EK routines.
This routine should be used to open an EK file for read access. EKs opened for read access may not be modified. Opening an EK file with this routine makes the EK accessible to the CSPICE EK readers ekrcec_c ekrced_c ekrcei_c all of which expect an EK file handle as an input argument. These readers allow a caller to read individual EK column entries. To make an EK available to the EK query system, the file must be loaded via eklef_c, rather than by this routine. See the EK Required Reading for further information.
1) Open the file my.ek for read access: ekopr_c ( "my.ek", &handle );
1) No more than CSPICE_EK_MAX_OPEN_FILES EK files may be opened or loaded within the EK system simultaneously. See the header file SpicePar.h for the numeric value of the limit.
1) If the indicated file cannot be opened, the error will be diagnosed by routines called by this routine. The new file will be deleted. 2) If the indicated file has the wrong architecture version, the error will be diagnosed by routines called by this routine. 3) If an I/O error occurs while reading the indicated file, the error will be diagnosed by routines called by this routine.
See the EK Required Reading for a discussion of the EK file format.
N.J. Bachman (JPL)
-CSPICE Version 1.1.0, 23-JUL-2001 (NJB) Removed tab characters from source file. -CSPICE Version 1.0.0, 27-MAR-1998 Based on SPICELIB Version 1.0.0, 26-AUG-1995 (NJB)
open EK for reading