Commit 14340054 authored by Kristin Berry's avatar Kristin Berry
Browse files

Updated cubeit to handle bands specifications as input attributes correctly. Fixed #2093

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@5841 41f8697f-d340-4b68-9986-7bafba869bb8
parent 71922157
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ void IsisMain() {
      vector<QString> bands = inatt.bands();
      cube.setVirtualBands(bands);
      cube.open(cubeList[i].toString());

      if(i == 0) {
        nsamps = cube.sampleCount();
        nlines = cube.lineCount();
@@ -103,7 +104,6 @@ void IsisMain() {
  }
  p2.SetInputCube(cubeList[index].toString(), inatt);


  // Create the output cube
  Cube *ocube = p2.SetOutputCube("TO", nsamps, nlines, nbands);
  p2.ClearInputCubes();
@@ -127,7 +127,7 @@ void IsisMain() {
    prog->SetText("Adding band " + toString((int)i + 1) +
                  " of " + toString(nbands));
    m.SetOutputCube("TO");
    CubeAttributeInput attrib(cubeList[i].toString());
    CubeAttributeInput attrib(cubeList[i].original()); 
    Cube *icube = m.SetInputCube(cubeList[i].toString(), attrib);
    m.SetImageOverlay(ProcessMosaic::PlaceImagesOnTop);
    m.StartProcess(1, 1, sband);
+3 −0
Original line number Diff line number Diff line
@@ -52,6 +52,9 @@
      Fixed handling of band specifications in the list file. The band bin group is still incorrect,
      but the correct bands are now placed in the output cube. Fixes #964.
    </change>
     <change name="Kristin Berry" date="2014-05-20">
       Fixed handing of input attributes so that the specified input band(s) are included in the output cube. 
     </change>
  </history>

  <groups>