Skip to content
Snippets Groups Projects
Commit ecb0d808 authored by Kristin's avatar Kristin Committed by Jesse Mapel
Browse files

Adds New Horizons LORRI driver and test for ale (#288)

* Adds New Horizons LORRI driver and test

* Added test data

* Add instrument_id

* Update test to new format and other minor changes based on comments
parent c38386dd
No related branches found
No related tags found
No related merge requests found
Showing
with 13090 additions and 0 deletions
from glob import glob
import os
import struct
import pvl
import spiceypy as spice
import numpy as np
from ale.base import Driver
from ale.base.data_naif import NaifSpice
from ale.base.label_isis import IsisLabel
from ale.base.type_sensor import Framer
class NewHorizonsLorriIsisLabelNaifSpiceDriver(Framer, IsisLabel, NaifSpice, Driver):
"""
Driver for reading New Horizons LORRI ISIS3 Labels. These are Labels that have been
ingested into ISIS from PDS EDR images but have not been spiceinit'd yet.
"""
@property
def instrument_id(self):
"""
Returns an instrument id for uniquely identifying the instrument, but often
also used to be piped into Spice Kernels to acquire IKIDs. Therefore they
the same ID the Spice expects in bods2c calls.
Returns
-------
: str
instrument id
"""
id_lookup = {
"LORRI" : "NH_LORRI"
}
return id_lookup[super().instrument_id]
@property
def ikid(self):
"""
Overridden to grab the ikid from the Isis Cube since there is no way to
obtain this value with a spice bods2c call. Isis sets this value during
ingestion, based on the original fits file.
For LORRI, there are two options associated with different binning modes:
1x1 binning: -98301
4x4 binning: -98302
Returns
-------
: integer
Naif Integer ID code for the instrument
"""
return self.label['IsisCube']['Kernels']['NaifFrameCode']
DAFETF NAIF DAF ENCODED TRANSFER FILE
'DAF/SPK '
'2'
'6'
'SPKMERGE '
BEGIN_ARRAY 1 39
'DE-0413LE-0413 '
'D7789BEA059AE^7'
'D7789CB032A938^7'
'A'
'0'
'1'
'2'
39
'D6D9F4^7'
'A8C^5'
'4BF19A11B9610C^5'
'-19E9E21C5194F9^4'
'-B4B99503C78^1'
'-1B012C9D211^0'
'339F227C2^-1'
'-41E6B733CE^-2'
'-7B02EA2^-3'
'290DDF91^-3'
'-370795^-4'
'-7280AB6^-5'
'26ACF1C^-5'
'918336532181E^5'
'EF3A97F3DB45F8^3'
'-F639A39C9A^1'
'-13D275692C58^0'
'-2F456FC4^-2'
'564DF97A38^-2'
'-E45A188^-3'
'41244B08^-4'
'4792F8^-4'
'-C4A7867^-5'
'2E43CE^-6'
'3B14B17FB640DC^5'
'6DB893E99BE854^3'
'-64C2021EF1^1'
'-8A2102856A8^-1'
'-63A66097^-2'
'35506CBB1D^-2'
'-6D3FA14^-3'
'-215772E^-4'
'2BF02B^-4'
'-5D2D74D8^-5'
'-277101^-6'
'D63134^7'
'1518^6'
'23^2'
'1^1'
END_ARRAY 1 39
BEGIN_ARRAY 2 30
'DE-0413LE-0413 '
'D7789BEA059AE^7'
'D7789CB032A938^7'
'5'
'0'
'1'
'2'
30
'D63134^7'
'1518^6'
'-13793B80F0E247^8'
'F826FF91D4D07^6'
'9DA91A9F018^4'
'-13D6F80638CC^3'
'-96076878^0'
'3AE6D68^-2'
'4AB8^-4'
'453^-6'
'-282E6C603A6EA4^8'
'-59460001523468^6'
'14553B7990F8^5'
'9C590D7104E^2'
'-AF683C8^0'
'-620C0B3^-2'
'-944^-5'
'-39048^-5'
'-10BFCA6B1ED407^8'
'-2C4EE62DC51A78^6'
'879B50A2D21^4'
'4ABE6B700FF^2'
'-47887D3^0'
'-2B72FFC8^-2'
'-6F8^-5'
'-1967A^-5'
'D4DFB4^7'
'2A3^6'
'1A^2'
'1^1'
END_ARRAY 2 30
BEGIN_ARRAY 3 84
'JUP260 '
'D7789BEA059AE^7'
'D7789CB032A938^7'
'1F5'
'5'
'1'
'3'
84
'D77828^7'
'A8C^4'
'1135424373AF4^5'
'-696AEBF08E8B94^5'
'-1D07CA3C81F158^5'
'113B1330D768AF^5'
'2115B294F25CE2^4'
'-B66864087E07A^3'
'-C9102E97AE7C^2'
'339694059AA8^2'
'102CBDBB076^1'
'-572075094A^0'
'E25D81F5C^-1'
'-12DE2ADD74^-1'
'-6C9A3324^-2'
'1D83CC336FC31A^5'
'33A20CCE08E622^5'
'-30ECAE2F1C80D2^5'
'-85AE9B22126918^4'
'38FC15270063E^4'
'5475B18B7F946^3'
'-18096BC69AE48^3'
'-129EB0B513258^2'
'485CBAC477C^1'
'-21071E24E28^0'
'-F63043FC^-2'
'294AEFA5E6^-1'
'-2D9DA41C^-2'
'E5BAC426B5ED9^4'
'16DD2CC96E71F4^5'
'-17CF0A5A7D7EFF^5'
'-3B268ABF1A038^4'
'1BB814B903FCD2^4'
'253BEDC258935E^3'
'-BAB4B96A7FFE^2'
'-804F02D21A4^1'
'22C4EB0D3F3^1'
'-1132E1C499A^0'
'-38BE3206^-2'
'135FE10939^-1'
'-179F2C8E^-2'
'-56C68523A3771C^1'
'-97F3E929B49D88^1'
'924B4775631D68^1'
'18354AB67B9517^1'
'-A8B4E306C44F48^0'
'-E32170294A957^-1'
'43E35A828C166C^-1'
'1A2777B52FB11D^-2'
'-9727FBFAA97B4^-3'
'19DCF589A740DA^-3'
'-275B5F1A2A7A1E^-4'
'-F721733C4D5E7^-5'
'0^0'
'2AC206C1D7E3AC^1'
'-FF57027B3EB7E^1'
'-47247D75F8AF6^1'
'298A9B44F4E16^1'
'4E85EC65F28488^0'
'-1AEB96BC787333^0'
'-18EA52F626ABF8^-1'
'6DA3090DAF809^-2'
'-32FBEE46E76B54^-3'
'-23AA5CD66054F4^-4'
'56223091CD8EF8^-4'
'-67CD1EF8091A2C^-5'
'0^0'
'12F152ED239DCC^1'
'-7C443C3B7238D8^1'
'-1F7C5189424597^1'
'14355F83430A3F^1'
'22A1AFA365722E^0'
'-D122BDFB8740D8^-1'
'-ABFE97B78B52E^-2'
'34B4F01A08F5C2^-2'
'-1AD3A169A29876^-3'
'-A15AA6A9E87C6^-5'
'2869F0B713E93E^-4'
'-35C0AE3456789A^-5'
'0^0'
'D76D9C^7'
'1518^5'
'5^2'
'1^1'
END_ARRAY 3 84
BEGIN_ARRAY 4 73
'nh_20060119_20070319_recon_e2j.nio '
'D7789BEA059AE^7'
'D7789CB032A938^7'
'-62'
'5'
'1'
'1'
73
'D7796479A93CD8^7'
'A96D773BD65D8^3'
'152DAEE77ACBB^4'
'1FC4865B383188^4'
'2A5B5DCEF5976^4'
'34F23542B2FD38^4'
'3E5BD8543EF43^4'
'46B9BE9CBB418^4'
'4E29A7C0B8147^4'
'5409FAD3AC204^4'
'59432839DA5568^4'
'5D63B13B936948^4'
'60A67C4CBD6608^4'
'638C86231BAA4^4'
'65D6D370D4AF28^4'
'DC1C8B04F7E788^4'
'-22A3DD0276416E^6'
'-A11125F143039^1'
'A51C09F6F72FC^5'
'-1163C035C3910A^2'
'78F3ED8D10B688^4'
'-69AD32800E792^1'
'16B0BA6F35548A^-3'
'-112C8A3B5C838C^-5'
'-9905F316848CA8^-6'
'51712FC91AD3D4^-7'
'11F7A3A63123EB^-7'
'-1A5B470D965897^-8'
'-4B2000B3253228^-9'
'CA9D2DA3235C98^-A'
'203770D884C6F6^-A'
'-8068D66F9B9B08^-B'
'-12F095C4F52054^-B'
'6385FB776CE0CC^-C'
'18BE1^-C'
'0^0'
'0^0'
'-6C28D54B641DD^-4'
'94ADCFCD31F67^-5'
'-1168D6FFBF44CF^-6'
'-AC75279DCBBD^-7'
'85AC576C61F6D^-8'
'20F9ADCE0F4F9C^-8'
'-3B1FD270037824^-9'
'-B92847F67ED1C^-A'
'2276B5013AC134^-A'
'60043CC3BA04C8^-B'
'-18980F366982E7^-B'
'-4058782D42C764^-C'
'162B2^-C'
'0^0'
'0^0'
'-4F38B29D4EAA68^-5'
'2FB477EB5026FC^-5'
'-12BE66F7F49798^-6'
'-321CCA851B5F4C^-7'
'44968E0683252C^-8'
'8AA4FD891BAF38^-9'
'-19EBC1E88ADA04^-9'
'-2C015C48EBC2B4^-A'
'E21AB4BFB3943^-B'
'14DAE3FF94735F^-B'
'-9BCB52CFB69A7^-C'
'-CF81BF94BFD65^-D'
'7B06CC^-D'
'-1080C0571EC58^-D'
'0^0'
'E^1'
'C^1'
'C^1'
'D^1'
'D7790D12F7454^7'
'1^1'
END_ARRAY 4 73
TOTAL_ARRAYS 4
~NAIF/SPC BEGIN COMMENTS~
; /home/kberry/dev/ale/ale/tests/pytests/data/output4/lor_0034974380_0x630_sci_1_0.bsp LOG FILE
; Created 2019-09-30/11:44:13.00.
;
; BEGIN SPKMERGE COMMANDS
LEAPSECONDS_KERNEL = /usgs/cpkgs/isis3/data/base/kernels/lsk/naif0012.tls
SPK_KERNEL = /home/kberry/dev/ale/ale/tests/pytests/data/output4/lor_0034974380_0x630_sci_1_0.bsp
SOURCE_SPK_KERNEL = /usgs/cpkgs/isis3/data/newhorizons/kernels/tspk/de413.bsp
INCLUDE_COMMENTS = NO
BODIES = 5, 10
BEGIN_TIME = 2007 FEB 28 12:29:49.441
END_TIME = 2007 FEB 28 12:30:01.827
SOURCE_SPK_KERNEL = /usgs/cpkgs/isis3/data/newhorizons/kernels/tspk/jup260.bsp
INCLUDE_COMMENTS = NO
BODIES = 501
BEGIN_TIME = 2007 FEB 28 12:29:49.441
END_TIME = 2007 FEB 28 12:30:01.827
SOURCE_SPK_KERNEL = /usgs/cpkgs/isis3/data/newhorizons/kernels/spk/nh_recon_e2j_v1.bsp
INCLUDE_COMMENTS = NO
BODIES = -98
BEGIN_TIME = 2007 FEB 28 12:29:49.441
END_TIME = 2007 FEB 28 12:30:01.827
; END SPKMERGE COMMANDS
~NAIF/SPC END COMMENTS~
DAFETF NAIF DAF ENCODED TRANSFER FILE
'DAF/SPK '
'2'
'6'
'SPKMERGE '
BEGIN_ARRAY 1 39
'DE-0413LE-0413 '
'D77942774930F^7'
'D7794348430C1^7'
'A'
'0'
'1'
'2'
39
'D6D9F4^7'
'A8C^5'
'4BF19A11B9610C^5'
'-19E9E21C5194F9^4'
'-B4B99503C78^1'
'-1B012C9D211^0'
'339F227C2^-1'
'-41E6B733CE^-2'
'-7B02EA2^-3'
'290DDF91^-3'
'-370795^-4'
'-7280AB6^-5'
'26ACF1C^-5'
'918336532181E^5'
'EF3A97F3DB45F8^3'
'-F639A39C9A^1'
'-13D275692C58^0'
'-2F456FC4^-2'
'564DF97A38^-2'
'-E45A188^-3'
'41244B08^-4'
'4792F8^-4'
'-C4A7867^-5'
'2E43CE^-6'
'3B14B17FB640DC^5'
'6DB893E99BE854^3'
'-64C2021EF1^1'
'-8A2102856A8^-1'
'-63A66097^-2'
'35506CBB1D^-2'
'-6D3FA14^-3'
'-215772E^-4'
'2BF02B^-4'
'-5D2D74D8^-5'
'-277101^-6'
'D63134^7'
'1518^6'
'23^2'
'1^1'
END_ARRAY 1 39
BEGIN_ARRAY 2 30
'DE-0413LE-0413 '
'D77942774930F^7'
'D7794348430C1^7'
'5'
'0'
'1'
'2'
30
'D63134^7'
'1518^6'
'-13793B80F0E247^8'
'F826FF91D4D07^6'
'9DA91A9F018^4'
'-13D6F80638CC^3'
'-96076878^0'
'3AE6D68^-2'
'4AB8^-4'
'453^-6'
'-282E6C603A6EA4^8'
'-59460001523468^6'
'14553B7990F8^5'
'9C590D7104E^2'
'-AF683C8^0'
'-620C0B3^-2'
'-944^-5'
'-39048^-5'
'-10BFCA6B1ED407^8'
'-2C4EE62DC51A78^6'
'879B50A2D21^4'
'4ABE6B700FF^2'
'-47887D3^0'
'-2B72FFC8^-2'
'-6F8^-5'
'-1967A^-5'
'D4DFB4^7'
'2A3^6'
'1A^2'
'1^1'
END_ARRAY 2 30
BEGIN_ARRAY 3 84
'JUP260 '
'D77942774930F^7'
'D7794348430C1^7'
'1F5'
'5'
'1'
'3'
84
'D77828^7'
'A8C^4'
'1135424373AF4^5'
'-696AEBF08E8B94^5'
'-1D07CA3C81F158^5'
'113B1330D768AF^5'
'2115B294F25CE2^4'
'-B66864087E07A^3'
'-C9102E97AE7C^2'
'339694059AA8^2'
'102CBDBB076^1'
'-572075094A^0'
'E25D81F5C^-1'
'-12DE2ADD74^-1'
'-6C9A3324^-2'
'1D83CC336FC31A^5'
'33A20CCE08E622^5'
'-30ECAE2F1C80D2^5'
'-85AE9B22126918^4'
'38FC15270063E^4'
'5475B18B7F946^3'
'-18096BC69AE48^3'
'-129EB0B513258^2'
'485CBAC477C^1'
'-21071E24E28^0'
'-F63043FC^-2'
'294AEFA5E6^-1'
'-2D9DA41C^-2'
'E5BAC426B5ED9^4'
'16DD2CC96E71F4^5'
'-17CF0A5A7D7EFF^5'
'-3B268ABF1A038^4'
'1BB814B903FCD2^4'
'253BEDC258935E^3'
'-BAB4B96A7FFE^2'
'-804F02D21A4^1'
'22C4EB0D3F3^1'
'-1132E1C499A^0'
'-38BE3206^-2'
'135FE10939^-1'
'-179F2C8E^-2'
'-56C68523A3771C^1'
'-97F3E929B49D88^1'
'924B4775631D68^1'
'18354AB67B9517^1'
'-A8B4E306C44F48^0'
'-E32170294A957^-1'
'43E35A828C166C^-1'
'1A2777B52FB11D^-2'
'-9727FBFAA97B4^-3'
'19DCF589A740DA^-3'
'-275B5F1A2A7A1E^-4'
'-F721733C4D5E7^-5'
'0^0'
'2AC206C1D7E3AC^1'
'-FF57027B3EB7E^1'
'-47247D75F8AF6^1'
'298A9B44F4E16^1'
'4E85EC65F28488^0'
'-1AEB96BC787333^0'
'-18EA52F626ABF8^-1'
'6DA3090DAF809^-2'
'-32FBEE46E76B54^-3'
'-23AA5CD66054F4^-4'
'56223091CD8EF8^-4'
'-67CD1EF8091A2C^-5'
'0^0'
'12F152ED239DCC^1'
'-7C443C3B7238D8^1'
'-1F7C5189424597^1'
'14355F83430A3F^1'
'22A1AFA365722E^0'
'-D122BDFB8740D8^-1'
'-ABFE97B78B52E^-2'
'34B4F01A08F5C2^-2'
'-1AD3A169A29876^-3'
'-A15AA6A9E87C6^-5'
'2869F0B713E93E^-4'
'-35C0AE3456789A^-5'
'0^0'
'D76D9C^7'
'1518^5'
'5^2'
'1^1'
END_ARRAY 3 84
BEGIN_ARRAY 4 73
'nh_20060119_20070319_recon_e2j.nio '
'D77942774930F^7'
'D7794348430C1^7'
'-62'
'5'
'1'
'1'
73
'D77A1305F73EF8^7'
'4208901B49CE8^3'
'7635412DB0C4^3'
'9F6EB0A485928^3'
'BC62B47AF6C68^3'
'D3431CA5FB158^3'
'E5566578F618^3'
'F2084941776B^3'
'FAF2C9A155AB8^3'
'FFE569ED25838^3'
'102FC2989236F8^4'
'5D63B13B936948^4'
'60A67C4CBD6608^4'
'638C86231BAA4^4'
'65D6D370D4AF28^4'
'DC1C8B04F7E788^4'
'-23115AAF7C0A0C^6'
'-A01A2C715A46A8^1'
'993F2FB7F604F^5'
'-116827B4A017B1^2'
'30E55D8BC1584E^4'
'-69AF8EB96FE3F4^1'
'16956FA19A6F6E^-3'
'-B712293DB6C9E^-6'
'-135D09E7D24A57^-6'
'4C7A0C2EA0BAF4^-8'
'27EF9D6853518C^-9'
'-1A57CB5D75A8F3^-A'
'-46B65AE47DB6B^-C'
'930987CC281E1^-D'
'3AD4^-D'
'6ACD3ABAC12CC^-E'
'0^0'
'0^0'
'0^0'
'0^0'
'0^0'
'-62B2FE6844F97C^-4'
'39018DFEA5C6F4^-5'
'-49EE57D44F4D24^-7'
'-66B673489E6164^-8'
'2500D1F8A45A3E^-9'
'F081317EC55D5^-B'
'-DDF4477A958B88^-C'
'-1666C^-D'
'0^0'
'0^0'
'0^0'
'0^0'
'0^0'
'0^0'
'0^0'
'-1F7CAE8DD4B5E4^-5'
'11E0F1D48DD992^-5'
'-32BD8324D9032E^-7'
'-1B7922024220CE^-8'
'F9F5F1B031D8E8^-A'
'2BC0C6D198C152^-B'
'-4F5A155BEDC4A^-C'
'698E6^-E'
'-24A6E01C07C988^-E'
'0^0'
'0^0'
'0^0'
'0^0'
'0^0'
'0^0'
'A^1'
'9^1'
'7^1'
'8^1'
'D77A1305F73EF8^7'
'1^1'
END_ARRAY 4 73
TOTAL_ARRAYS 4
~NAIF/SPC BEGIN COMMENTS~
; /home/kberry/dev/ale/ale/tests/pytests/data/output4/lor_0034974380_0x630_sci_1_1.bsp LOG FILE
; Created 2019-09-30/11:44:13.00.
;
; BEGIN SPKMERGE COMMANDS
LEAPSECONDS_KERNEL = /usgs/cpkgs/isis3/data/base/kernels/lsk/naif0012.tls
SPK_KERNEL = /home/kberry/dev/ale/ale/tests/pytests/data/output4/lor_0034974380_0x630_sci_1_1.bsp
SOURCE_SPK_KERNEL = /usgs/cpkgs/isis3/data/newhorizons/kernels/tspk/de413.bsp
INCLUDE_COMMENTS = NO
BODIES = 5, 10
BEGIN_TIME = 2007 FEB 28 13:14:14.270
END_TIME = 2007 FEB 28 13:14:27.331
SOURCE_SPK_KERNEL = /usgs/cpkgs/isis3/data/newhorizons/kernels/tspk/jup260.bsp
INCLUDE_COMMENTS = NO
BODIES = 501
BEGIN_TIME = 2007 FEB 28 13:14:14.270
END_TIME = 2007 FEB 28 13:14:27.331
SOURCE_SPK_KERNEL = /usgs/cpkgs/isis3/data/newhorizons/kernels/spk/nh_recon_e2j_v1.bsp
INCLUDE_COMMENTS = NO
BODIES = -98
BEGIN_TIME = 2007 FEB 28 13:14:14.270
END_TIME = 2007 FEB 28 13:14:27.331
; END SPKMERGE COMMANDS
~NAIF/SPC END COMMENTS~
Object = IsisCube
Object = Core
StartByte = 65537
Format = Tile
TileSamples = 512
TileLines = 512
Group = Dimensions
Samples = 1024
Lines = 1024
Bands = 1
End_Group
Group = Pixels
Type = Real
ByteOrder = Lsb
Base = 0.0
Multiplier = 1.0
End_Group
End_Object
Group = Instrument
SpacecraftName = "NEW HORIZONS"
InstrumentId = LORRI
TargetName = IO
StartTime = 2007-02-28T13:14:22.331 <Cal d>
SpacecraftClockStartCount = 1/0034974379:47125
ExposureDuration = 0.075
End_Group
Group = Archive
HighSpeedCompressionMode = LOSSLESS
ObservationCompletionStatus = COMPLETE
SequenceDescription = "Jupiter shine"
End_Group
Group = BandBin
Name = None
Center = 600
Width = 500
End_Group
Group = Kernels
NaifFrameCode = -98301
LeapSecond = $base/kernels/lsk/naif0012.tls
TargetAttitudeShape = ($newhorizons/kernels/pck/pck00010.tpc,
$newhorizons/kernels/pck/nh_stars_kbo_centaur-
_v002.tpc)
TargetPosition = (Table, $newhorizons/kernels/tspk/de413.bsp,
$newhorizons/kernels/tspk/jup260.bsp)
InstrumentPointing = (Table,
$newhorizons/kernels/ck/merged_nhpc_2007_v006-
.bc, $newhorizons/kernels/fk/nh_v220.tf,
$newhorizons/kernels/fk/nh_soc_misc_v002.tf)
Instrument = $newhorizons/kernels/ik/nh_lorri_v201.ti
SpacecraftClock = $newhorizons/kernels/sclk/new_horizons_1454.t-
sc
InstrumentPosition = (Table,
$newhorizons/kernels/spk/nh_recon_e2j_v1.bsp)
InstrumentAddendum = $newhorizons/kernels/iak/nh_lorriAddendum_v00-
4.ti
ShapeModel = Null
InstrumentPositionQuality = Reconstructed
InstrumentPointingQuality = Reconstructed
CameraVersion = 2
End_Group
End_Object
Object = Label
Bytes = 65536
End_Object
Object = Table
Name = InstrumentPointing
StartByte = 4284335
Bytes = 64
Records = 1
ByteOrder = Lsb
TimeDependentFrames = (-98000, 1)
ConstantFrames = (-98301, -98300, -98000)
ConstantRotation = (-0.005452680629036, -0.99996036726125,
0.007037910250677, 0.002999533810427,
-0.0070543385533461, -0.99997061912063,
0.99998063534794, -0.0054314099747325,
0.0030378799858676)
CkTableStartTime = 225940527.51628
CkTableEndTime = 225940527.51628
CkTableOriginalSize = 1
FrameTypeCode = 3
Description = "Created by spiceinit"
Kernels = ($newhorizons/kernels/ck/merged_nhpc_2007_v006.bc,
$newhorizons/kernels/fk/nh_v220.tf,
$newhorizons/kernels/fk/nh_soc_misc_v002.tf)
Group = Field
Name = J2000Q0
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000Q1
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000Q2
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000Q3
Type = Double
Size = 1
End_Group
Group = Field
Name = AV1
Type = Double
Size = 1
End_Group
Group = Field
Name = AV2
Type = Double
Size = 1
End_Group
Group = Field
Name = AV3
Type = Double
Size = 1
End_Group
Group = Field
Name = ET
Type = Double
Size = 1
End_Group
End_Object
Object = Table
Name = InstrumentPosition
StartByte = 4284399
Bytes = 56
Records = 1
ByteOrder = Lsb
CacheType = Linear
SpkTableStartTime = 225940527.51628
SpkTableEndTime = 225940527.51628
SpkTableOriginalSize = 1.0
Description = "Created by spiceinit"
Kernels = $newhorizons/kernels/spk/nh_recon_e2j_v1.bsp
Group = Field
Name = J2000X
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000Y
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000Z
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000XV
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000YV
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000ZV
Type = Double
Size = 1
End_Group
Group = Field
Name = ET
Type = Double
Size = 1
End_Group
End_Object
Object = Table
Name = BodyRotation
StartByte = 4284455
Bytes = 64
Records = 1
ByteOrder = Lsb
TimeDependentFrames = (10023, 1)
CkTableStartTime = 225940527.51628
CkTableEndTime = 225940527.51628
CkTableOriginalSize = 1
FrameTypeCode = 2
PoleRa = (268.05, -0.009, 0.0)
PoleDec = (64.5, 0.003, 0.0)
PrimeMeridian = (200.39, 203.4889538, 0.0)
PoleRaNutPrec = (0.0, 0.0, 0.094, 0.024, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0)
PoleDecNutPrec = (0.0, 0.0, 0.04, 0.011, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0)
PmNutPrec = (0.0, 0.0, -0.085, -0.022, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
SysNutPrec0 = (73.32, 24.62, 283.9, 355.8, 119.9, 229.8, 352.25,
113.35, 146.64, 49.24, 99.360714, 175.895369,
300.323162, 114.012305, 49.511251)
SysNutPrec1 = (91472.9, 45137.2, 4850.7, 1191.3, 262.1, 64.3,
2382.6, 6070.0, 182945.8, 90274.4, 4850.4046,
1191.9605, 262.5475, 6070.2476, 64.3)
Description = "Created by spiceinit"
Kernels = ($newhorizons/kernels/tspk/de413.bsp,
$newhorizons/kernels/tspk/jup260.bsp,
$newhorizons/kernels/pck/pck00010.tpc,
$newhorizons/kernels/pck/nh_stars_kbo_centaur_v002.tp-
c)
SolarLongitude = 324.3350636269
Group = Field
Name = J2000Q0
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000Q1
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000Q2
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000Q3
Type = Double
Size = 1
End_Group
Group = Field
Name = AV1
Type = Double
Size = 1
End_Group
Group = Field
Name = AV2
Type = Double
Size = 1
End_Group
Group = Field
Name = AV3
Type = Double
Size = 1
End_Group
Group = Field
Name = ET
Type = Double
Size = 1
End_Group
End_Object
Object = Table
Name = SunPosition
StartByte = 4284519
Bytes = 56
Records = 1
ByteOrder = Lsb
CacheType = Linear
SpkTableStartTime = 225940527.51628
SpkTableEndTime = 225940527.51628
SpkTableOriginalSize = 1.0
Description = "Created by spiceinit"
Kernels = ($newhorizons/kernels/tspk/de413.bsp,
$newhorizons/kernels/tspk/jup260.bsp)
Group = Field
Name = J2000X
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000Y
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000Z
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000XV
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000YV
Type = Double
Size = 1
End_Group
Group = Field
Name = J2000ZV
Type = Double
Size = 1
End_Group
Group = Field
Name = ET
Type = Double
Size = 1
End_Group
End_Object
Object = History
Name = IsisCube
StartByte = 4284575
Bytes = 1387
End_Object
Object = OriginalLabel
Name = IsisCube
StartByte = 4260317
Bytes = 24018
End_Object
Object = NaifKeywords
BODY_CODE = 501
BODY501_RADII = (1829.4, 1819.4, 1815.7)
BODY_FRAME_CODE = 10023
INS-98301_FOCAL_LENGTH_UNITS = mm
INS-98301_FOCAL_LENGTH = 2618.4775964615
INS-98301_PIXEL_SIZE = 12.997
INS-98301_TRANSX = (0.0, 0.013, 0.0)
INS-98301_TRANSY = (0.0, 0.0, 0.013)
INS-98301_ITRANSS = (0.0, 76.923076923077, 0.0)
INS-98301_ITRANSL = (0.0, 0.0, 76.923076923077)
INS-98301_CCD_CENTER = (511.5, 511.5)
INS-98301_OOC_EM = (2.71725397251225e-05,
-1.90343925521274e-05,
-2.8806647687928e-05)
CLOCK_ET_-98_1/0034974379:47125_COMPUTED = c755085f28efaa41
End_Object
End
DAFETF NAIF DAF ENCODED TRANSFER FILE
'DAF/CK '
'2'
'6'
' < DAFCAT: CK CONCATENATION > '
BEGIN_ARRAY 1 115
'nhpc '
'1971FCF0DAD^B'
'1971FD886A9^B'
'-17ED0'
'1'
'3'
'1'
115
'A3FFE0FC5FB15^-1'
'24139A6C5621C6^0'
'F87385C83B545^0'
'-310104EC7966CE^0'
'-18FE00085108^-4'
'458E0BFEB8203^-3'
'A8BC740BFBE7^-3'
'A4103FD696378^-1'
'240ECC0CAA0288^0'
'F87412E2CAC538^0'
'-31018C487465AC^0'
'-2737E14AAC122^-4'
'4AB2A9FB957B84^-3'
'A620A7D2FDF67^-3'
'A422F9CBC01728^-1'
'240956A674A87C^0'
'F874ADFFB059B^0'
'-31023F0BE4D3C^0'
'-447080A2E2C24^-4'
'487D950BF9977C^-3'
'A4691647A53FC^-3'
'A435F20675486^-1'
'2403CC154EFBB4^0'
'F8754ECAA59788^0'
'-3102E31A3E93F^0'
'-C71352368B19^-5'
'480500FD795788^-3'
'A8FD30D531AFC^-3'
'A449978761CA4^-1'
'23FE416295538C^0'
'F875F4B2F7F2C8^0'
'-31036A63140C04^0'
'-28F86AEAC5763^-4'
'47E1C3FEFA87F8^-3'
'A9DA7B61ED9C6^-3'
'A45B7911F0FBF^-1'
'23F8ABF0921CE8^0'
'F8769A58C51198^0'
'-3104001FD54E28^0'
'-11F87785D2D6C^-4'
'465279BF3EC8CC^-3'
'ABA473D9B28E68^-3'
'A46C559A7DEBE8^-1'
'23F3371613DFDA^0'
'F877478C4169E^0'
'-31045A69DD8DF2^0'
'C0868765B15938^-4'
'42F587156AC2F^-3'
'A6A38D05F174A8^-3'
'A47CD78075FA88^-1'
'23EDBF32774CF^0'
'F8781BC3CED5D^0'
'-3103F1B35D2B2E^0'
'28DC46D4896A74^-3'
'3BF0D49E5CD378^-3'
'A83AF73527BD78^-3'
'A48B7079AB12A^-1'
'23E83CEBF6F6B8^0'
'F87904DDE09D7^0'
'-31032C7BC2E9FA^0'
'2C162E9170E474^-3'
'38B78DA82929C4^-3'
'AB46D13E728938^-3'
'A49B0DD155055^-1'
'23E2C94FF7029^0'
'F879EC161FE1C^0'
'-310261FD162FDE^0'
'2AFD95EC00BB9^-3'
'3AE2EED02E3F36^-3'
'A56894B6CBC0A8^-3'
'A4A903F6E2AE4^-1'
'23DD57013DDC2C^0'
'F87AD64460A848^0'
'-31018C6D5933BA^0'
'2C01EF502E33E8^-3'
'35FB8ECE649E1^-3'
'AB20E665D910B8^-3'
'A4B7F9EF8B13A8^-1'
'23D7E27B32381E^0'
'F87BC0CAA4A^0'
'-3100B2BB5F8C12^0'
'2886576FCBE3D^-3'
'3904D3C8779E9^-3'
'A5DD4A3DB23F1^-3'
'A4C7788F04D89^-1'
'23D251F43B5786^0'
'F87CAD648A246^0'
'-30FFE086981778^0'
'2C7E17E1CD7BC8^-3'
'3AFD291983C17E^-3'
'A3795DD70D0A5^-3'
'A4CFDF884DBB5^-1'
'23CF556D65FF1A^0'
'F87D2F7E2F6E58^0'
'-30FF5F51DB6F18^0'
'2C79F50483C92A^-3'
'3B73DB621D72C4^-3'
'A43923ECFCE89^-3'
'1971FCF0DAD^B'
'1971FCFB72^B'
'1971FD07A7^B'
'1971FD13DC^B'
'1971FD2011^B'
'1971FD2C46^B'
'1971FD387B^B'
'1971FD44B^B'
'1971FD50E5^B'
'1971FD5D1A^B'
'1971FD694F^B'
'1971FD7584^B'
'1971FD81B9^B'
'1971FD886A9^B'
'1971FCF0DAD^B'
'1^1'
'E^1'
END_ARRAY 1 115
TOTAL_ARRAYS 1
~NAIF/SPC BEGIN COMMENTS~
This CK is for testing with the image: /home/kberry/dev/ale/ale/tests/pytests/data/lor_0034974380_0x630_sci_1.cub
This CK was generated using the following command: {}
~NAIF/SPC END COMMENTS~
DAFETF NAIF DAF ENCODED TRANSFER FILE
'DAF/CK '
'2'
'6'
' < DAFCAT: CK CONCATENATION > '
BEGIN_ARRAY 1 99
'nhpc '
'19727C27DF5^B'
'19727CA24F1^B'
'-17ED0'
'1'
'3'
'1'
99
'A4B1A5CDF662D8^-1'
'-FE5AC730304658^-1'
'-FA1A16AB84B128^0'
'-333F7FE4756A4A^0'
'10224E37D54F42^-3'
'-10E97E8E5A68C1^-3'
'1A5900A2CEBDD5^-3'
'-A4B49A69C85F28^-1'
'FE4E62CB31D368^-1'
'FA1A070E05C0D8^0'
'33400018AEE4B^0'
'10ED7FB61CB9CE^-3'
'-AFEF723F94CE^-4'
'15E83B89CB48C8^-3'
'-A4B75E48C2C688^-1'
'FE415C24D09808^-1'
'FA19FB2D96DFF8^0'
'334071CBB197C2^0'
'E52A7C9916054^-4'
'-ED5619E622F81^-4'
'1886CA8265FF0D^-3'
'-A4BA7CD7DBB868^-1'
'FE3433EF31DAD^-1'
'FA19EBCA7C61F^0'
'3340F41E7AE06^0'
'BA28B0BECD4C38^-4'
'-934C4AA4825A18^-4'
'195BD54DF6B783^-3'
'-A4BE89B934E91^-1'
'FE2869ECA91178^-1'
'FA19E1E5258B28^0'
'334151DA6D8B76^0'
'FFF4A32935C9E8^-4'
'-C7B1366CC573^-4'
'18B3385C2AC41C^-3'
'-A4C18EB4A4C6D8^-1'
'FE1BE299FD7158^-1'
'FA19D00DC217A^0'
'3341DD525A85A8^0'
'EA419F94B4EE98^-4'
'-C490ADDF17509^-4'
'173BD3E8AD512^-3'
'-A4C382B10F5B98^-1'
'FE10B37B6B1C3^-1'
'FA19C315BC4E3^0'
'33424DC2EB62D8^0'
'E6D67AA0C9948^-4'
'-6A19C7944146A8^-4'
'16AFB4D36A6B35^-3'
'-A4C77F0445A868^-1'
'FE04473B85001^-1'
'FA19B5DA50FB7^0'
'3342BF13C28C6^0'
'E63A80B2DB5C1^-4'
'-C216A60F4786F^-4'
'179453C71AC963^-3'
'-A4C9D2E241361^-1'
'FDF6CE631E4F9^-1'
'FA19ABE7424D9^0'
'33432AE37A3D36^0'
'136460ADAC6492^-3'
'-E7EE7109B48528^-4'
'1A8894F05B4EBE^-3'
'-A4CDD77D99A298^-1'
'FDEA5C317ED55^-1'
'FA199CE4DA3728^0'
'3343A4DA2212A2^0'
'E14E909B5B5B3^-4'
'-EB677FEACFB79^-4'
'1834EF4F5E9B4^-3'
'-A4D048D3BE8E88^-1'
'FDDC9A9F105CF8^-1'
'FA198DE9946AB^0'
'33442A36C268E8^0'
'DECFEDE216145^-4'
'-D3C76C67F8AC1^-4'
'19306069B29E89^-3'
'A4D076DFCD3BD^-1'
'-FDDBF8E86D21E^-1'
'-FA198D066C645^0'
'-33443117AAB6EA^0'
'DE6B9044A638A^-4'
'-D0DE0062CEE94^-4'
'19172D1A283FB9^-3'
'19727C27DF5^B'
'19727C33CE^B'
'19727C4003^B'
'19727C4C38^B'
'19727C586D^B'
'19727C64A2^B'
'19727C70D7^B'
'19727C7D0C^B'
'19727C8941^B'
'19727C9576^B'
'19727CA1AB^B'
'19727CA24F1^B'
'19727C27DF5^B'
'1^1'
'C^1'
END_ARRAY 1 99
TOTAL_ARRAYS 1
~NAIF/SPC BEGIN COMMENTS~
This CK is for testing with the image: /home/kberry/dev/ale/ale/tests/pytests/data/lor_0034974380_0x630_sci_1.cub
This CK was generated using the following command: {}
~NAIF/SPC END COMMENTS~
KPL/LSK
LEAPSECONDS KERNEL FILE
===========================================================================
Modifications:
--------------
2016, Jul. 14 NJB Modified file to account for the leapsecond that
will occur on December 31, 2016.
2015, Jan. 5 NJB Modified file to account for the leapsecond that
will occur on June 30, 2015.
2012, Jan. 5 NJB Modified file to account for the leapsecond that
will occur on June 30, 2012.
2008, Jul. 7 NJB Modified file to account for the leapsecond that
will occur on December 31, 2008.
2005, Aug. 3 NJB Modified file to account for the leapsecond that
will occur on December 31, 2005.
1998, Jul 17 WLT Modified file to account for the leapsecond that
will occur on December 31, 1998.
1997, Feb 22 WLT Modified file to account for the leapsecond that
will occur on June 30, 1997.
1995, Dec 14 KSZ Corrected date of last leapsecond from 1-1-95
to 1-1-96.
1995, Oct 25 WLT Modified file to account for the leapsecond that
will occur on Dec 31, 1995.
1994, Jun 16 WLT Modified file to account for the leapsecond on
June 30, 1994.
1993, Feb. 22 CHA Modified file to account for the leapsecond on
June 30, 1993.
1992, Mar. 6 HAN Modified file to account for the leapsecond on
June 30, 1992.
1990, Oct. 8 HAN Modified file to account for the leapsecond on
Dec. 31, 1990.
Explanation:
------------
The contents of this file are used by the routine DELTET to compute the
time difference
[1] DELTA_ET = ET - UTC
the increment to be applied to UTC to give ET.
The difference between UTC and TAI,
[2] DELTA_AT = TAI - UTC
is always an integral number of seconds. The value of DELTA_AT was 10
seconds in January 1972, and increases by one each time a leap second
is declared. Combining [1] and [2] gives
[3] DELTA_ET = ET - (TAI - DELTA_AT)
= (ET - TAI) + DELTA_AT
The difference (ET - TAI) is periodic, and is given by
[4] ET - TAI = DELTA_T_A + K sin E
where DELTA_T_A and K are constant, and E is the eccentric anomaly of the
heliocentric orbit of the Earth-Moon barycenter. Equation [4], which ignores
small-period fluctuations, is accurate to about 0.000030 seconds.
The eccentric anomaly E is given by
[5] E = M + EB sin M
where M is the mean anomaly, which in turn is given by
[6] M = M + M t
0 1
where t is the number of ephemeris seconds past J2000.
Thus, in order to compute DELTA_ET, the following items are necessary.
DELTA_TA
K
EB
M0
M1
DELTA_AT after each leap second.
The numbers, and the formulation, are taken from the following sources.
1) Moyer, T.D., Transformation from Proper Time on Earth to
Coordinate Time in Solar System Barycentric Space-Time Frame
of Reference, Parts 1 and 2, Celestial Mechanics 23 (1981),
33-56 and 57-68.
2) Moyer, T.D., Effects of Conversion to the J2000 Astronomical
Reference System on Algorithms for Computing Time Differences
and Clock Rates, JPL IOM 314.5--942, 1 October 1985.
The variable names used above are consistent with those used in the
Astronomical Almanac.
\begindata
DELTET/DELTA_T_A = 32.184
DELTET/K = 1.657D-3
DELTET/EB = 1.671D-2
DELTET/M = ( 6.239996D0 1.99096871D-7 )
DELTET/DELTA_AT = ( 10, @1972-JAN-1
11, @1972-JUL-1
12, @1973-JAN-1
13, @1974-JAN-1
14, @1975-JAN-1
15, @1976-JAN-1
16, @1977-JAN-1
17, @1978-JAN-1
18, @1979-JAN-1
19, @1980-JAN-1
20, @1981-JUL-1
21, @1982-JUL-1
22, @1983-JUL-1
23, @1985-JUL-1
24, @1988-JAN-1
25, @1990-JAN-1
26, @1991-JAN-1
27, @1992-JUL-1
28, @1993-JUL-1
29, @1994-JUL-1
30, @1996-JAN-1
31, @1997-JUL-1
32, @1999-JAN-1
33, @2006-JAN-1
34, @2009-JAN-1
35, @2012-JUL-1
36, @2015-JUL-1
37, @2017-JAN-1 )
\begintext
This diff is collapsed.
\begintext
This kernel is used by the ISIS software to supply required keywords for
the ISIS camera models. This kernel is furnished to the NAIF SPICE pool as
one of the very last kernels. This allows it to overide keywords from other
kernels.
History:
2014-05-13 Stuart Sides - Original version. Some information sourced from:
"JET PROPULSION LABORATORY, INTEROFFICE MEMORANDUM 343L-11-002, 8 June 2011"
2015-05-07 Stuart Sides - Updated LORRI focal length and distortion
parameters with information from Bill Owen, as per email from Harold
Weaver dated 2015-05-06. Some formatting of comments. Added 98302 focal
length.
2015-08-27 Stuart Sides - The newest focal length and the distortion model
coefficients are in the IK as of V200, so removed them from here.
-------------------------------------------------------------------------------
The coefficients below are for transforming focal plane X,Y (mm) to/from Line,
Sample. The numbers are from the CCD pixel pitch and the axes diagrams in the
instrument kernel (nh_lorri_v100.ti).
+XL ~= -YSC, +XL increasing columns
+YL ~= -ZSC, +YL increasing rows
+ZL = borsite , -ZL ~= -XSC, i.e., +ZL is oriented out the back of the
instrumnet, going aways from an observed target.
The following TRANS values are for ISIS cubes ingested with no flipping.
First pixel in the input file is line 1 sample 1, second pixel in the input file
is line 1 sample 2.
\begindata
INS-98301_TRANSX=(0.0,0.013,0.0)
INS-98301_TRANSY=(0.0,0.0,0.013)
INS-98301_ITRANSS=(0.0,76.923076923077,0.0)
INS-98301_ITRANSL=(0.0,0.0,76.923076923077)
INS-98302_TRANSX=(0.0,0.052,0.0)
INS-98302_TRANSY=(0.0,0.0,0.052)
INS-98302_ITRANSS=(0.0,19.230769230769,0.0)
INS-98302_ITRANSL=(0.0,0.0,19.230769230769)
This diff is collapsed.
KPL/FK
\beginlabel
PDS_VERSION_ID = PDS3
RECORD_TYPE = STREAM
RECORD_BYTES = "N/A"
^SPICE_KERNEL = "nh_soc_misc_v002.tf"
MISSION_NAME = "NEW HORIZONS"
SPACECRAFT_NAME = "NEW HORIZONS"
DATA_SET_ID = "NH-J/P/SS-SPICE-6-V1.0"
KERNEL_TYPE_ID = FK
PRODUCT_ID = "nh_soc_misc_v002.tf"
PRODUCT_CREATION_TIME = 2016-04-30T00:00:00
PRODUCER_ID = "SWRI"
MISSION_PHASE_NAME = "N/A"
PRODUCT_VERSION_TYPE = ACTUAL
PLATFORM_OR_MOUNTING_NAME = "N/A"
START_TIME = "N/A"
STOP_TIME = "N/A"
SPACECRAFT_CLOCK_START_COUNT = "N/A"
SPACECRAFT_CLOCK_STOP_COUNT = "N/A"
TARGET_NAME = {
JUPITER,
PLUTO,
"SOLAR SYSTEM"
}
INSTRUMENT_NAME = "N/A"
NAIF_INSTRUMENT_ID = "N/A"
SOURCE_PRODUCT_ID = "N/A"
NOTE = "See comments in the file for details"
OBJECT = SPICE_KERNEL
INTERCHANGE_FORMAT = ASCII
KERNEL_TYPE = FRAMES
DESCRIPTION = "NH frames kernel. Provides supplemental
name-to-ID mapping for misc bodies (Asteroid APL; target KBO 2014 MU69
of proposed NH extended mission; etc.) "
END_OBJECT = SPICE_KERNEL
\endlabel
KPL/FK
New Horizons Science Operations Center-specific Target Frames Kernel
===============================================================================
This frame kernel contains the NAIF body name/code translation
for miscellaneous targets that will show up in some NH FITS file
headers due to targets added that are not in the project Frames
Kernel (nh_vXXX.tf) or other project SPICE kernels.
Version and Date
-------------------------------------------------------------------------------
The TEXT_KERNEL_ID stores version information of loaded project text
kernels. Each entry associated with the keyword is a string that comprises
four parts: kernel name; kernel version; entry date; kernel type. For
example, the NH I-kernel might have an entry as follows:
TEXT_KERNEL_ID += 'NEWHORIZONS V2.0.0 30-APRIL-2016 IK'
| | | |
| | | |
KERNEL NAME <-------+ | | |
| | V
VERSION <-------+ | KERNEL TYPE
|
V
ENTRY DATE
New Horizons Science Operations Center-specific Frames Kernel Version:
\begindata
TEXT_KERNEL_ID += 'NEWHORIZONS_SOC_FRAMES V0.0.1 21-AUG-2008 FK'
\begintext
Version 0.0.0 -- August 21, 2008 -- Brian Carcich, SWRI Consultant
-- Initial version: Provide NAIF body name/code translation
for asteroid 2002 JF56, aka (132524) APL
Version 0.0.1 -- August 21, 2008 -- Brian Carcich, SWRI Consultant
-- Initial version: Moved name 2002_JF56 last so it is
preferred output of BODC2N().
Version 0.0.2 -- April, 30 2016 - Brian Carcich, SWRI Consultant
-- Added 2014 MU69/3713011 name/ID mapping
-- Fixed email
References
-------------------------------------------------------------------------------
1. ``SPICE NAIF_IDS Required Reading''
2. ``SPICE PCK Required Reading''
3. ``SPICE Kernel Pool Required Reading''
4. ``SPICE FRAMES Required Reading''
5. ``SPK Required Reading''
6. ``BRIEF User's Guide''
7. Minor Planet Center - Minor Planet Names:
http://cfa-www.harvard.edu/iau/lists/MPNames.html
- dated 2008-Jul-17
8. http://en.wikipedia.org/wiki/132524_APL
- as of 2008-Jul-21
Contact Information
-------------------------------------------------------------------------------
Brian Carcich, SWRI Consultant, BrianTCarcich<AT>gmail.com
- replace <AT> with ASCII 64 character
Implementation Notes
-------------------------------------------------------------------------------
This file is used by the SPICE system as follows: programs that make use of
this instrument kernel must ``load'' the kernel, normally during program
initialization. Loading the kernel associates data items with their names
in a data structure called the ``kernel pool''. The SPICELIB routine FURNSH,
CSPICE routine furnsh_c, and IDL routine cspice_furnsh load SPICE kernels
as shown below:
FORTRAN (SPICELIB)
CALL FURNSH ( 'kernel_name' )
C (CSPICE)
furnsh_c ( "kernel_name" )
ICY (IDL)
cspice_furnsh, 'kernel_name'
In order for a program or subroutine to extract data from the pool, the
SPICELIB routines GDPOOL, GCPOOL, and GIPOOL are used. See [3] for details.
This file was created and may be updated with a text editor or word
processor.
NAIF Body Code for asteroid APL (formerly 2002 JF56)
-------------------------------------------------------------------------------
This file provides the SPICE toolkit with the NAIF Body Code for asteroid
2002 JF56 with various forms of its name. See [1] for more details.
The NAIF Body Code of 3127862 is included in the SP-Kernel provided
by the New Horizons project to the Science Operation Center (SOC).
in SP-Kernel originally named 'sb-2002jf56-2.bsp'
The output of the NAIF diagnostic program BRIEF on that SP-Kernel was
used to determine the NAIF Body Code of the asteroid; that output is
included here:
Brief. Version: 2.2.0 (SPICE Toolkit N0058)
Summary for: /home/soc/spice/kernels/recon/spk/sb-2002jf56-2.bsp
Body: 3127862
Start of Interval (ET) End of Interval (ET)
-------------------------------- --------------------------------
2006 JAN 19 00:00:00.000 2006 OCT 02 00:00:00.000
See [5] and [6] for details.
Since no pole solution exists for 2002 JF56, no frame information will be
provided (e.g. BODY3127862_POLE_RA, &c; see [2] and [4] for details).
Note that, according to the NAIF_IDS Required Reading [1], the ID of this
asteroid in the JPL Asteroid and Comet Catalog is probably 1127862, while
this asteroid also has an ID of 132524 assigned by the Minor Planet Center
published in various places (e.g. see [7] and [8]).
Several names will be provided, with and without spaces, all referring
to the same object.
\begindata
NAIF_BODY_NAME += ( 'APL'
, '132524_APL'
, '(132524) APL'
, '(132524) 2002 JF56'
, '2002 JF56'
, '2002_JF56'
, '132524 APL'
)
NAIF_BODY_CODE += ( 2132524
, 2132524
, 2132524
, 2132524
, 2132524
, 2132524
, 2132524
)
NAIF_BODY_NAME += ( '2014 MU69'
, '2014_MU69'
)
NAIF_BODY_CODE += ( 3713011
, 3713011
)
\begintext
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import pytest
import ale
import os
import json
import pvl
import numpy as np
from ale.drivers import co_drivers
from ale.formatters.isis_formatter import to_isis
from ale.base.data_isis import IsisSpice
import unittest
from unittest.mock import patch
from conftest import get_image_label, get_image_kernels, convert_kernels, compare_dicts
from ale.drivers.nh_drivers import NewHorizonsLorriIsisLabelNaifSpiceDriver
from conftest import get_image_kernels, convert_kernels, get_image_label
@pytest.fixture()
def isis_compare_dict():
return {
"CameraVersion": 2,
"NaifKeywords": {
"BODY501_RADII": [1829.4, 1819.4, 1815.7],
"BODY_FRAME_CODE": 10023,
"BODY_CODE": 501,
"INS-98301_SIP_B_1_1": 3.7063022991452e-07,
"INS-98301_SIP_B_1_2": 3.6773991492864e-13,
"INS-98301_SIP_A_2_0": 3.7132883452972e-07,
"INS-98301_SIP_A_2_1": 3.6773993329229e-13,
"INS-98301_FOCAL_LENGTH_UNITS": "mm",
"INS-98301_OOC_KMAT":
[76.94085558205741,
0.0,
0.0,
76.94085558205741],
"INS-98301_SIP_BP_0_2": -2.4738992578302e-07,
"INS-98301_SIP_BP_0_3": 4.5900372459772e-09,
"INS-98301_SIP_B_2_0": -2.5764535470748e-10,
"INS-98301_SIP_B_2_1": -4.550504716094301e-09,
"INS-98301_BORESIGHT": [0.0, 0.0, -1.0],
"INS-98301_SIP_A_3_0": -4.5683524653106e-09,
"INS-98301_SIP_BP_1_1": -3.7439988768003e-07,
"INS-98301_REFERENCE_VECTOR": [1.0, 0.0, 0.0],
"INS-98301_SIP_B_ORDER": 3.0,
"INS-98301_OOC_EM_SIGMA": [1.6e-07, 8.3e-07, 8e-07],
"INS-98301_SIP_B_3_0": -4.8263374371619e-16,
"INS-98301_APERTURE_DIAM_UNITS": "mm",
"FRAME_-98301_NAME": "NH_LORRI_1X1",
"INS-98301_SIP_BP_2_1": 4.5900372459772e-09,
"INS-98301_SIP_AP_ORDER": 3.0,
"INS-98301_FOV_REF_ANGLE": 0.14560853,
"INS-98301_APERTURE_DIAMETER": 208.0,
"INS-98301_FOV_SHAPE": "RECTANGLE",
"TKFRAME_-98301_SPEC": "MATRIX",
"FRAME_-98301_CLASS_ID": -98301.0,
"INS-98301_OOC_FOCAL_LENGTH_SIGMA": 0.02,
"INS-98301_ITRANSL": [
0.0,
0.0,
76.923076923077
],
"INS-98301_ITRANSS": [
0.0,
76.923076923077,
0.0
],
"INS-98301_SIP_AP_1_1": -2.4738992578302e-07,
"INS-98301_SIP_AP_1_2": 4.5900372459772e-09,
"INS-98301_FOV_CLASS_SPEC": "ANGLES",
"INS-98301_PIXEL_LINES": 1024.0,
"INS-98301_SIP_AP_2_0": -3.7439988768003e-07,
"INS-98301_SIP_A_ORDER": 3.0,
"FRAME_-98301_CENTER": -98.0,
"INS-98301_FOV_REF_VECTOR": [
1.0,
0.0,
0.0
],
"TKFRAME_-98301_RELATIVE": "NH_LORRI",
"INS-98301_SIP_BP_ORDER": 3.0,
"INS-98301_FOV_FRAME": "NH_LORRI_1X1",
"INS-98301_FOV_ANGLE_UNITS": "DEGREES",
"INS-98301_SIP_AP_3_0": 4.5900372459772e-09,
"INS-98301_PLATFORM_ID": -98000.0,
"TKFRAME_-98301_MATRIX": [
1.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
1.0
],
"FRAME_-98301_CLASS": 4.0,
"INS-98301_PIXEL_SIZE": 12.997,
"INS-98301_FOCAL_LENGTH": 2618.4775964615383,
"INS-98301_F/NUMBER": 12.59,
"INS-98301_OOC_FOCAL_LENGTH": 2618.4775964615383,
"INS-98301_TRANSX": [
0.0,
0.013,
0.0
],
"INS-98301_TRANSY": [
0.0,
0.0,
0.013
],
"INS-98301_PIXEL_SAMPLES": 1024.0,
"INS-98301_FOV_CROSS_ANGLE": 0.14560853,
"INS-98301_SIP_A_0_2": -3.8995992016686996e-10,
"INS-98301_SIP_A_0_3": -4.826382722745001e-16,
"INS-98301_OOC_CCD_CENTER": [511.5, 511.5],
"INS-98301_IFOV": 4.963571,
"INS-98301_CCD_CENTER": [511.5, 511.5],
"INS-98301_SIP_B_0_2": 2.4536068067188e-07,
"INS-98301_SIP_B_0_3": -4.5685088916275e-09,
"INS-98301_SIP_A_1_1": 2.4489911491959e-07,
"INS-98301_SIP_A_1_2": -4.550660817442101e-09,
"INS-98301_OOC_EM": [
2.7172539725122488e-05,
-1.9034392552127412e-05,
-2.8806647687927977e-05
],
"BODY501_NUT_PREC_RA": [
0.0,
0.0,
0.094,
0.024
],
"BODY501_LONG_AXIS": 0.0,
"BODY501_POLE_DEC": [64.5, 0.003, 0.0],
"BODY501_PM": [200.39, 203.4889538, 0.0],
"BODY501_NUT_PREC_PM": [0.0, 0.0, -0.085, -0.022],
"BODY501_NUT_PREC_DEC": [
0.0,
0.0,
0.04,
0.011
],
"BODY501_POLE_RA": [268.05, -0.009, 0.0]
},
"InstrumentPointing": {
"TimeDependentFrames": [-98000, 1],
"CkTableStartTime": 225940527.51631695,
"CkTableEndTime": 225940527.51631695,
"CkTableOriginalSize": 1,
"EphemerisTimes": [225940527.51631695],
"Quaternions": [
[-0.040223695171375,
0.062038072129285,
0.97695635330468,
0.20022391388359]
],
"AngularVelocity": [
[1.39581813997533e-05,
-1.15948738928358e-05,
2.21456402487273e-05]
],
"ConstantFrames": [-98301, -98300, -98000],
"ConstantRotation":
[-0.005452680629036,
-0.99996036726125,
0.007037910250677,
0.002999533810427,
-0.0070543385533461,
-0.99997061912063,
0.99998063534794,
-0.0054314099747325,
0.0030378799858676]
},
"BodyRotation": {
"TimeDependentFrames": [10023, 1],
"CkTableStartTime": 225940527.51631695,
"CkTableEndTime": 225940527.51631695,
"CkTableOriginalSize": 1,
"EphemerisTimes": [225940527.51631695],
"Quaternions": [
[-0.57817095054415,
0.13699803004374,
0.1729987472005,
-0.78550704973162]
],
"AngularVelocity": [
[-6.24011073378906e-07,
-1.76837707421929e-05,
3.7102455825449e-05]
]
},
"InstrumentPosition": {
"SpkTableStartTime": 225940527.51631695,
"SpkTableEndTime": 225940527.51631695,
"SpkTableOriginalSize": 1,
"EphemerisTimes": [225940527.51631695],
"Positions": [
[-2390849.002579,321807.33761069,-141054.73789822]
],
"Velocities": [
[6.3943726561674,-22.16679208555,-8.6097977343012]
]
},
"SunPosition": {
"SpkTableStartTime": 225940527.51631695,
"SpkTableEndTime": 225940527.51631695,
"SpkTableOriginalSize": 1,
"EphemerisTimes": [225940527.51631695],
"Positions": [
[311036228.79889,679984041.50957,283865335.82619
]
],
"Velocities": [
[
4.7547216698047,-0.80026582585286,-0.11480667580455
]
]
}
}
@pytest.fixture()
def test_kernels(scope="module"):
kernels = get_image_kernels("lor_0034974380_0x630_sci_1")
updated_kernels, binary_kernels = convert_kernels(kernels)
yield updated_kernels
for kern in binary_kernels:
os.remove(kern)
def test_newhorizons_load(test_kernels, isis_compare_dict):
label_file = get_image_label("lor_0034974380_0x630_sci_1", "isis")
isis_isd = ale.load(label_file, props={'kernels': test_kernels}, formatter="isis")
assert compare_dicts(isis_isd, isis_compare_dict) == []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment