sygetc |
Table of contents
ProcedureSYGETC ( Return all components for a symbol ) SUBROUTINE SYGETC ( NAME, . TABSYM, TABPTR, TABVAL, . N, VALUES, . FOUND ) AbstractReturn the dimension and associated values for a particular symbol. Required_ReadingSYMBOLS KeywordsSYMBOLS DeclarationsIMPLICIT NONE INTEGER LBCELL PARAMETER ( LBCELL = -5 ) CHARACTER*(*) NAME CHARACTER*(*) TABSYM ( LBCELL:* ) INTEGER TABPTR ( LBCELL:* ) CHARACTER*(*) TABVAL ( LBCELL:* ) INTEGER N CHARACTER*(*) VALUES ( * ) LOGICAL FOUND Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- NAME I Name of the symbol whose components are to be returned. TABSYM, TABPTR, TABVAL I Components of the symbol table. N O Dimension of the symbol. VALUES O Values associated with the symbol. FOUND O .TRUE. if the symbol NAME is in the symbol table. Detailed_InputNAME is the name of the symbol whose components are to be returned. If NAME is not in the symbol table, FOUND is .FALSE. TABSYM, TABPTR, TABVAL are the components of a character symbol table. The symbol NAME may or may not be in the symbol table. The symbol table is not modified by this subroutine. Detailed_OutputN is the dimension of the symbol NAME. The dimension is the number of values associated with the given symbol. N is defined only if the output argument FOUND is .TRUE. VALUES is an array containing the values associated with the symbol. If the array is not large enough to hold all of the values associated with NAME, as many as will fit are returned. VALUES is defined only if the output argument FOUND is .TRUE. FOUND is .TRUE. if NAME is in the symbol table. If NAME is not in the table, FOUND is .FALSE. ParametersNone. Exceptions1) If there is an issue while reading the components of a character symbol table, an error is signaled by a routine in the call tree of this routine. This normally indicates that the character symbol table is corrupted. FilesNone. ParticularsNone. ExamplesThe contents of the symbol table are: BOHR --> HYDROGEN ATOM EINSTEIN --> SPECIAL RELATIVITY PHOTOELECTRIC EFFECT BROWNIAN MOTION FERMI --> NUCLEAR FISSION Let the dimension of VALUES be 3. The calls, CALL SYGETC ( 'EINSTEIN', TABSYM, TABPTR, TABVAL, . N, VALUES, FOUND ) CALL SYGETC ( 'MILLIKAN', TABSYM, TABPTR, TABVAL, . N, VALUES, FOUND ) CALL SYGETC ( 'BORN', TABSYM, TABPTR, TABVAL, . N, VALUES, FOUND ) return the values for N, VALUES, and FOUND associated with NAME: NAME N VALUES FOUND ---------- --- ----------------------- ------- EINSTEIN 3 SPECIAL RELATIVITY .TRUE. PHOTOELECTRIC EFFECT BROWNIAN MOTION MILLIKAN .FALSE. BORN 1 HYDROGEN ATOM .TRUE. Restrictions1) This subroutine does not check to see if the output array VALUES is large enough to hold all of the values associated with the symbol NAME. The caller must provide the required space. Literature_ReferencesNone. Author_and_InstitutionN.J. Bachman (JPL) J. Diaz del Rio (ODC Space) H.A. Neilan (JPL) W.L. Taber (JPL) I.M. Underwood (JPL) VersionSPICELIB Version 1.1.0, 16-AUG-2021 (JDR) Added IMPLICIT NONE statement. Edited the header to comply with NAIF standard. Moved entry from $Exceptions to $Restrictions and added entry #1 in $Exceptions. SPICELIB Version 1.0.2, 03-NOV-2005 (NJB) Various header corrections were made. In particular, the header no longer asserts that this routine will "return as many values as will fit" in the output array VALUES. 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) (HAN) |
Fri Dec 31 18:36:59 2021