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

Updated Kaguya driver for LISM distortion

parent 1bf81075
No related branches found
No related tags found
No related merge requests found
...@@ -298,6 +298,34 @@ class KaguyaTcPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, Driver): ...@@ -298,6 +298,34 @@ class KaguyaTcPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, Driver):
""" """
return spice.gdpool('INS{}_DISTORTION_COEF_Y'.format(self.ikid), 0, 4).tolist() return spice.gdpool('INS{}_DISTORTION_COEF_Y'.format(self.ikid), 0, 4).tolist()
@property
def boresight_x(self):
"""
Returns the x focal plane coordinate of the boresight.
Expects ikid to be defined. This should be the NAIF integer ID for the
sensor.
Returns
-------
: float
Boresight focal plane x coordinate
"""
return spice.gdpool('INS{}_BORESIGHT'.format(self.ikid), 0, 1)[0]
@property
def boresight_y(self):
"""
Returns the y focal plane coordinate of the boresight.
Expects ikid to be defined. This should be the NAIF integer ID for the
sensor.
Returns
-------
: float
Boresight focal plane x coordinate
"""
return spice.gdpool('INS{}_BORESIGHT'.format(self.ikid), 1, 1)[0]
@property @property
def line_exposure_duration(self): def line_exposure_duration(self):
""" """
...@@ -368,9 +396,11 @@ class KaguyaTcPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, Driver): ...@@ -368,9 +396,11 @@ class KaguyaTcPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, Driver):
""" """
return { return {
"kaguyatc": { "kaguyalism": {
"x" : self._odkx, "x" : self._odkx,
"y" : self._odky "y" : self._odky,
"boresight_x" : self.boresight_x,
"boresight_y" : self.boresight_y
} }
} }
......
...@@ -138,9 +138,11 @@ def test_load(test_kernels): ...@@ -138,9 +138,11 @@ def test_load(test_kernels):
'focal2pixel_lines': [0, -142.85714285714286, 0], 'focal2pixel_lines': [0, -142.85714285714286, 0],
'focal2pixel_samples': [0, 0, -142.85714285714286], 'focal2pixel_samples': [0, 0, -142.85714285714286],
'optical_distortion': { 'optical_distortion': {
'kaguyatc': { 'kaguyalism': {
'x': [-0.0009649900000000001, 0.00098441, 8.5773e-06, -3.7438e-06], 'x': [-0.0009649900000000001, 0.00098441, 8.5773e-06, -3.7438e-06],
'y': [-0.0013796, 1.3502e-05, 2.7251e-06, -6.193800000000001e-06]}}, 'y': [-0.0013796, 1.3502e-05, 2.7251e-06, -6.193800000000001e-06],
'boresight_x' : -0.0725,
'boresight_y' : 0.0214}},
'image_lines': 400, 'image_lines': 400,
'image_samples': 3208, 'image_samples': 3208,
'name_platform': 'SELENE-M', 'name_platform': 'SELENE-M',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment