Skip to content

Commit

Permalink
addresses DOI-USGS#3978
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiroux committed Sep 3, 2020
1 parent cdd478a commit 144ff69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions isis/src/mro/apps/hideal2pds/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ void IsisMain() {

updatePdsLabelTimeParametersGroup(pdsLabel);
updatePdsLabelImageObject(isisCubeLab, pdsLabel);
if (nbits != 8 && nbits != 16) {
PvlObject &image = pdsLabel.findObject("IMAGE");
image.addKeyword(PvlKeyword("SAMPLE_BIT_MASK",
toString((int)pow(2.0, (double)nbits) - 1)), Pvl::Replace);
}

Camera *cam = inputCube->camera();
updatePdsLabelRootObject(isisCubeLab, pdsLabel, ui, cam);

Expand Down

0 comments on commit 144ff69

Please sign in to comment.