Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.stsci.edu/~sontag/spicedocs/cspice/lmpool_c.html
Дата изменения: Sat Dec 17 06:09:14 2005 Дата индексирования: Mon Apr 11 00:04:22 2016 Кодировка: Поисковые слова: п п п п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п |
Load the variables contained in an internal buffer into the kernel pool.
KERNEL
VARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- cvals I An array that contains a SPICE text kernel. lenvals I Length of strings in cvals. n I The number of entries in cvals.
cvals is an array of strings that contains lines of text that could serve as a SPICE text kernel. cvals is declared as follows: ConstSpiceChar cvals [n][lenvals] Each string in cvals is null-terminated. lenvals is the common length of the strings in cvals, including the terminating nulls. n is the number of strings in cvals.
None.
None.
This routine allows you to store a text kernel in an internal array of your program and load this array into the kernel pool without first storing its contents as a text kernel.
Suppose that your application is not particularly sensitive to the current number of leapseconds but that you would still like to use a relatively recent leapseconds kernel without requiring users to load a leapseconds kernel into the program. The example below shows how you might set up the initialization portion of your program. #include "SpiceUsr.h" #define LNSIZE 81 #define NLINES 27 SpiceChar textbuf[NLINES][LNSIZE] = { "DELTET/DELTA_T_A = 32.184", "DELTET/K = 1.657D-3", "DELTET/EB = 1.671D-2", "DELTET/M = ( 6.239996 1.99096871D-7 )", "DELTET/DELTA_AT = ( 10, @1972-JAN-1", " 11, @1972-JUL-1", " 12, @1973-JAN-1", " 13, @1974-JAN-1", " 14, @1975-JAN-1", " 15, @1976-JAN-1", " 16, @1977-JAN-1", " 17, @1978-JAN-1", " 18, @1979-JAN-1", " 19, @1980-JAN-1", " 20, @1981-JUL-1", " 21, @1982-JUL-1", " 22, @1983-JUL-1", " 23, @1985-JUL-1", " 24, @1988-JAN-1", " 25, @1990-JAN-1", " 26, @1991-JAN-1", " 27, @1992-JUL-1", " 28, @1993-JUL-1", " 29, @1994-JUL-1", " 30, @1996-JAN-1", " 31, @1997-JUL-1", " 32, @1999-JAN-1 )" }; lmpool_c ( textbuf, LNSIZE, NLINES );
None.
1) If the input string pointer is null, the error SPICE(NULLPOINTER) will be signaled. 2) If the input string length lenvals is not at least 2, the error SPICE(STRINGTOOLSHORT) will be signaled. 3) All other exceptions are diagnosed by routines in the call tree of this routine.
None.
N.J. Bachman (JPL) W.L. Taber (JPL)
None.
-CSPICE Version 1.3.0, 12-JUL-2002 (NJB) Call to C2F_CreateStrArr_Sig replaced with call to C2F_MapStrArr. -CSPICE Version 1.2.0, 28-AUG-2001 (NJB) Const-qualified input array. -CSPICE Version 1.1.0, 14-FEB-2000 (NJB) Calls to C2F_CreateStrArr replaced with calls to error-signaling version of this routine: C2F_CreateStrArr_Sig. -CSPICE Version 1.0.0, 08-JUN-1999 (NJB) (WLT)
Load the kernel pool from an internal text buffer