Commit db18834d authored by Kristin's avatar Kristin Committed by Summer Stapleton
Browse files

Virtis level 2 ingestion fix (#3347)

* Update date and other metadata

* Fix level 2 virtis ingestion

* Fix accidental merge with 3.7?
parent b618a255
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) {