Commit 013a3978 authored by Kaitlyn Lee's avatar Kaitlyn Lee Committed by Jesse Mapel
Browse files

Overrode sampling factor to match lro camera model.

parent 14750a4c
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -211,3 +211,17 @@ class LroLrocPds3LabelNaifSpiceDriver(NaifSpice, Pds3Label, LineScanner, Driver)
           Returns the additionl preroll.
         """
        return 1024.0

    @property
    def sampling_factor(self):
        """
        Returns the summing factor from the PDS3 label that is defined by the CROSSTRACK_SUMMING. 
        For example a return value of 2 indicates that 2 lines and 2 samples (4 pixels) 
        were summed and divided by 4 to produce the output pixel value.

        Returns
        -------
        : int
          Number of samples and lines combined from the original data to produce a single pixel in this image
        """
        return self.crosstrack_summing