| SPKMERGE User's Guide |
Table of ContentsSPKMERGE User's Guide Abstract Introduction Running SPKMERGE Command file syntax Command file keywords leapseconds_kernel spk_kernel source_spk_kernel bodies begin_time, end_time log_file include_comments SPKMERGE User's Guide
Abstract
Introduction
SPKMERGE reads all its input from a command file. A command file is an ASCII formatted file that you must supply. Running SPKMERGE
Command file syntax
Command file keywords
LEAPSECONDS_KERNEL SPK_KERNEL SOURCE_SPK_KERNELThe optional keywords are:
LOG_FILE BEGIN_TIME END_TIME BODIES INCLUDE_COMMENTSAll the keywords are described below. Note that some keywords may appear multiple times. leapseconds_kernel
leapseconds_kernel = /kernels/lsk/naif0004.tls spk_kernel
Multiple SPK files can be created by SPKMERGE by repeating this assignment. source_spk_kernel
The sample command file below instructs SPKMERGE to create one SPK file by merging three existing SPK files in their entirety.
leapseconds_kernel = /kernels/lsk/naif0003.tls
spk_kernel = complete.bsp
source_spk_kernel = planets.bsp
source_spk_kernel = gll_1.bsp
source_spk_kernel = gll_2.bsp
SPKMERGE will not create an SPK file that has overlapping data. The
files you list first have precedence. In the example above, source data
from planets.bsp will have precedence over data from gll_1.bsp, and both
will have precedence over gll_2.bsp.
bodies
The bodies must be given as NAIF integer body IDs; the IDs may be delimited by spaces or commas. In the example below, only bodies 10, 399 and 301 will be merged from `planets.bsp'. The other two files will be merged in their entirety---assuming no overlapping data.
leapseconds_kernel = /kernels/lsk/naif0003.tls
spk_kernel = complete.bsp
source_spk_kernel = planets.bsp
bodies = 10, 399, 301
source_spk_kernel = gll_1.bsp
source_spk_kernel = gll_2.bsp
If you want to merge only bodies 10, 399, 301 and -77, the command file
could be structured as shown below:
leapseconds_kernel = /kernels/lsk/naif0003.tls
spk_kernel = complete.bsp
bodies = 10, 399, 301, -77
source_spk_kernel = planets.bsp
source_spk_kernel = gll_1.bsp
source_spk_kernel = gll_2.bsp
begin_time, end_time
SPKMERGE accepts many different time input formats from a variety of time systems. The default input system is UTC, but one may specify ephemeris time (TDB) instead. For complete details on the accepted time strings see the STR2ET section of ``Time Required Reading'' (time.req). Below are a few examples. The following illustrates utilization of the default time system, UTC.
leapseconds_kernel = /kernels/lsk/naif0003.tls
spk_kernel = complete.bsp
source_spk_kernel = planets.bsp
begin_time = 1 JAN 1994 00:00:00.000
end_time = 1 JUL 1994 00:00:00.000
source_spk_kernel = gll_1.bsp
begin_time = 1 JAN 1994 00:00:00.000
end_time = 1 JUL 1994 00:00:00.000
source_spk_kernel = gll_2.bsp
begin_time = 1 JAN 1994 00:00:00.000
end_time = 1 JUL 1994 00:00:00.000
To select ephemeris time (ET, also called Time Dynamic Barycentric or
TDB) as the desired input time system, append TDB to the end of the time
string. The following example demonstrates the merging of the contents
of two SPK files for the period between the ephemeris times `15 Feb
1998' amd `21 Jul 1998'.
leapseconds_kernel = /kernels/lsk/naif0003.tls
spk_kernel = complete.bsp
source_spk_kernel = planets.bsp
begin_time = 15 FEB 1998 00:00:00.000 TDB
end_time = 21 JUL 1998 00:00:00.000 TDB
source_spk_kernel = mgs_ab2.bsp
begin_time = 15 FEB 1998 00:00:00.000 TDB
end_time = 21 JUL 1998 00:00:00.000 TDB
In the following example SPKMERGE is instructed to merge only the UTC
times `1 Jan 1994' through `2 Jan 1994'. Since no `bodies' keyword is
given, all bodies will be merged. In this example a command log file is
also produced (see explanation below).
leapseconds_kernel = /kernels/lsk/naif0003.tls
spk_kernel = complete.bsp
log_file = gll_early_cruise.log
begin_time = 1 JAN 1994 00:00:00.000
end_time = 1 JUL 1994 00:00:00.000
source_spk_kernel = planets.bsp
source_spk_kernel = gll_1.bsp
source_spk_kernel = gll_2.bsp
log_file
include_comments
|