Unverified Commit 674c94bb authored by Kelvin Rodriguez's avatar Kelvin Rodriguez Committed by GitHub
Browse files

hicubenorm fix (#4066)

* hicubenorm fix

* typo

* uuuuuugh, this is what happens when you try to pump out things fast
parent a70c03df
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -82,8 +82,6 @@ namespace Isis {
        totalSamples = icube->sampleCount();
        totalLines   = icube->lineCount();
        totalBands   = icube->bandCount();
        Isis::CubeAttributeOutput &atts = ui.GetOutputAttribute("TO");
        FileName outFileName = ui.GetFileName("TO");

        channel = icube->group("Instrument")["ChannelNumber"];
        
@@ -162,6 +160,10 @@ namespace Isis {
                }
            }
            }
            
            Isis::CubeAttributeOutput atts = ui.GetOutputAttribute("TO");
            FileName outFileName = ui.GetFileName("TO");
        
            // Setup the output file and apply the coefficients by either
            // subtracting or multipling them
            p.SetOutputCube(outFileName.expanded(), atts, totalSamples, totalLines, totalBands);