Home

Quick Links

Software Manual
GitHub
API Reference

Documentation Versions

Latest Release
Dev
8.3.0
8.2.0
8.1.0
8.0.0
7.2.0
7.1.0
7.0.0
6.0.0
3.9.0
3.5.0
USGS

ISIS Application Documentation


kerneldbgen

Printer Friendly View | TOC | Home

Creates a database of kernels

Overview Parameters Example 1 Example 2

Description

This program is used to give the programmer and ISIS programs a database with which they can reference coverage times for ck and spk kernels. Output will thus be to a pvl file specified in the TO parameter. It should be noted that the user is encouraged to use system preferences when defining pathnames, for example $mgs or $base. If this is not possible, for example kernels are being referenced that are located in a user's development area, absolute pathnames should be used. Relative pathnames using ".", "..", or user-defined environment variables are highly discouraged.

Kernels have different qualities. The lowest quality is nadir, which supplies what may be considered "placeholder" values. Generally, nadir kernels exist to fill in gaps and mimic the instrument pointing at -90 degrees. Since they only mimic pointing data, they cannot be used for SPKs, since these kernels specify positions rather than pointing.

The second lowest quality kernel is predict. Predict kernels are based on the predicted location of spacecraft and thus are subject to error.

Reconstructed kernels are of higher quality than predicts. They are supplemented with information as to the actual position of bodies and spacecraft.

The highest quality kernels are smithed. These generally come from reconstructed kernels that have been corrected even further by an individual institution.

The four levels of kernels listed above are the only ones that will be listed in the database. Kernels are ordered from the lowest quality at the top of the output file to the highest quality at the bottom of the output file within individual kernel qualities, kernels are listed from earliest to latest created file. This is done in anticipation of programs such as spiceinit which read from the bottom of the file for the best kernel.


This program's database is in pvl format, and as such order is significant. The last listed kernel file covering the timespan will be used. Because of this in combination with the individual needs of specific missions, ISIS arrays can be used to control kernel file order.

      For example, using the pure string expression:

      "m01_sc_ext??_rec_nadir.bc ; m01_sc_ext??.bc"

      would result in the listing:

      m01_sc_ext10.bc
      m01_sc_ext10_rec_nadir.bc
      m01_sc_ext11.bc
      m01_sc_ext11_rec_nadir.bc
      m01_sc_ext12.bc
      m01_sc_ext12_rec_nadir.bc
      m01_sc_ext13.bc
      m01_sc_ext13_rec_nadir.bc

          while using the ISIS array expression:

          ("m01_sc_ext??_rec_nadir.bc", "m01_sc_ext??.bc")

          would result in the listing:

      m01_sc_ext10_rec_nadir.bc
      m01_sc_ext11_rec_nadir.bc
      m01_sc_ext12_rec_nadir.bc
      m01_sc_ext13_rec_nadir.bc
      m01_sc_ext10.bc
      m01_sc_ext11.bc
      m01_sc_ext12.bc
      m01_sc_ext13.bc
    


Categories


Related Objects and Documents

Applications


History

Drew Davidson2005-08-03 Original version
Drew Davidson2005-08-03 Added relative pathnames to output database
Drew Davidson2005-08-16 Added examples
Elizabeth Miller2005-10-05 Moved from Geometry category to System
Brendan George2005-11-03 Added application test
Elizabeth Miller2005-11-21 Fixed constriction on filename size and fixed bug in appTest
Jacob Danton2005-12-27 Made changes to SpiceDbGen to comply with changes in KernelDb
Brendan George2006-10-05 Modified call to retrieve current time to refer to Time class, instead of Application class
Jeff Anderson2006-10-24 Removed spaces between Spacecraft Clock Count and Leapsecond Kernel keywords
Stuart Sides2006-11-21 Fixed bug where spk and ck kernel files were flagged as "Predict" instead of "Predicted"
Steven Lambright2008-08-01 Fixed bug where some ck kernels could not be loaded due to their size. Also added naif status calls, which will provide easy to read iExceptions to the user instead of a dump to the terminal window when a problem occurs.
Stuart Sides2010-04-27 Modified to use a vector of filters for each quality of kernel instead of a single string
Christopher Austin2011-05-06 Added documentation for ISIS array input.
Steven Lambright2013-02-15 Added the EXTRA option. Also, added basic support for kerneldb files being specified for SCLK/LSK parameters. Fixes #1023.
Stuart Sides2015-03-29 Added three additional decimal places to the output of the TIME keyword in output kernel database file. Fixes #2236.
Christopher Combs2018-01-11 Added STARTOFFSET and ENDOFFSET parameters to allow for slight editing to start and end times. Fixes #5272.
Kristin Berry2018-05-09 Added the LEVEL=(SEGMENT*, INTERVAL) option to specify the time coverage level to be used for the generated database. SPICE segements are made up of SPICE intervals. Segments (the only option in the past) are now the default, but interval can be selected if needed. Fixes #5410.
Jesse Mapel2019-08-13 Added the ability to use a list of kernels instead of a location and filters. Fixes #3390.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/21/2025 19:28:11
X

Files: TO


Description

This parameter may be used as a relative pathname to specify the location of an output PVL database containing data on all of kernels matched by kerneldbgen. It should be noted that version sequences may be included in the pathname, in which case a new version will be created.

Type filename
Default ./kernels.????.db
Close Window
X

Kernel Type: TYPE


Description

The kernel type specifies what sort of information the kernel contains. Since kerneldbgen is intended for use only in situations where the most recent kernel does not eclipse the content of previous kernels, there are only two options: Spacecraft pointing kernels (CK) and Spacecraft position kernels (SPK).

Type string
Default CK
Option List:
Option Brief Description
CK Spacecraft pointing kernels The kernels to be listed in the output database will include spacecraft pointing data. In order to properly calculate times, a spacecraft clock kernel (SCLK) and leapsecond kernel (LSK) must also be furnished via the dependency kernel group below.
SPK Spacecraft position kernels The kernels to be listed in the output database will include spacecraft position data. Unlike calculations for pointing data, only the leapsecond kernel (LSK) needs to be provided.

Exclusions

  • SCLK
Close Window
X

Coverage Level: LEVEL


Description

Type string
Default SEGMENT
Option List:
Option Brief Description
SEGMENT SPICE Segment The coarsest level of time granularity, a SPICE segment is composed of SPICE intervals.
INTERVAL SPICE Interval A finer level of time granularity.
Close Window
X

Predict: PREDICTDIR


Description

This parameter specifies the path upon which the regular expression in "PREDICTFILTER" will operate. Since this parameter will be used explicitly in the "File" keyword of the generated database, it is recommended that only shortcuts known to the ISIS system and absolute pathnames are used. If left as "none" no predicted kernels will be included in the database

Type string
Default none
Close Window
X

Predict: PREDICTFILTER


Description

This parameter is used to specify the kernel or kernels to be identified as predicted. Any combination of kernel file names or regular expression may be specified. The value of "PREDICTDIR" is prepended to each element before being expanded. Each regular expression is evaluated then the results are sorted according to ASCII order and added to the list of available kernels.

Type string
Default none
Close Window
X

Predict: PREDICTLIST


Description

This parameter is used to specify a file list that contains the kernel or kernels to be identified as predicted. The order of the kernels in the file list will be retained with kernels later in the list taking precedence when multiple kernels cover the same time range.

Type filename
File Mode input
Exclusions
  • PREDICTDIR
  • PREDICTFILTER
Filter *.txt *.lis
Close Window
X

Reconstructed: RECONDIR


Description

This parameter specifies the path upon which the regular expression in "RECONFILTER" will operate. Since this parameter will be used explicitly in the "File" keyword of the generated database, it is recommended that only shortcuts known to the ISIS system and absolute pathnames are used. If left as "none" no reconstructed kernels will be included in the database.

Type string
Default none
Close Window
X

Reconstructed: RECONFILTER


Description

This parameter is used to specify the kernel or kernels to be identified as reconstructed. Any combination of kernel file names or regular expression may be specified. The value of "RECONDIR" is prepended to each element before being expanded. Each regular expression is evaluated then the results are sorted according to ASCII order and added to the list of available kernels.

Type string
Default none
Close Window
X

Reconstructed: RECONLIST


Description

This parameter is used to specify a file list that contains the kernel or kernels to be identified as reconstructed. The order of the kernels in the file list will be retained with kernels later in the list taking precedence when multiple kernels cover the same time range.

Type filename
File Mode input
Exclusions
  • RECONDIR
  • RECONFILTER
Filter *.txt *.lis
Close Window
X

Smithed: SMITHEDDIR


Description

This parameter specifies the path upon which the regular expression in "SMITHEDFILTER" will operate. Since this parameter will be used explicitly in the "File" keyword of the generated database, it is recommended that only shortcuts known to the ISIS system and absolute pathnames are used. If left as "none" no smithed kernels will be included in the database

Type string
Default none
Close Window
X

Smithed: SMITHEDFILTER


Description

This parameter is used to specify the kernel or kernels to be identified as smithed. Any combination of kernel file names or regular expression may be specified. The value of "SMITHED"DIR" is prepended to each element before being expanded. Each regular expression is evaluated then the results are sorted according to ASCII order and added to the list of available kernels.

Type string
Default none
Close Window
X

Smithed: SMITHEDLIST


Description

This parameter is used to specify a file list that contains the kernel or kernels to be identified as smithed. The order of the kernels in the file list will be retained with kernels later in the list taking precedence when multiple kernels cover the same time range.

Type filename
File Mode input
Exclusions
  • SMITHEDDIR
  • SMITHEDFILTER
Filter *.txt *.lis
Close Window
X

Offset: STARTOFFSET


Description

This parameter is used to specify the amount of offset (in seconds) to apply to the StartTime value for each kernel that is used to populate the db file. This value will be subtracted from the value found in the kernel. If left as 0.0, no offset will be applied, and the Time will be copied over as written in the kernel.

Type double
Default 0.0
Minimum 0.0 (inclusive)
Close Window
X

Offset: ENDOFFSET


Description

This parameter is used to specify the amount of offset (in seconds) to apply to the EndTime value for each kernel that is used to populate the db file. This value will be added to the value found in the kernel. If left as 0.0, no offset will be applied, and the Time will be copied over as written in the kernel.

Type double
Default 0.0
Minimum 0.0 (inclusive)
Close Window
X

Dependency Kernels: SCLK


Description

This parameter specifies a spacecraft clock kernel for use in determining spacecraft pointing data. An actual kernel may be used, or a pvl file of the form kernels.????.db that specifies SCLK data may be used, where ???? is the version sequence.

Type filename
Close Window
X

Dependency Kernels: LSK


Description

This parameter specifies a leapsecond kernel for use in determining spacecraft data. An actual kernel may be used, or a pvl file of the form kernels.????.db that specifies LSK data may be used, where ???? is the version sequence.

Type filename
Close Window
X

Dependency Kernels: EXTRA


Description

This parameter specifies additional kernels required to fully vet the CK/SPK kernels. An actual kernel may be used, or a pvl file of the form kernels.????.db that specifies LSK data may be used, where ???? is the version sequence.

Type filename
Internal Default none
Close Window