Skip to content

Commit

Permalink
Fixed gllssi2isis to support V1.1 data (DOI-USGS#5570)
Browse files Browse the repository at this point in the history
  • Loading branch information
amystamile-usgs authored Jul 31, 2024
1 parent cbdd9a5 commit 778e471
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ release.
- Fixed CSMSerialNumber.trn typo [#5485](https://github.com/DOI-USGS/ISIS3/issues/5485)
- Fixed CSMSerialNumber.trn to be PVL compliant [#5484](https://github.com/DOI-USGS/ISIS3/issues/5484)
- Fixed hrsc2isis to support level 3 hrsc images [#5497](https://github.com/DOI-USGS/ISIS3/issues/5497)
- Fixed gllssi2isis to support V1.1 data [#5396](https://github.com/DOI-USGS/ISIS3/issues/5396)

### Added
- Added versioned default values to lrowacphomap's PHOALGO and PHOPARCUBE parameters and updated lrowacphomap to handle them properly. [#5452](https://github.com/DOI-USGS/ISIS3/pull/5452)
Expand Down
21 changes: 8 additions & 13 deletions isis/src/galileo/apps/gllssi2isis/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,15 @@ void IsisMain() {
throw IException(IException::Io, msg, _FILEINFO_);
}

// data set id value must contain "SSI-2-REDR-V1.0"(valid SSI image)
// or "SSI-4-REDR-V1.0"(reconstructed from garbled SSI image)
// data set id value must contain "SSI-2-REDR-V1.0" or "SSI-2-REDR-V1.1" (valid SSI image)
// or "SSI-4-REDR-V1.0" or "SSI-4-REDR-V1.1"(reconstructed from garbled SSI image)
QString dataSetId;
dataSetId = (QString)lab["DATA_SET_ID"];
try {
if(!dataSetId.contains("SSI-2-REDR-V1.0")
&& !dataSetId.contains("SSI-4-REDR-V1.0") ) {
QString msg = "Invalid DATA_SET_ID [" + dataSetId + "]";
throw IException(IException::Unknown, msg, _FILEINFO_);
}
}
catch(IException &e) {
QString msg = "Unable to read [DATA_SET_ID] from input file [" +
inFile.expanded() + "]";

if(!dataSetId.contains("SSI-2-REDR-V1.0") && !dataSetId.contains("SSI-2-REDR-V1.1")
&& !dataSetId.contains("SSI-4-REDR-V1.0") && !dataSetId.contains("SSI-4-REDR-V1.1") ) {
QString msg = "Invalid DATA_SET_ID [" + dataSetId + "]" +
" from input file [" + inFile.expanded() + "]";
throw IException(IException::Unknown, msg, _FILEINFO_);
}

Expand All @@ -79,7 +74,7 @@ void IsisMain() {
// reconstructed images are 800x800 (i.e. not summed)
// even though they have frame duration of 2.333
// (which ordinarily indicates a summed image)
if(dataSetId.contains("SSI-4-REDR-V1.0")) {
if(dataSetId.contains("SSI-4-REDR-V1.0") || dataSetId.contains("SSI-4-REDR-V1.1")) {
summed = false;
}
else if (frameDuration > 2.0 && frameDuration < 3.0) {
Expand Down

0 comments on commit 778e471

Please sign in to comment.