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
Loading
Loading
Loading
Loading
+171 −116
Original line number Diff line number Diff line
@@ -481,6 +481,7 @@ class MexHrscPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, RadialDistor
        """
        return 1


class MexHrscIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, RadialDistortion, Driver):
  
  @property
@@ -511,6 +512,36 @@ class MexHrscIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, RadialD
      """
      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
  def sensor_model_version(self):
@@ -600,6 +631,30 @@ class MexHrscIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, RadialD
      """
      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):
    """