Commit 1a77f608 authored by Jesse Mapel's avatar Jesse Mapel
Browse files

Modified sumspice to continue if an end time is not available for an image. A...

Modified sumspice to continue if an end time is not available for an image.  A new end time will be computed based on the start time and exposure duration.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@7528 41f8697f-d340-4b68-9986-7bafba869bb8
parent f2fa7876
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ namespace Isis {
 * @param stopTime     Stop time of observation
 * @param exposureTime Exposure time of observation
 * 
 * @return bool True if successful, false if failed
 * @return @b bool True if successful, false if failed
 */
  bool SumFinder::calculateTimes(Cube &cube, 
                                 iTime &startTime, 
@@ -328,8 +328,13 @@ namespace Isis {
    if ( instGrp.hasKeyword("SpacecraftClockStopCount") ) {
      PvlKeyword stopSClock = instGrp["SpacecraftClockStopCount"];
      QString originalClock = stopSClock[0];
      try {
        stopTime = cube.camera()->getClockTime(originalClock) - stopDelay;
      }
      catch(IException &e) {
        // The stop time is not required. So, if we cannot access it, move on.
      }
    }

#if defined(DEBUG)
    cout << "File: " << cube.fileName() << "\n";
+2 −0
Original line number Diff line number Diff line
@@ -49,6 +49,8 @@ namespace Isis {
   * 
   * @internal 
   *   @history 2016-09-14 Kris Becker - Original Version
   *   @history 2017-02-09 Jesse Mapel - Updated to ignore invalid
   *                           SpacecraftClockStopCount values.
   */
  class SumFinder {
    public: