Commit 61602a04 authored by Kristin's avatar Kristin
Browse files

Fix level 2 data ingestion problem

parent 8839fe67
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -61,7 +61,15 @@ void IsisMain ()

  p.SetPdsFile(pdsLabel, inFile.expanded());
  p.SetOrganization(Isis::ProcessImport::BIP);

  // Processing level 2 = uncalibrated
  // Processing level 3 = calibrated
  int procLevel = (int) pdsLabel.findKeyword("PROCESSING_LEVEL_ID");

  // only save data suffix if proclevel = 3
  if (procLevel == 3) {
    p.SaveDataSuffix(); 
  }

  // NULL pixels are set to 65535 in the input QUB
  p.SetNull(65535, 65535);
@@ -93,10 +101,6 @@ void IsisMain ()
    throw IException(IException::Unknown, msg, _FILEINFO_);
  }

  // Processing level 2 = uncalibrated
  // Processing level 3 = calibrated
  int procLevel = (int) pdsLabel.findKeyword("PROCESSING_LEVEL_ID");

  // Override default DataTrailerBytes constructed from PDS header
  // Will this number ever change? Where did this # come from?
  if (procLevel == 2) {