Load a binary PCK file for use by the readers. Return the handle of the loaded file which is used by other PCK routines to refer to the file.
Variable I/O Description -------- --- -------------------------------------------------- filename I Name of the file to be loaded. handle O Loaded file's handle.
filename Character name of the file to be loaded.
handle Integer handle assigned to the file upon loading. Other PCK routine will subsequently use this number to refer to the file.
If there is room for a new file in the file table, pcklof_c creates an entry for it, and opens the file for reading. Also, if the body table is empty, pcklof_c initializes it, this being as good a place as any.
Load a binary PCK kernel and return the integer handle. pck = "/kernels/gen/pck/earth6.bpc"; pcklof_c ( pck, &handle ); Also see the Example in PCKLOF.FOR.
1) If an attempt is made to load more files than is specified by the paramater ftsize defined in pckbsr_, the error SPICE(PCKFILETABLEFULL) is signalled. 2) The error SPICE(EMPTYSTRING) is signalled if the input string does not contain at least one character, since the input string cannot be converted to a Fortran-style string in this case. 3) The error SPICE(NULLPOINTER) is signalled if the input string pointer is null. This routine makes use of DAF file system routines and is subject to all of the constraints imposed by the DAF fuile system. See the DAF Required Reading or individual DAF routines for details.
A file specified by filename, to be loaded. The file is assigned a handle by pcklof_c, which will be used by other routines to refer to it.
K.S. Zukor (JPL) E.D. Wright (JPL)
DAF Required Reading
-CSPICE Version 2.0.1, 20-MAR-1998 (EDW) Minor correction to header. -CSPICE Version 2.0.0, 08-FEB-1998 (NJB) Input argument filename was changed to type ConstSpiceChar *. Re-implemented routine without dynamically allocated, temporary strings. -CSPICE Version 1.0.0, 25-OCT-1997 (EDW)
load PCK orientation file