Commit 1fc5d0ab authored by Summer Stapleton's avatar Summer Stapleton
Browse files

Removed Z from end of StartTime on reingested cubes.

parent 9484abae
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -216,7 +216,13 @@ void translateLabels(FileName &inputLabel, Cube *outputCube, QString instTransFi
  subXlater.Auto(*(outputLabel));

  // Create YearDoy keyword in Archive group
  iTime stime(outputLabel->findGroup("Instrument", Pvl::Traverse)["StartTime"][0]);
  PvlKeyword *startTime = &outputLabel->findGroup("Instrument", Pvl::Traverse)["StartTime"];
  QString startTimeString = startTime[0];
  if (QString::compare(startTimeString.at(startTimeString.size() - 1), "Z", Qt::CaseInsensitive) == 0){
    startTimeString = startTimeString.left(startTimeString.length() - 1);
    startTime->setValue(startTimeString);
  }
  iTime stime(startTimeString);
  
  PvlGroup &archive = outputLabel->findGroup("Archive", Pvl::Traverse);
                                                  
+4 −0
Original line number Diff line number Diff line
@@ -115,6 +115,10 @@
    <change name="Kristin Berry and Makayla Shepherd" date="2018-05-15">
     Updated to ingest Mapping groups from images have been exported using tgocassisrdrgen. Fixes #5418.
    </change>
    <change name="Summer Stapleton" date="2018-05-22">
      Stripped the "Z" from the StartTime value in the "Instrument" group to handle re-ingestion 
      of PDS4 compliant .xml files.
    </change>
  </history>

  <category>