Commit cf0a6116 authored by Kaitlyn Lee's avatar Kaitlyn Lee
Browse files

Quick fixes.

parent 8d272a71
Loading
Loading
Loading
Loading
+16 −13
Original line number Diff line number Diff line
@@ -575,21 +575,24 @@ namespace Isis {
          FileName trackingCubeFileName(trackingGroup.findKeyword("FileName")[0]);
          Cube trackingCube(trackingCubeFileName);

          // Read the cube DN value from TRACKING cube at location (piLine, piSample) 
          // // Read the cube DN value from TRACKING cube at location (piLine, piSample)
          Portal trackingPortal(trackingCube.sampleCount(), 1, trackingCube.pixelType());
          trackingPortal.SetPosition(piSample, piLine, 1);
          trackingCube.read(trackingPortal);
          // FIXME: will need to be changed for whatever base + index DN value we end up using. 
          int trackingTableIndex = (unsigned int)trackingPortal[0]; 
          // // FIXME: will need to be changed for whatever base + index DN value we end up using.
          // int trackingTableIndex = (unsigned int)trackingPortal[0] - VALID_MINUI4;

          // Get the input file name and serial number
          Table trackingTable(m_tableMosaicSrc);
          trackingCube.read(trackingTable);
          int numRecs = trackingTable.Records();
          if(trackingTableIndex >= 0 && trackingTableIndex < numRecs) {
            psSrcFileName = QString(trackingTable[trackingTableIndex][0]);
            psSrcSerialNum = QString(trackingTable[trackingTableIndex][1]);
          }
          Table table(m_tableMosaicSrc);
          trackingCube.read(table);
          TrackingTable trackingTable(table);
          psSrcFileName = trackingTable.pixelToFileName(trackingPortal[0])

          // int numRecs = trackingTable.Records();
          // if(trackingTableIndex >= 0 && trackingTableIndex < numRecs) {
          //   psSrcFileName = QString(trackingTable[trackingTableIndex][0]);
          //   psSrcSerialNum = QString(trackingTable[trackingTableIndex][1]);
          // }
        }
        // Backwards compatability. Have this tool work with attached TRACKING bands
        else if(cCube->hasTable(m_tableMosaicSrc)) {