Home
About ISIS
Support
Download

ISIS 3

Documentation
Tutorials
Technical Documents

ISIS 2

Documentation
Tutorials
Technical Documents

Search

USGS

ISIS 3 Application Documentation


spiceinit

Printer Friendly View | TOC | Home

Update SPICE data (kernels, pointing, and position) for a camera cube

Overview Parameters Example 1 Example 2 Example 3 Example 4

Description

This program searches the ISIS data areas in order to discern the SPICE kernels required for the camera cube. Cubes which have supported camera models in the ISIS system require spacecraft position, pointing, body shape and orientation, sun position, and other information in order to compute ground positions (latitude/longitude) and photometric viewing angles. This information is stored in SPICE kernels.

The program uses the "SpacecraftName", "InstrumentId", "TargetName", "StartTime", and "StopTime" keywords from the cube's label to determine which kernels to use. It attempts to find kernel files for the following keywords and writes them to the Kernels group:

  • Leap Second (LS)
  • Spacecraft Clock (SCLK)
  • Target Position (TSPK)
  • Target AttitudeShape (PCK)
  • Instrument (IK)
  • Instrument Addendum (IAK)
  • Frame (FK)
  • Spacecraft Position (SPK)
  • Instrument Pointing (CK)
  • Shape Model (DEM)
If you are unfamilar with SPICE terminology it is recommended you read the NAIF required reading at http://naif.jpl.nasa.gov/naif/doc_C.html

The program modifies the kernels group and writes the name of the SPICE files that need to be loaded by the camera models. It has the option of pre-reading the data from the SPICE kernels and loading it as a binary table attached to the cube. This can faciliate faster load times and allows the instrument pointing to be easily updated.

As kernels are loaded they override the data in previously loaded kernels. The order in which kernels are loaded is:

  1. Target Position
  2. Instrument Position
  3. Instrument Pointing
  4. Frame
  5. Target Attitude Shape
  6. Instrument
  7. Instrument Addendum
  8. Leap Second
  9. Spacecraft Clock
  10. Extra
spiceinit will always try to use the highest quality kernels possible. This only applies to kernels that are not specified manually. The kernel qualities are, from best to worst:
  1. Smithed
  2. This is considered the best quality kernel and will be used first when selected. Smithed kernels have been improved or adjusted for accuracy by a mission team or for the purpose of a cartographic product. Consider the source, content and completeness of Smithed kernels when selecting this level of quality.
  3. Reconstructed
  4. These kernels are typically produced by a mission a few weeks after the target has been reached.
  5. Predicted
  6. These are preliminary kernels produced by a mission and are the best-estimates of where the spacecraft will be at any given time.
  7. Nadir
  8. This is the worst quality kernel and is used as a last resort because it assumes the spacecraft is always nadir-looking.

The InstrumentPositionQuality and InstrumentPointingQuality keywords are added to the Kernels group to indicate the level of quality of the loaded kernels. At least one of the parameters CKPREDICTED, CKNADIR, CKRECON, or CKSMITHED must be entered. Furthermore, at least one of the parameters SPKPREDICTED, SPKRECON, or SPKSMITHED must be entered.

Please note: Kernel Files specified that reside in the current working directory will not have their paths expanded. This is to allow variables like $msg/ to work correctly.

Troubleshooting: If spiceinit is failing with the error "No Camera Kernel found for the image ..." then try enabling the "CKPREDICTED" or "CKNADIR" option. A similar error exists for SPK kernels, and you can enable "SPKPREDICTED" to get past that error. "PREDICTED" and "NADIR" options typically have less accuracy than reconstructed and smithed kernels which is why they are disabled by default.


Categories


Related Applications to Previous Versions of ISIS

This program replaces the following applications existing in previous versions of ISIS:
  • levinit
  • naiflab
  • spicelab

History

Debbie A. Cook2000-06-08 Original Version
Stuart Sides2003-11-05 Complete rewrite under ISIS 3.0 conversion.
Stuart Sides2004-01-14 Modified to use an existing "Kernels" group instead of creating a new one. This was because the mission specific import program (e.g., moc2isis) was modified to create the "kernels" group and put the "NaifFrameCode" into it.
Stuart Sides2004-01-23 Added new parameter "TEST." This parameter controls the testing of the final kernel list. If false the kernels will not be tested for completeness by creating a camera model.
Stuart Sides2004-02-23 Added elevation model DEM capabilities.
Stuart Sides2004-02-24 Completed capabilities to search for kernels of different qualities such as PREDICTED, NADIR, RECONSTRUCTED, and C-SMITHED.
Stuart Sides2005-11-08 Added fix for framing cameras, so they would not need a stop time in the instrument group of the labels.
Elizabeth Miller2005-11-14 Added appTest
Jacob Danton2005-12-22 Added support for multiple files within the kernels
Jacob Danton2005-12-27 Added a progress bar
Jacob Danton2006-01-03 Fixed the xml description
Jacob Danton2006-01-25 Changed the mission translation file name
Jacob Danton2006-01-25 Changed the appTest to comply with changes in the String class.
Jeff Anderson2006-03-27 Modified to write InstrumentPointing, InstrumentPosition, SunPosition, and BodyRotation information to SPICE tables in the cube.
Brendan George2006-09-19 Added call to modify the history of the cube
Brendan George2006-10-19 Modifed to remove label entries for SPICE tables, if ATTACH is unchecked, and the input cube already has them.
Steven Lambright2007-07-10 Combined Frame and InstrumentPointing. Changed to support new version of KernelDb. Cleaned up the code.
Steven Lambright and Steve Koechle2007-07-10 Fixed problem where the allowed kernels were being set improperly.
Steven Lambright2007-08-10 Fixed so that when no spacecraft pointing is found, but frame kernels are, and Nadir is allowed it still adds the Nadir keyword.
Steven Koechle2007-10-05 Added a check to see if the cube had an existing polygon, if so delete it.
Steven Koechle2007-10-25 Fixed Smithed enum, changed from C-Smithed.
Steven Koechle2007-12-14 Added error handling logic. If the user chose to use Nadir CK and another type, and the system found a file where the image falls in a gap (no pointing is available) Nadir would never be calculated. Fixed.
Steven Lambright2008-02-13 Added time padding options
Steven Lambright2008-02-21 Added additional explanation of time padding options
Steven Lambright2008-02-22 Split the CK parameter into FK and CK, they are still combined in the label as InstrumentPointing.
Steven Lambright2008-04-14 All found CK kernels will now be tested before giving an error
Christopher Austin2008-05-02 Fixed the propagation of the EXTRA Kernel.
Steven Lambright2008-05-12 Removed references to CubeInfo
Steven Lambright2008-05-19 Fixed documentation
Christopher Austin2008-06-03 Furthered documentation.
Steven Koechle2008-06-17 Added CK check and throw more appropriate error
Christopher Austin2008-09-12 Added the removal of StartPadding and EndPadding keywords from previous spiceinit runs, and added some double inited tests. NOTE: Whenever adding new keywords, run spiceinit twice on the same cube in your test, dumping out both labels to verify that the keyword is not being duplicated.
Tracie Sucharski2009-03-12 If spice is put into a Table, append the kernel name to the Kernel group keyword to keep track of original spice kernels.
Steven Koechle2009-05-12 Added CameraVersion into the Kernel labels
Steven Lambright2009-07-09 Error messages from the camera are now reported
Steven Lambright2009-07-21 Fixed handling of user-entered CK kernels
Janet Barrett and Steven Lambright2011-05-25 Added support for storing text spice kernel values in the cube labels
Steven Lambright and Jai Rideout2011-08-30 Added support for using a spiceinit web service
Steven Lambright2011-10-05 As a result of our test and review team, I have updated the documentation to match the recommendations of Laz Kestay and Ken Edmundson. Fixes #423.
Jai Rideout2011-11-18 Fixed bug in writing tables to the cube that were retrieved from the web service.
Debbie A. Cook2012-07-06 Updated Spice members to be more compliant with ISIS coding standards. References #972.
Jeannie Backer2013-02-26 Added ability to load multiple ck database files from the system using a conf file. Changed methods to lower camel case to comply with Isis3 standards. Added web example. References #924.
Tammy Becker2014-03-31 Made a few documentation modifications regarding kernel quality keywords and shapemodel keyword. References #1849.
Kimberly Oyama2014-04-27 Added assets directory for web example. Updated Documentation. Fixes #1849.

Parameter Groups

Input Files

Name Description
FROM The input cube for which the Kernels group will be updated.

Spice Data

Name Description
WEB Use the ISIS SPICE Web Service
ATTACH Attach SPICE data to cube

Instrument Orientation Kernel (CK) quality

Name Description
CKSMITHED Use smithed (corrected) pointing kernels if available
CKRECON Use reconstructed pointing kernels if available
CKPREDICTED Use predicted pointing kernels if available
CKNADIR Compute nadir pointing if no other kernels exist

Instrument Position Kernel (SPK) quality

Name Description
SPKSMITHED Use smithed (corrected) position kernels if available
SPKRECON Use reconstructed position kernels if available
SPKPREDICTED Use predicted pointing kernels if available

User Override of System Kernels

Name Description
LS User defined leap second kernel file.
PCK User defined target attitude and shape kernel file.
TSPK User defined target position kernel file.
IK User defined instrument kernel file.
SCLK User defined spacecraft clock kernel file.
CK User defined spacecraft pointing kernel file.
FK User defined frames kernel file.
SPK User defined spacecraft position kernel file.
IAK User defined instrument addendum kernel file.
EXTRA User defined extra kernel file.

Shape Model Parameters

Name Description
SHAPE Select the definition of the shape model
MODEL User defined ISIS cube shape model.

Time Parameters

Name Description
STARTPAD Time padding (in seconds) to load from the kernels before the start time of the image
ENDPAD Time padding (in seconds) to load from the kernels after the end time of the image

Spice Service Parameters

Name Description
URLThe Spice Service URL
PORTThe Spice Service Port
X

Input Files: FROM


Description

The input cube for which the Kernels group will be updated. InstrumentPointing, InstrumentPosition, BodyRotation, and SunPosition tables will also be added to the cube.

Type cube
File Mode input
Filter *.cub
Close Window
X

Spice Data: WEB


Description

This option uses the ISIS SPICE Website to get the most up to date kernels available. The ATTACH parameter must be enabled for this option. Manually specifying kernel files is not allowed when this option is used. This service may be temporarily unavailable when new Isis releases are being distributed. Any mismatch in Isis version will cause this option to fail; only the most recent version of ISIS is supported. An active internet connection is required to use this service. Running with this option is slower than downloading the SPICE data locally (download all of $ISIS3DATA) and running spiceinit with the local data. This data can take up a lot of space. The size of the download will depend heavily on the mission and instrument of your input file.

Type boolean
Default false
Exclusions
  • ATTACH
  • LS
  • PCK
  • TSPK
  • IK
  • SCLK
  • CK
  • FK
  • SPK
  • IAK
  • EXTRA
Inclusions
  • URL
  • PORT
Close Window
X

Spice Data: ATTACH


Description

This option attaches binary tables to the cube which contain the instrument position (SPK) and orientation (CK), as well as the sun position and body/target orientation. This is the prefered initialization option as it allows the pointing to be updated by further programs.

Type boolean
Default TRUE
Close Window
X

Instrument Orientation Kernel (CK) quality: CKSMITHED


Description

Allow the use of pointing kernels marked as Smithed. If this parameter is selected, smithed kernels may be used to cover the time requirements of the image. Please consider the source, content, and completeness of a smithed ck-kernel before selecting. The keyword InstrumentPointingQuality=Smithed will be added to the Kernels group if this quality kernel is loaded.

Type boolean
Default FALSE
Close Window
X

Instrument Orientation Kernel (CK) quality: CKRECON


Description

Allow the use of pointing kernels marked as Reconstructed. This is the default option. If reconstructed kernels cannot be found for the given time range, the program will fail. The keyword InstrumentPointingQuality=Reconstructed will be added to the Kernels group if this quality kernel is loaded.

Type boolean
Default TRUE
Close Window
X

Instrument Orientation Kernel (CK) quality: CKPREDICTED


Description

Allow the use of pointing kernels marked as Predicted. The program will check the reconstructed kernels for the given time range first. If the time range is not found, spiceinit will check for predicted kernels. If predicted kernels cannot be found for the given time range, the program will fail. The keyword InstrumentPointingQuality=Predicted will be added to the Kernels group if this quality kernel is loaded.

Type boolean
Default FALSE
Close Window
X

Instrument Orientation Kernel (CK) quality: CKNADIR


Description

This option will create nadir pointing data. The higher quality kernels will be checked first. If the given time range cannot be found, spiceinit will use a nadir kernel. The keyword InstrumentPointingQuality=Nadir will be added to the Kernels group if this quality kernel is loaded.

Type boolean
Default FALSE
Close Window
X

Instrument Position Kernel (SPK) quality: SPKSMITHED


Description

Allow the use of position kernels marked as Smithed. If this parameter is turned on, smithed kernels may be used to cover the time requirements of the image. If a smithed kernel cannot be found, spiceinit will look for a reconstructed kernel for the given time frame. Please consider the source, content, and completeness of a smithed spk-kernel when selected. The keyword InstrumentPositionQuality=Smithed will be added to the Kernels group if this quality kernel is loaded.

Type boolean
Default FALSE
Close Window
X

Instrument Position Kernel (SPK) quality: SPKRECON


Description

Allow the use of position kernels marked as Reconstructed. This is the default option. If no lower quality options are selected and spiceinit cannot find reconstructed kernels for the given time frame, the program will fail. The keyword InstrumentPositionQuality=Reconstructed will be added to the Kernels group if this quality kernel is loaded.

Type boolean
Default TRUE
Close Window
X

Instrument Position Kernel (SPK) quality: SPKPREDICTED


Description

Allow the use of pointing kernels marked as Predicted. The program will check the reconstructed kernels for the given time range first. If the time range is not found, spiceinit will check for predicted kernels. If predicted kernels cannot be found for the given time range, the program will fail The keyword InstrumentPositionQuality=Predicted will be added to the Kernels group if this quality kernel is loaded.

Type boolean
Default FALSE
Close Window
X

User Override of System Kernels: LS


Description

NAIF kernel file to be used for the leap second in place of the automated leap second kernel. The LS kernel will be referenced in the keyword LeapSecond by the resulting Kernel group. If none is specified, spiceinit will use the latest kernel configuration file or kernel database file to find the appropriate kernel(s) for the given input file.

Type filename
File Mode input
Default Path $base/kernels/lsk/
Internal Default none
Filter *.tls
Close Window
X

User Override of System Kernels: PCK


Description

NAIF kernel file to be used for the target attitude and shape in place of the automated attitude and shape kernel. The PCK kernel will be referenced in the keyword TargetAttitudeShape by the resulting Kernel group. If none is specified, spiceinit will use the latest kernel configuration file or kernel database file to find the appropriate kernel(s) for the given input file.

Type filename
File Mode input
Default Path $base/kernels/pck/
Internal Default none
Filter *.tpc
Close Window
X

User Override of System Kernels: TSPK


Description

NAIF kernel file to be used for the target position in place of the automated position kernel. The TSPK kernel will be referenced in the keyword TargetPosition by the resulting Kernel group. If none is specified, spiceinit will use the latest kernel configuration file or kernel database file to find the appropriate kernel(s) for the given input file.

Type filename
File Mode input
Default Path $base/kernels/spk/
Internal Default none
Filter *.bsp
Close Window
X

User Override of System Kernels: IK


Description

NAIF kernel file to be used for the instrument in place of the automated instrument kernel. The IK kernel will be referenced in the keyword Instrument by the resulting Kernel group. If none is specified, spiceinit will use the latest kernel configuration file or kernel database file to find the appropriate kernel(s) for the given input file.

Type filename
File Mode input
Default Path $ISIS3DATA
Internal Default none
Filter *.ti
Close Window
X

User Override of System Kernels: SCLK


Description

NAIF kernel file to be used for the spacecraft clock in place of the automated spacecraft clock kernel. The SCLK kernel will be referenced in the keyword Instrument by the resulting Kernel group. If none is specified, spiceinit will use the latest kernel configuration file or kernel database file to find the appropriate kernel(s) for the given input file.

Type filename
File Mode input
Default Path $ISIS3DATA
Internal Default none
Filter *.tsc
Close Window
X

User Override of System Kernels: CK


Description

NAIF kernel file to be used for the spacecraft pointing in place of the automated spacecraft pointing kernel. The CK kernel will be referenced in the keyword InstrumentPointing by the resulting Kernel group. If none is specified, spiceinit will use the latest kernel configuration file or kernel database file to find the appropriate kernel(s) for the given input file.

Type filename
File Mode input
Default Path $ISIS3DATA
Internal Default none
Filter *.bc
Close Window
X

User Override of System Kernels: FK


Description

NAIF kernel file to be used for the instrument frame in place of the automated frames kernel. The FK kernel will be referenced in the keyword InstrumentPointing by the resulting Kernel group. Note: If you enter a filename for CK some instruments may require a frame kernel as well. If none is specified, spiceinit will use the latest kernel configuration file or kernel database file to find the appropriate kernel(s) for the given input file.

Type filename
File Mode input
Default Path $ISIS3DATA
Internal Default none
Filter *.tf
Close Window
X

User Override of System Kernels: SPK


Description

NAIF kernel file to be used for the spacecraft position in place of the automated spacecraft position kernel. The SPK kernel will be referenced in the keyword InstrumentPosition by the resulting Kernel group. If none is specified, spiceinit will use the latest kernel configuration file or kernel database file to find the appropriate kernel(s) for the given input file.

Type filename
File Mode input
Default Path $ISIS3DATA
Internal Default none
Filter *.bsp
Close Window
X

User Override of System Kernels: IAK


Description

NAIF formatted kernel file to be used for the ISIS specific instrument addendum kernel, in place of the automated. The IAK kernel will be referenced in the keyword InstrumentAddendum by the resulting Kernel group. If none is specified, spiceinit will use the latest kernel configuration file or kernel database file to find the appropriate kernel(s) for the given input file.

Type filename
File Mode input
Default Path $ISIS3DATA
Internal Default none
Filter *.ti
Close Window
X

User Override of System Kernels: EXTRA


Description

Optional extra NAIF formatted kernel file. The EXTRA kernel will be referenced in the keyword Extra by the resulting Kernel group.

Type filename
File Mode input
Default Path $ISIS3DATA
Internal Default none
Close Window
X

Shape Model Parameters : SHAPE


Description

ISIS camera models can use a shape model (a projected ISIS cube that defines the radii for a global or regional area). You can choose to select a shape model or to use the definition of the ellipsoid found in the planetary constants (PCK) file.

Type string
Default SYSTEM
Option List:
Option Brief Description
ELLIPSOIDUse triaxial ellipsoid from PCK The camera will use the radii defined in the planetary constants file (PCK) when determining intersections of the body surface. The ShapeModel keyword will be set to NULL for an ellipsoid.

Exclusions

  • MODEL
RINGPLANEUse the targets equatorial ring plane The camera will use the targets equatorial ringplane for surface intersections. The ShapeModel keyword will be set to RINGPLANE.

Exclusions

  • MODEL
SYSTEMSearch system for a default shape model This option will search the default system data area ($ISIS3DATA/base/dems) for a shape model that matches the target of the input cube. If none are found then no shape model will be used and the default ellipsoid parameters found in the planetary constants (PCK) file define the shape. The filename and path of the shape model loaded will be found in the cube labels Kernels Group in the ShapeModel keyword.

Exclusions

  • MODEL
USERUser specified shape model file The camera will use shape model defined by the parameter MODEL. The filename and path of the shape model loaded will be found in the cube labels Kernels Group in the ShapeModel keyword.
Close Window
X

Shape Model Parameters : MODEL


Description

A map projected ISIS cube which contains the radii of the target. The file can cover more than the input cube (FROM) but must minimally cover the data in the input cube. The filename and path of the shape model loaded will be found in the cube labels Kernels Group in the ShapeModel keyword.

Type cube
File Mode input
Default Path $base//dems/
Filter *.cub
Close Window
X

Time Parameters: STARTPAD


Description

When the kernels for an image are loaded, by default only what the image requires is loaded. By setting this option, the loaded kernels start at the specified amount of time before the image start time. Using this option for framing cameras could significantly decrease the accuracy of the NAIF information because this will cause the information to be interpolated between the STARTPAD and ENDPAD.

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

Time Parameters: ENDPAD


Description

When the kernels for an image are loaded, by default only what the image requires is loaded. By setting this option, the loaded kernels end at the specified amount of time after the image end time. Using this option for framing cameras could significantly decrease the accuracy of the NAIF information because this will cause the information to be interpolated between the STARTPAD and ENDPAD.

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

Spice Service Parameters: URL


Description

This is where a request for SPICE data is sent. The default is the USGS SPICE server.

Type string
Default http://services.isis.astrogeology.usgs.gov/cgi-bin/spiceinit.cgi
Close Window
X

Spice Service Parameters: PORT


Description

This is the port on which a request for SPICE data is sent. The USGS server works on port 80.

Type integer
Default 80
Minimum 0 (inclusive)
Close Window

Example 1

Example of spiceinit using default parameters.

Description

This example shows how to use spiceinit using the default parameters. That is, the SPICE data will be attached to the cube labels (attach=yes). Only reconstructed kernel types will be allowed for CK and SPK kernels, the default system kernels will be found in the kernel database files, and no time parameters will be set. It shows how spiceinit will default to the LOLA shapemodel for a cube that has the TargetName keyword in the Instrument group set to "Moon."

Command Line

spiceinit from=inputCube.cub
An example of how to run this program with default parameters from the command line.

GUI Screenshot

Example of GUI command

Example GUI

An example of how to run this program using the GUI. Note, the updated Kernel group can be seen in the log window.

Data File

Links open in a new window.
Cube labels after spiceinit. This is the label of the input cube after spiceinit has been run. The following groups were added to the cube's labels:
                Group = Kernels
                  NaifFrameCode             = -915240
                  LeapSecond                = $base/kernels/lsk/naif0010.tls
                  TargetAttitudeShape       = ($base/kernels/pck/pck00009.tpc,
                                              $base/kernels/pck/lunar_de403_1950-2199_pa.bp-
                                              c, $base/kernels/fk/lunarMeanEarth001.tf)
                  TargetPosition            = (Table, $base/kernels/spk/de405.bsp)
                  InstrumentPointing        = (Table,
                                              $apollo15/kernels/ck/AS15_M_REV04_v2.bc,
                                              $apollo15/kernels/fk/apollo15_v2.0001.tf)
                  Instrument                = $apollo15/kernels/ik/apollo15_metric_v2.0001.-
                                              ti
                  SpacecraftClock           = $apollo15/kernels/sclk/apollo15.0001.tsc
                  InstrumentPosition        = (Table,
                                              $apollo15/kernels/spk/AS15_M_REV04_v2.bsp)
                  InstrumentAddendum        = $apollo15/kernels/iak/apollo15MetricAddendum0-
                                              02.ti
                  ShapeModel                = $base/dems/ldem_128ppd_Mar2011_clon180_radius-
                                              _pad.cub
                  InstrumentPositionQuality = Reconstructed
                  InstrumentPointingQuality = Reconstructed
                  CameraVersion             = 2
                End_Group

                Group = Code
                  StartTime                 = 1971-07-30T02:17:00.368
                  SpacecraftAltitude        = 104609 meters
                  ExposureDuration          = 90.9 milliseconds 
                  ForwardMotionCompensation = False
                  Column1                   = (1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1,
                                              1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1,
                                              1, 1)
                  Column2                   = (1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0,
                                              1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1,
                                              0, 1)
                  Column3                   = (1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1,
                                              1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0,
                                              0, 1)
                  Column4                   = (1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0,
                                              1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                                              0, 1)
                End_Group

              Object = Table
                Name                = InstrumentPointing
                StartByte           = 131168037
                Bytes               = 64
                Records             = 1
                ByteOrder           = Lsb
                TimeDependentFrames = (-915240, 1400015, 1)
                CkTableStartTime    = -897039738.68168
                CkTableEndTime      = -897039738.68168
                CkTableOriginalSize = 1
                Description         = "Created by spiceinit"
                Kernels             = ($apollo15/kernels/ck/AS15_M_REV04_v2.bc,
                                      $apollo15/kernels/fk/apollo15_v2.0001.tf)
                                      
                Record Information
                .
                .
                .
                
              End_Object

              Object = Table
                Name                 = InstrumentPosition
                StartByte            = 131168101
                Bytes                = 56
                Records              = 1
                ByteOrder            = Lsb
                CacheType            = Linear
                SpkTableStartTime    = -897039738.68168
                SpkTableEndTime      = -897039738.68168
                SpkTableOriginalSize = 1.0
                Description          = "Created by spiceinit"
                Kernels              = $apollo15/kernels/spk/AS15_M_REV04_v2.bsp
                
                Record Information
                .
                .
                .
                
              End_Object

              Object = Table
                Name                 = SunPosition
                StartByte            = 131168221
                Bytes                = 56
                Records              = 1
                ByteOrder            = Lsb
                CacheType            = Linear
                SpkTableStartTime    = -897039738.68168
                SpkTableEndTime      = -897039738.68168
                SpkTableOriginalSize = 1.0
                Description          = "Created by spiceinit"
                Kernels              = $base/kernels/spk/de405.bsp
                
                Record Information
                .
                .
                .
                
              End_Object

              Object = NaifKeywords
                BODY301_RADII           = (1737.4, 1737.4, 1737.4)
                BODY_FRAME_CODE         = 310001
                INS-915240_FOCAL_LENGTH = 76.054
                INS-915240_PIXEL_PITCH  = 0.005
                INS-915240_TRANSX       = (0.0, -0.005, 0.0)
                INS-915240_TRANSY       = (0.0, 0.0, 0.005)
                INS-915240_ITRANSS      = (0.0, -200.0, 0.0)
                INS-915240_ITRANSL      = (0.0, 0.0, 200.0)
                INS-915240_PP           = (-0.006, -0.002)
                INS-915240_OD_K         = (-1.3361854e-06, 5.2261757e-10, -5.0728336e-14)
                INS-915240_DECENTER     = (-5.4958195e-07, -4.608942e-11, 2.965907)
              End_Object
            

Example 2

Example of spiceinit with user defined options.

Description

This example shows how to run spiceinit with a user defined dem. This run of spiceinit will also look for smithed CK kernels.

Command Line

spiceinit from=inputCube.cub cksmithed=true shape=user model=/usgs/cpkgs/isis3/data/base/dems/ulcn2005_clean_0004.cub
An example of how to run this program with user defined parameters from the command line.

GUI Screenshot

Example of GUI command

Example GUI

An example of how to run this program using the GUI. Note, the updated Kernel group can be seen in the log window.

Data File

Links open in a new window.
Cube labels after spiceinit. This is the cube labels of the input cube after spiceinit has been run. The following groups were added to the cube's labels:
              Group = Kernels
                NaifFrameCode             = -40002
                LeapSecond                = $base/kernels/lsk/naif0009.tls
                TargetAttitudeShape       = ($base/kernels/pck/pck00009.tpc,
                                            $base/kernels/pck/lunar_de403_1950-2199_pa.bp-
                                            c, $base/kernels/fk/lunarMeanEarth001.tf)
                TargetPosition            = (Table, $base/kernels/spk/de405.bsp)
                InstrumentPointing        = (Table,
                                            $Clementine1/kernels/ck/clem_ulcn2005_type2_1-
                                            sc.bc,
                                            $Clementine1/kernels/ck/clem_ulcn2005_1mn.bc,
                                            $clementine1/kernels/fk/clem_v11.tf)
                Instrument                = Null
                SpacecraftClock           = $Clementine1/kernels/sclk/dspse002.tsc
                InstrumentPosition        = (Table,
                                            $Clementine1/kernels/spk/SPKMERGE_940219_9405-
                                            04_CLEMV001b.bsp)
                InstrumentAddendum        = $Clementine1/kernels/iak/uvvisAddendum003.ti
                ShapeModel                = /usgs/cpkgs/isis3/data/base/dems/ulcn2005_cle-
                                            an_0004.cub
                InstrumentPositionQuality = Reconstructed
                InstrumentPointingQuality = Smithed
                CameraVersion             = 1
              End_Group
              .
              .
              .
              Object = Table
                Name                = InstrumentPointing
                StartByte           = 218054
                Bytes               = 64
                Records             = 1
                ByteOrder           = Lsb
                TimeDependentFrames = (-40000, 1)
                ConstantFrames      = (-40002, -40000)
                ConstantRotation    = (-0.0061086110412591, -0.99996607260776,
                                      -0.0055261654481643, 0.99998079393998,
                                      -0.0061027272118316, -0.0010809587141711,
                                      0.0010471973598032, -0.0055326624686356,
                                      0.99998414638618)
                CkTableStartTime    = -184266197.17362
                CkTableEndTime      = -184266197.17362
                CkTableOriginalSize = 1
                Description         = "Created by spiceinit"
                Kernels             = ($Clementine1/kernels/ck/clem_ulcn2005_type2_1sc.bc,
                                      $Clementine1/kernels/ck/clem_ulcn2005_1mn.bc,
                                      $clementine1/kernels/fk/clem_v11.tf)
                Record Information
                .
                .
                .
              End_Object
            

Example 3

This example shows how to run spiceinit with no shapemodel.

Description

This example shows how to run spiceinit with no shapemodel. The system has no shapemodel for Europa.

Command Line

spiceinit from=inputCube.cub
An example of how to run this program with default parameters from the command line.

GUI Screenshot

Example of GUI command

Example GUI

An example of how to run this program using the GUI. Note, the updated Kernel group can be seen in the log window.

Data File

Links open in a new window.
Cube labels after spiceinit. This is the Kernels group that spiceinit added to the FROM cube:
                Group = Kernels
                  NaifFrameCode             = -77001
                  LeapSecond                = $base/kernels/lsk/naif0010.tls
                  TargetAttitudeShape       = $base/kernels/pck/pck00009.tpc
                  TargetPosition            = (Table, $base/kernels/spk/de405.bsp)
                  InstrumentPointing        = (Table,
                                              $galileo/kernels/ck/CKmerge_type3.plt.bck)
                  Instrument                = Null
                  SpacecraftClock           = $galileo/kernels/sclk/mk00062b.tsc
                  InstrumentPosition        = (Table, $galileo/kernels/spk/s000131a.bsp)
                  InstrumentAddendum        = $galileo/kernels/iak/ssiAddendum004.ti
                  ShapeModel                = Null
                  InstrumentPositionQuality = Reconstructed
                  InstrumentPointingQuality = Reconstructed
                  CameraVersion             = 1
                End_Group
            

Example 4

Example of spiceinit with a ringplane image.

Description

This example shows how to use spiceinit for a ringplane image.

Command Line

spiceinit from=inputCube.cub
An example of how to run this program with default parameters from the command line.

GUI Screenshot

Example of GUI command

Example GUI

An example of how to run this program using the GUI. Note, the updated Kernel group can be seen in the log window.

Data File

Links open in a new window.
Cube labels after spiceinit. This is the cube labels of the input cube after spiceinit has been run. The following groups were added to the cube's labels:
                Group = Kernels
                  NaifFrameCode             = -82361
                  LeapSecond                = $base/kernels/lsk/naif0010.tls
                  TargetAttitudeShape       = ($base/kernels/pck/pck00009.tpc,
                                              $cassini/kernels/pck/cpck12Dec2013.tpc)
                  TargetPosition            = (Table, $base/kernels/spk/de405.bsp)
                  InstrumentPointing        = (Table, $cassini/kernels/ck/09201_09206ra.bc,
                                              $cassini/kernels/fk/cas_v40.tf)
                  Instrument                = Null
                  SpacecraftClock           = $cassini/kernels/sclk/cas00158.tsc
                  InstrumentPosition        = (Table,
                                              $cassini/kernels/spk/090921R_SCPSE_09200_0921-
                                              5.bsp)
                  InstrumentAddendum        = $cassini/kernels/iak/IssWAAddendum004.ti
                  ShapeModel                = RingPlane
                  InstrumentPositionQuality = Reconstructed
                  InstrumentPointingQuality = Reconstructed
                  CameraVersion             = 1
                End_Group