Unverified Commit 2d972193 authored by Jesse Mapel's avatar Jesse Mapel Committed by GitHub
Browse files

Fixed cam2map ignoring band specifications on the input cube (#3798)

* Added input atts to cam2map

* Fixed cam2map ui call

* Trying to get vbands working again

* Revert gtest

* Changed to use GetInputAttribute
parent f005a9b6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
#include "cam2map.h"

#include "Camera.h"
#include "CubeAttribute.h"
#include "IException.h"
#include "IString.h"
#include "ProjectionFactory.h"
@@ -20,7 +21,12 @@ namespace Isis {

  void cam2map(UserInterface &ui, Pvl *log) {
    // Open the input cube
    Cube icube(ui.GetFileName("FROM"));
    Cube icube;
    CubeAttributeInput inAtt = ui.GetInputAttribute("FROM");
    if (inAtt.bands().size() != 0) {
      icube.setVirtualBands(inAtt.bands());
    }
    icube.open(ui.GetFileName("FROM"));

    // Get the map projection file provided by the user
    Pvl userMap;