spkuds |
Table of contents
ProcedureSPKUDS ( SPK - unpack segment descriptor ) SUBROUTINE SPKUDS ( DESCR, . BODY, CENTER, FRAME, TYPE, . FIRST, LAST, BADDRS, EADDRS ) AbstractUnpack the contents of an SPK segment descriptor. Required_ReadingSPK KeywordsSPK DeclarationsIMPLICIT NONE DOUBLE PRECISION DESCR ( * ) INTEGER BODY INTEGER CENTER INTEGER FRAME INTEGER TYPE DOUBLE PRECISION FIRST DOUBLE PRECISION LAST INTEGER BADDRS INTEGER EADDRS Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- DESCR I An SPK segment descriptor. BODY O The NAIF ID code for the body of the segment. CENTER O The center of motion for BODY. FRAME O The code for the frame of this segment. TYPE O The type of SPK segment. FIRST O The first epoch for which the segment is valid. LAST O The last epoch for which the segment is valid. BADDRS O Beginning DAF address of the segment. EADDRS O Ending DAF address of the segment. Detailed_InputDESCR is an SPK segment descriptor. Detailed_OutputBODY is the NAIF ID code for the body of the segment. CENTER is the center of motion for BODY. FRAME is the SPICE integer code for the frame to which states for the body are be referenced. TYPE is the type of SPK segment. FIRST is the first epoch for which the segment has ephemeris data. LAST is the last epoch for which the segment has ephemeris data. BADDRS is the starting address of the data associated with this descriptor. EADDRS is the last address of the data associated with this descriptor. ParametersNone. ExceptionsError free. 1) If the input descriptor DESCR is invalid, it's possible for the output times to contain bit patterns that don't represent normal double precision values. This error is not diagnosed. FilesNone. ParticularsThis routine extracts the contents of an SPK segment descriptor into the components needed for reading and evaluating the data stored in the segment. It serves as a macro for expanding the SPK segment descriptor. ExamplesSuppose you wished to summarize a particular SPK segment and that you have the descriptor for that segment in hand. The following code fragment shows how you might use this routine to create a summary message concerning the segment. CALL SPKUDS ( DESCR, BODY, CENTER, FRAME, . TYPE, FIRST, LAST, BADDR, EADDR ) Convert the start and stop times to ephemeris calendar strings CALL ETCAL ( FIRST, FSTCAL ) CALL ETCAL ( LAST, LSTCAL ) WRITE (*,*) WRITE (*,*) 'Body : ', BODY WRITE (*,*) 'Center : ', CENTER WRITE (*,*) 'Frame ID : ', FRAME WRITE (*,*) 'Data Type: ', TYPE WRITE (*,*) WRITE (*,*) 'Segment Start : ', FSTCAL WRITE (*,*) 'Segment Stop : ', LSTCAL RestrictionsNone. Literature_ReferencesNone. Author_and_InstitutionN.J. Bachman (JPL) J. Diaz del Rio (ODC Space) K.R. Gehringer (JPL) W.L. Taber (JPL) VersionSPICELIB Version 1.1.0, 02-OCT-2021 (JDR) (NJB) Changed output argument names "BEGIN" and "END" to "BADDRS" and "EADDRS" for consistency with other routines. Edited the header to comply with NAIF standard. Added entry #1 to $Exceptions section and declared the routine error free. SPICELIB Version 1.0.0, 04-JAN-1994 (WLT) (KRG) |
Fri Dec 31 18:36:55 2021