Skip to content

Commit

Permalink
hicubenorm fix (#4066)
Browse files Browse the repository at this point in the history
* hicubenorm fix

* typo

* uuuuuugh, this is what happens when you try to pump out things fast
  • Loading branch information
Kelvin Rodriguez authored Oct 14, 2020
1 parent a70c03d commit 674c94b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions isis/src/mro/apps/hicubenorm/hicubenorm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 674c94b

Please sign in to comment.