Skip to content
Snippets Groups Projects
Commit 06b32d4c authored by Kelvin Rodriguez's avatar Kelvin Rodriguez Committed by Jesse Mapel
Browse files

added missing HRSC properties (#425)

* added missing HRSC properties

* moved properties for instrument id to the top
parent 372a6d53
No related branches found
No related tags found
No related merge requests found
...@@ -481,6 +481,7 @@ class MexHrscPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, RadialDistor ...@@ -481,6 +481,7 @@ class MexHrscPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, RadialDistor
""" """
return 1 return 1
class MexHrscIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, RadialDistortion, Driver): class MexHrscIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, RadialDistortion, Driver):
@property @property
...@@ -511,6 +512,36 @@ class MexHrscIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, RadialD ...@@ -511,6 +512,36 @@ class MexHrscIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, RadialD
""" """
return self.instrument_id return self.instrument_id
@property
def detector_center_line(self):
"""
Returns the center detector line.
For HRSC, we are dealing with a single line, so center line will be 0.
Returns
-------
: float
Detector line of the principal point
"""
return 0.0
@property
def detector_center_sample(self):
"""
Returns the center detector sample.
For HRSC, center sample is consistent regardless of filter. This is
different from ISIS's center sample because ISIS line scan sensors use
0.5 based detector samples.
Returns
-------
: float
Detector sample of the principal point
"""
return 2592.0
@property @property
def sensor_model_version(self): def sensor_model_version(self):
...@@ -600,6 +631,30 @@ class MexHrscIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, RadialD ...@@ -600,6 +631,30 @@ class MexHrscIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, RadialD
""" """
return spice.bods2c(self.instrument_id) return spice.bods2c(self.instrument_id)
@property
def focal2pixel_lines(self):
"""
NOTE: These values are pulled from ISIS iak kernels.
Returns
-------
: list<double>
focal plane to detector lines
"""
return [0.0, 0.0, 111.111111111111]
@property
def focal2pixel_samples(self):
"""
NOTE: These values are pulled from ISIS iak kernels.
Returns
-------
: list<double>
focal plane to detector samples
"""
return [0.0, 111.111111111111, 0.0]
class MexSrcPds3NaifSpiceDriver(Framer, Pds3Label, NaifSpice, RadialDistortion, Driver): class MexSrcPds3NaifSpiceDriver(Framer, Pds3Label, NaifSpice, RadialDistortion, Driver):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment