wrkvar |
Table of contents
ProcedureWRKVAR ( Write a variable to a kernel file ) SUBROUTINE WRKVAR ( UNIT, NAME, DIRCTV, TABSYM, TABPTR, TABVAL ) AbstractWrite the value of a variable in a double precision symbol table to a NAIF ASCII kernel file. Required_ReadingKERNEL SYMBOLS KeywordsFILES DeclarationsIMPLICIT NONE INTEGER LBCELL PARAMETER ( LBCELL = -5 ) INTEGER UNIT CHARACTER*(*) NAME CHARACTER*(*) DIRCTV CHARACTER*(*) TABSYM ( LBCELL:* ) INTEGER TABPTR ( LBCELL:* ) DOUBLE PRECISION TABVAL ( LBCELL:* ) Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- UNIT I Output logical unit. NAME I Name of the variable. DIRCTV I Kernel directive: '=' or '+='. TABSYM, TABPTR, TABVAL I Double precision symbol table. Detailed_InputUNIT is the logical unit to which the variable will be written. This is usually the logical unit to which the output kernel file is connected. NAME is the name of the variable to be written to UNIT. DIRCTV is the directive linking NAME and its associated values in the kernel file. This may be any of the directives recognized by RDKVAR. TABSYM, TABPTR, TABVAL are the components of a double precision symbol table. On input, the table may or may not contain any variables. Detailed_OutputNone. ParametersNone. Exceptions1) If an error occurs writing the variable to UNIT, the error SPICE(WRITEERROR) is signaled. FilesIf the variable is to be written to an output kernel file, the file should be opened with a logical unit determined by the calling program. ParticularsIf the table symbol table does not contain any variables, nothing will be written to UNIT. ExamplesIf NAME = 'MEAN_ANOM' DIRCTV = '=' And the contents of the symbol table are: DELTA_T_A --> 32.184 K --> 0.D0 MEAN_ANOM --> 6.239996D0 1.99096871D-7 ORBIT_ECC --> 1.671D-2 The output to UNIT might look like this, depending on the length of the symbol table variables: MEAN_ANOM = ( 6.239996D0, 1.99096871D-7 ) RestrictionsNone. Literature_ReferencesNone. Author_and_InstitutionN.J. Bachman (JPL) J. Diaz del Rio (ODC Space) W.L. Taber (JPL) I.M. Underwood (JPL) VersionSPICELIB Version 1.1.0, 08-APR-2021 (JDR) Added IMPLICIT NONE statement. Edited the header to comply with NAIF standard. Updated $Brief_I/O entry for symbol table (TABSYM, TABPTR, TABVAR) to indicate that these arguments only are an input to the routine, and not an output. Removed $Detailed_Output documentation, as the routine operates by side-effects and has no output arguments. SPICELIB Version 1.0.1, 10-MAR-1992 (WLT) Comment section for permuted index source lines was added following the header. SPICELIB Version 1.0.0, 31-JAN-1990 (IMU) (NJB) |
Fri Dec 31 18:37:08 2021