-
Notifications
You must be signed in to change notification settings - Fork 168
/
spiceinit.xml
1230 lines (1160 loc) · 51.4 KB
/
spiceinit.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<application name="spiceinit" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://isis.astrogeology.usgs.gov/Schemas/Application/application.xsd">
<brief>
Update SPICE data (kernels, pointing, and position) for a camera cube
</brief>
<description>
<p>
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.
</p>
<p>
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:
</p>
<ul>
<li>Leap Second (LS)</li>
<li>Spacecraft Clock (SCLK)</li>
<li>Target Position (TSPK)</li>
<li>Target AttitudeShape (PCK)</li>
<li>Instrument (IK)</li>
<li>Instrument Addendum (IAK)</li>
<li>Frame (FK)</li>
<li>Spacecraft Position (SPK) </li>
<li>Instrument Pointing (CK)</li>
<li>Shape Model (DEM)</li>
</ul>
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
<p>
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.
</p>
<p>
As kernels are loaded they override the data in previously loaded kernels.
The order in which kernels are loaded is:
<ol>
<li>Target Position</li>
<li>Instrument Position</li>
<li>Instrument Pointing</li>
<li>Frame</li>
<li>Target Attitude Shape</li>
<li>Instrument</li>
<li>Instrument Addendum</li>
<li>Leap Second</li>
<li>Spacecraft Clock</li>
<li>Extra</li>
</ol>
The spiceinit program 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:
<ol>
<li>Smithed</li>
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.
<li>Reconstructed</li>
These kernels are typically produced by a mission a few weeks after the target has been reached.
<li>Predicted</li>
These are preliminary kernels produced by a mission and are the
best-estimates of where the spacecraft will be at any given time.
<li>Nadir</li>
This is the worst quality kernel and is used as a last resort because it
assumes the spacecraft is always nadir-looking.
</ol>
</p>
<p>
The <b>InstrumentPositionQuality</b> and <b>InstrumentPointingQuality</b> 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.
</p>
<p>
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.
</p>
<p>
The spiceinit program will also add the RayTraceEngine, OnError, and Tolerance keywords to the Kernels
group if specified in the IsisPreferences file. If included, these keywords specify the ray-tracing engine to use and how to use it for shapemodels.
Please see the IsisPreferences file for more details.
</p>
<p><b>Troubleshooting:</b> 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.
</p>
<p><b>Issues running HRSC using ISIS SPICE Web Service:</b>
Currently HRSC images cannot be spiceinit'd using ISIS SPICE web services.
This is due to the HRSC camera model relying on cube data to process
line scan times. When using the SPICE server, only the label is returned
causing the camera model to fail initialization. In order to run spiceinit on
HRSC images, download the MEX data locally. See download instructions at
https://github.com/DOI-USGS/ISIS3/blob/dev/README.md#mission-specific-data-downloads.
</p>
</description>
<category>
<categoryItem>Cameras</categoryItem>
</category>
<history>
<change name="Debbie A. Cook" date="2000-06-08">
Original Version
</change>
<change name="Stuart Sides" date="2003-11-05">
Complete rewrite under ISIS 3.0 conversion.
</change>
<change name="Stuart Sides" date="2004-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.
</change>
<change name="Stuart Sides" date="2004-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.
</change>
<change name="Stuart Sides" date="2004-02-23">
Added elevation model DEM capabilities.
</change>
<change name="Stuart Sides" date="2004-02-24">
Completed capabilities to search for kernels of different qualities
such as PREDICTED, NADIR, RECONSTRUCTED, and C-SMITHED.
</change>
<change name="Stuart Sides" date="2005-11-08">
Added fix for framing cameras, so they would not need a stop time in
the instrument group of the labels.
</change>
<change name="Elizabeth Miller" date="2005-11-14">
Added appTest
</change>
<change name="Jacob Danton" date="2005-12-22">
Added support for multiple files within the kernels
</change>
<change name="Jacob Danton" date="2005-12-27">
Added a progress bar
</change>
<change name="Jacob Danton" date="2006-01-03">
Fixed the xml description
</change>
<change name="Jacob Danton" date="2006-01-25">
Changed the mission translation file name
</change>
<change name="Jacob Danton" date="2006-01-25">
Changed the appTest to comply with changes in the String class.
</change>
<change name="Jeff Anderson" date="2006-03-27">
Modified to write InstrumentPointing, InstrumentPosition, SunPosition, and BodyRotation
information to SPICE tables in the cube.
</change>
<change name="Brendan George" date="2006-09-19">
Added call to modify the history of the cube
</change>
<change name="Brendan George" date="2006-10-19">
Modifed to remove label entries for SPICE tables, if ATTACH is unchecked,
and the input cube already has them.
</change>
<change name="Steven Lambright" date="2007-07-10">
Combined Frame and InstrumentPointing. Changed to support new version of KernelDb. Cleaned
up the code.
</change>
<change name="Steven Lambright and Steve Koechle" date="2007-07-10">
Fixed problem where the allowed kernels were being set improperly.
</change>
<change name="Steven Lambright" date="2007-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.
</change>
<change name="Steven Koechle" date="2007-10-05">
Added a check to see if the cube had an existing polygon, if so delete it.
</change>
<change name="Steven Koechle" date="2007-10-25">
Fixed Smithed enum, changed from C-Smithed.
</change>
<change name="Steven Koechle" date="2007-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.
</change>
<change name="Steven Lambright" date="2008-02-13">
Added time padding options
</change>
<change name="Steven Lambright" date="2008-02-21">
Added additional explanation of time padding options
</change>
<change name="Steven Lambright" date="2008-02-22">
Split the CK parameter into FK and CK, they are still combined in the label as
InstrumentPointing.
</change>
<change name="Steven Lambright" date="2008-04-14">
All found CK kernels will now be tested before giving an error
</change>
<change name="Christopher Austin" date="2008-05-02">
Fixed the propagation of the EXTRA Kernel.
</change>
<change name="Steven Lambright" date="2008-05-12">
Removed references to CubeInfo
</change>
<change name="Steven Lambright" date="2008-05-19">
Fixed documentation
</change>
<change name="Christopher Austin" date="2008-06-03">
Furthered documentation.
</change>
<change name="Steven Koechle" date="2008-06-17">
Added CK check and throw more appropriate error
</change>
<change name="Christopher Austin" date="2008-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.
</change>
<change name="Tracie Sucharski" date="2009-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.
</change>
<change name="Steven Koechle" date="2009-05-12">
Added CameraVersion into the Kernel labels
</change>
<change name="Steven Lambright" date="2009-07-09">
Error messages from the camera are now reported
</change>
<change name="Steven Lambright" date="2009-07-21">
Fixed handling of user-entered CK kernels
</change>
<change name="Janet Barrett and Steven Lambright" date="2011-05-25">
Added support for storing text spice kernel values in the cube labels
</change>
<change name="Steven Lambright and Jai Rideout" date="2011-08-30">
Added support for using a spiceinit web service
</change>
<change name="Steven Lambright" date="2011-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.
</change>
<change name="Jai Rideout" date="2011-11-18">
Fixed bug in writing tables to the cube that were retrieved from the web
service.
</change>
<change name="Debbie A. Cook" date="2012-07-06">
Updated Spice members to be more compliant with ISIS coding standards.
References #972.
</change>
<change name="Jeannie Backer" date="2013-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.
</change>
<change name="Tammy Becker" date="2014-03-31">
Made a few documentation modifications regarding kernel quality
keywords and shapemodel keyword. References #1849.
</change>
<change name="Kimberly Oyama" date="2014-04-27">
Added assets directory for web example. Updated Documentation. Fixes #1849.
</change>
<change name="Tyler Wilson" date="2016-12-19">
Changed the URL for the spice server to https://services.isis.astrogeology.usgs.gov/cgi-bin/spiceinit.cgi
and the default port to 443 (it was originally 80). This is due to the recent https migration implementation
from within the Department of the Interior, which was causing people on the outside of the DOI network
to get an unrecognized server response error when attempting to download spice data. Fixes #4552.
</change>
<change name="Christopher Combs" date="2017-06-01">
Removed examples with links leading to missing images. Created two new examples:
one with default settings and another with a user-chosen ShapeModel.
</change>
<change name="Kristin Berry" date="2017-06-06">
Updated spiceinit to retain ShapeModel-related keywords set by the ShapeModelFactory and add them to the kernel
group. Like other keywords in the kernels group, if they are present at the beginning of a spiceinit run (if we are re-spiceiniting)
they are removed.
</change>
<change name="Kristin Berry" date="2017-08-06">
Updated spiceinit to remove code dealing with the CubeSupported Pvl Keyword, from the ShapeModel group in the IsisPreferences file,
which has been removed.
</change>
<change name="Christopher Combs" date="2018-01-11">
Made change to camera construction error throw for better reporting on uninstantiated cameras.
Fixes #5163.
</change>
<change name="Jesse Mapel" date="2020-02-26">
Changed PCK selection to use the same qualities as CK so that target body parameters
derived from bundle adjustment can be used alongside CKs derived from bundle adjustment.
Fixes #3669.
</change>
<change name="Jesse Mapel" date="2020-12-10">
Modified to remove state string and model information from the csminit application.
</change>
<change name="Kaitlyn Lee" date="2020-12-21">
Updated shape model keyword in the kernels group when shape=user and web=true with the user
specified model. Fixes #1986
</change>
<change name="Kaitlyn Lee" date="2020-12-22">
Moved writeHistory() call to main function because a history entry was only being written
to the cube when using a data area for kernels (not using the web service). Fixes #4040.
</change>
<change name="Adam Paquette" date="2021-08-10">
Fixed the NaifKeywords PvlObject not being updated/replaced when spiceinit with web=true was
run on a cube that was already spiceinit'd.
</change>
</history>
<oldName>
<item>levinit</item>
<item>naiflab</item>
<item>spicelab</item>
</oldName>
<groups>
<group name="Input Files">
<parameter name="FROM">
<type>cube</type>
<fileMode>input</fileMode>
<brief>
The input cube for which the Kernels group will be updated.
</brief>
<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.
</description>
<filter>*.cub</filter>
</parameter>
</group>
<group name="Spice Data">
<parameter name="WEB">
<type>boolean</type>
<default><item>false</item></default>
<brief>
Use the ISIS SPICE Web Service
</brief>
<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 $ISISDATA) 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.
</description>
<exclusions>
<item>ATTACH</item>
<item>LS</item>
<item>PCK</item>
<item>TSPK</item>
<item>IK</item>
<item>SCLK</item>
<item>CK</item>
<item>FK</item>
<item>SPK</item>
<item>IAK</item>
<item>EXTRA</item>
</exclusions>
<inclusions>
<item>URL</item>
<item>PORT</item>
</inclusions>
</parameter>
<parameter name="ATTACH">
<type>boolean</type>
<default><item>TRUE</item></default>
<brief>
Attach SPICE data to cube
</brief>
<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.
</description>
</parameter>
</group>
<group name="Instrument Orientation Kernel (CK) quality">
<parameter name="CKSMITHED">
<type>boolean</type>
<default><item>FALSE</item></default>
<brief>
Use smithed (corrected) pointing kernels if available
</brief>
<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.
</description>
</parameter>
<parameter name="CKRECON">
<type>boolean</type>
<default><item>TRUE</item></default>
<brief>
Use reconstructed pointing kernels if available
</brief>
<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.
</description>
</parameter>
<parameter name="CKPREDICTED">
<type>boolean</type>
<default><item>FALSE</item></default>
<brief>
Use predicted pointing kernels if available
</brief>
<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.
</description>
</parameter>
<parameter name="CKNADIR">
<type>boolean</type>
<default><item>FALSE</item></default>
<brief>
Compute nadir pointing if no other kernels exist
</brief>
<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.
</description>
</parameter>
</group>
<group name="Instrument Position Kernel (SPK) quality">
<parameter name="SPKSMITHED">
<type>boolean</type>
<default><item>FALSE</item></default>
<brief>
Use smithed (corrected) position kernels if available
</brief>
<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.
</description>
</parameter>
<parameter name="SPKRECON">
<type>boolean</type>
<default><item>TRUE</item></default>
<brief>
Use reconstructed position kernels if available
</brief>
<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.
</description>
</parameter>
<parameter name="SPKPREDICTED">
<type>boolean</type>
<default><item>FALSE</item></default>
<brief>
Use predicted pointing kernels if available
</brief>
<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.
</description>
</parameter>
</group>
<!--
<group name="Kernel Database">
<parameter name="DEFAULT">
<type>boolean</type>
<default><item>TRUE</item></default>
<brief>
Search the ISIS default database files for appropriate kernels
</brief>
<description>
Allows the program to search kernel databases in the ISIS
preference "BASE" and the mission specific ISIS preference
(e.g., "MGS") for kernels file to satisfy the kernel label
requirements.
</description>
</parameter>
<parameter name="DATABASE">
<type>filename</type>
<fileMode>input</fileMode>
<internalDefault>none</internalDefault>
<brief>
User defined kernel database file.
</brief>
<description>
Kernel database to be used to find kernels for the
input file. All kernels found in the user database will override any
found in the default database.
</description>
<filter>
*.db
</filter>
</parameter>
</group>
-->
<group name="User Override of System Kernels">
<parameter name="LS">
<type>filename</type>
<internalDefault>none</internalDefault>
<fileMode>input</fileMode>
<brief>
User defined leap second kernel file.
</brief>
<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.
</description>
<defaultPath>
$base/kernels/lsk/
</defaultPath>
<filter>*.tls</filter>
</parameter>
<parameter name="PCK">
<type>filename</type>
<internalDefault>none</internalDefault>
<fileMode>input</fileMode>
<brief>
User defined target attitude and shape kernel file.
</brief>
<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.
</description>
<defaultPath>
$base/kernels/pck/
</defaultPath>
<filter>*.tpc</filter>
</parameter>
<parameter name="TSPK">
<type>filename</type>
<internalDefault>none</internalDefault>
<fileMode>input</fileMode>
<brief>
User defined target position kernel file.
</brief>
<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.
</description>
<defaultPath>
$base/kernels/spk/
</defaultPath>
<filter>*.bsp</filter>
</parameter>
<parameter name="IK">
<type>filename</type>
<internalDefault>none</internalDefault>
<fileMode>input</fileMode>
<brief>
User defined instrument kernel file.
</brief>
<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.
</description>
<defaultPath>
$ISISDATA
</defaultPath>
<filter>*.ti</filter>
</parameter>
<parameter name="SCLK">
<type>filename</type>
<internalDefault>none</internalDefault>
<fileMode>input</fileMode>
<brief>
User defined spacecraft clock kernel file.
</brief>
<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.
</description>
<defaultPath>
$ISISDATA
</defaultPath>
<filter>*.tsc</filter>
</parameter>
<parameter name="CK">
<type>filename</type>
<internalDefault>none</internalDefault>
<fileMode>input</fileMode>
<brief>
User defined spacecraft pointing kernel file.
</brief>
<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.
</description>
<defaultPath>
$ISISDATA
</defaultPath>
<filter>*.bc</filter>
</parameter>
<parameter name="FK">
<type>filename</type>
<internalDefault>none</internalDefault>
<fileMode>input</fileMode>
<brief>
User defined frames kernel file.
</brief>
<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.
</description>
<defaultPath>
$ISISDATA
</defaultPath>
<filter>*.tf</filter>
</parameter>
<parameter name="SPK">
<type>filename</type>
<internalDefault>none</internalDefault>
<fileMode>input</fileMode>
<brief>
User defined spacecraft position kernel file.
</brief>
<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.
</description>
<defaultPath>
$ISISDATA
</defaultPath>
<filter>*.bsp</filter>
</parameter>
<parameter name="IAK">
<type>filename</type>
<internalDefault>none</internalDefault>
<fileMode>input</fileMode>
<brief>
User defined instrument addendum kernel file.
</brief>
<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.
</description>
<defaultPath>
$ISISDATA
</defaultPath>
<filter>*.ti</filter>
</parameter>
<parameter name="EXTRA">
<type>filename</type>
<internalDefault>none</internalDefault>
<fileMode>input</fileMode>
<brief>
User defined extra kernel file.
</brief>
<description>
Optional extra NAIF formatted kernel file. The EXTRA kernel will be
referenced in the keyword Extra by the resulting Kernel group.
</description>
<defaultPath>
$ISISDATA
</defaultPath>
</parameter>
</group>
<group name="Shape Model Parameters ">
<parameter name="SHAPE">
<type>string</type>
<default><item>SYSTEM</item></default>
<brief>
Select the definition of the shape model
</brief>
<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.
</description>
<list>
<option value="ELLIPSOID">
<brief>Use triaxial ellipsoid from PCK</brief>
<description>
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.
</description>
<exclusions>
<item>MODEL</item>
</exclusions>
</option>
<option value="RINGPLANE">
<brief>Use the targets equatorial ring plane</brief>
<description>
The camera will use the targets equatorial ringplane for surface intersections.
The ShapeModel keyword will be set to RINGPLANE.
</description>
<exclusions>
<item>MODEL</item>
</exclusions>
</option>
<option value="SYSTEM">
<brief>Search system for a default shape model</brief>
<description>
This option will search the default system data area ($ISISDATA/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 <b>ShapeModel</b>
keyword.
</description>
<exclusions>
<item>MODEL</item>
</exclusions>
</option>
<option value="USER">
<brief>User specified shape model file</brief>
<description>
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 <b>ShapeModel</b> keyword.
</description>
</option>
</list>
</parameter>
<parameter name="MODEL">
<type>cube</type>
<fileMode>input</fileMode>
<brief>
User defined ISIS cube shape model.
</brief>
<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 <b>ShapeModel</b> keyword.
</description>
<defaultPath>$base//dems/</defaultPath>
<filter>
*.cub
*.bds
</filter>
</parameter>
</group>
<group name="Time Parameters">
<parameter name="STARTPAD">
<type>double</type>
<minimum inclusive="true">0.0</minimum>
<brief>
Time padding (in seconds) to load from the kernels before the start time of the image
</brief>
<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.
</description>
<default><item>0.0</item></default>
</parameter>
<parameter name="ENDPAD">
<type>double</type>
<minimum inclusive="true">0.0</minimum>
<brief>
Time padding (in seconds) to load from the kernels after the end time of the image
</brief>
<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.
</description>
<default><item>0.0</item></default>
</parameter>
</group>
<group name="Spice Service Parameters">
<parameter name="URL">
<type>string</type>
<brief>The Spice Service URL</brief>
<description>
This is where a request for SPICE data is sent. The default is the USGS SPICE server.
</description>
<default><item>https://astrogeology.usgs.gov/apis/ale/v0.9.1/spiceserver/</item></default>
</parameter>
<parameter name="PORT">
<type>integer</type>
<brief>The Spice Service Port</brief>
<description>
This is the port on which a request for SPICE data is sent.
</description>
<default><item>443</item></default>
<minimum inclusive="yes">0</minimum>
</parameter>
</group>
</groups>
<examples>
<example>
<brief>
Example of spiceinit using default parameters.
</brief>
<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.
Because there is no default elevation model for Titan, spiceinit will set
the ShapeModel keyword to "Null".
</description>
<terminalInterface>
<commandLine>
from=v1545949478_1.cub
</commandLine>
<description>
An example of how to run this program with default parameters from the command line.
</description>
</terminalInterface>
<guiInterfaces>
<guiInterface>
<image width="625" height="800" src="assets/images/spiceinit_example1.jpg">
<brief>
Example GUI
</brief>
<description>
An example of how to run this program using the GUI. Note, the
updated Kernel group can be seen in the log window.
</description>
<thumbnail width="239" height="300" src="assets/thumbs/spiceinit_thumb1.jpg" caption="Example of GUI command"/>
</image>
</guiInterface>
</guiInterfaces>
<dataFiles>
<dataFile path="assets/dataFiles/v1545949478_1_after.pvl">
<brief>
Cube labels after spiceinit.
</brief>
<description>
This is the label of the input cube after spiceinit has been
run. The following groups were added to the cube's labels:
<pre>
Group = Kernels
NaifFrameCode = -82370
LeapSecond = $base/kernels/lsk/naif0012.tls
TargetAttitudeShape = ($base/kernels/pck/pck00009.tpc,
$cassini/kernels/pck/cpck27Mar2017.tpc)
TargetPosition = (Table, $base/kernels/spk/de405.bsp)
InstrumentPointing = (Table, $cassini/kernels/ck/06357_06362ra.bc,
$cassini/kernels/fk/cas_v40_usgs.tf)
Instrument = Null
SpacecraftClock = $cassini/kernels/sclk/cas00170.tsc
InstrumentPosition = (Table,
$cassini/kernels/spk/070208R_SCPSE_06356_0700-
8.bsp)
InstrumentAddendum = $cassini/kernels/iak/vimsAddendum03.ti
ShapeModel = Null
InstrumentPositionQuality = Reconstructed
InstrumentPointingQuality = Reconstructed
CameraVersion = 1
End_Group
Object = Table
Name = InstrumentPointing
StartByte = 6373579
Bytes = 4352
Records = 68
ByteOrder = Lsb
TimeDependentFrames = (-82000, 1)
ConstantFrames = (-82370, -82000)
ConstantRotation = (0.99991568332482, 0.0014510663863786,
-0.012904287946602, 0.012904407824453,
-7.32810212777781e-05, 0.99991673197751,
0.0014499999195506, -0.99999894451756,
-9.19999948958952e-05)
CkTableStartTime = 220528381.47991
CkTableEndTime = 220529079.47551
CkTableOriginalSize = 4096
FrameTypeCode = 3
Description = "Created by spiceinit"
Kernels = ($cassini/kernels/ck/06357_06362ra.bc,
$cassini/kernels/fk/cas_v40_usgs.tf)
Record Information
.
.
.
End_Object
Object = Table
Name = InstrumentPosition
StartByte = 6377931
Bytes = 6496
Records = 116
ByteOrder = Lsb
CacheType = HermiteSpline
SpkTableStartTime = 220528381.47991
SpkTableEndTime = 220529079.47551
SpkTableOriginalSize = 4096.0
Description = "Created by spiceinit"
Kernels = $cassini/kernels/spk/070208R_SCPSE_06356_07008.bsp
Record Information
.
.
.
End_Object
Object = Table
Name = BodyRotation
StartByte = 6384427