1 / 6

Understanding Metadata in SPICE Kernels

Learn about metadata in SPICE Kernels, including what they are, their importance, and where to find them. Discover how to add comments to binary and text kernels, and explore the restrictions that apply.

jorgemurray
Download Presentation

Understanding Metadata in SPICE Kernels

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. “Metadata” In SPICE Kernelsa.k.a. “comments” March 2006

  2. What are Metadata? • Metadata are information that provide important context--sometimes called “data about data” • What the “real” data represent • “This file contains representations of the trajectories for bodies X,Y and Z over the interval from launch to landing.” • Accuracy of the data • Pedigree • Programs used in creation • Sources from which the data were derived • When the kernel was created, and by whom • Intended usage • Companion files • Who to contact if you have questions • email address • phone numbers • In SPICE we often refer to metadata as “comments” Metadata in SPICE Kernels

  3. Where are SPICE Metadata Found? • Binary Kernels have a “comment” area • Holds text data • 80 character lines • Printable characters (ascii 32 - 126) • Can be read using the SPICE utility program commnt. • Interactive menu of prompts • Command line arguments • Text Kernels have comments interleaved with the data • Any text editor, or unix’s cat or more processors, can be used to read the comments (and the data) Metadata in SPICE Kernels

  4. Terminal Window prompt> commnt Welcome to COMMNT Version: 6.0.0 (SPICE Toolkit N0050) COMMNT Options ( Q ) Quit. ( A ) Add comments to a binary file. ( R ) Read the comments in a binary file. ( E ) Extract the comments from a binary file. ( D ) Delete the comments in a binary file. Option: R Enter the name of the binary file. Filename?/home/mydirectory/myproject/kernels/spk/de403s.bsp Using COMMNT on Binary Kernels • Filename must include any required path and be less than 257 characters Metadata in SPICE Kernels

  5. Terminal Window prompt>more leapseconds.ker \begintext LEAPSECONDS KERNEL FILE =============================================================== Modifications: -------------- 1998, Jun 17 WLT Modified file to account for the leapsecond that will occur on December 31, 1998. 1997, Feb 22 WLT Modified file to account for the leapsecond that will occur on June 30, 1997. 1995, Dec 14 KSZ Corrected date of last leapsecond from 1-1-95 to 1-1-96 etc….. --More--(19%) -More--(19%) Viewing Text Kernel Comments Metadata in SPICE Kernels

  6. How to Add Comments • Binary Kernels • Use the commnt utility program • Use calls to SPICE modules • Text Kernels • Text editor • Restrictions • Binary and text kernels • No more than 80 characters per line • Use only printing characters • File must be in the native binary format for the machine being used • Text • Begin comments with “\begintext” on a line by itself; begin data with “\begindata” on a line by itself • See kernel.req for specifics Metadata in SPICE Kernels

More Related