Commit 185f97fb authored by Kristin Berry's avatar Kristin Berry
Browse files

Added support for reingesting Mapping groups

parent fe241ac7
Loading
Loading
Loading
Loading
+22 −12
Original line number Diff line number Diff line
@@ -52,6 +52,9 @@ void IsisMain() {
    } 
    catch (IException &e) {
      translateLabels(xmlFileName, outputCube, transExportFile);
      
      // Try to translate a mapping group
      try {
        PvlGroup &dataDir = Preference::Preferences().findGroup("DataDirectory"); 
        QString missionDir = (QString) dataDir["Tgo"];
        FileName mapTransFile(missionDir + "/translations/tgoCassisMapping.trn");
@@ -64,6 +67,13 @@ void IsisMain() {
        Pvl *outputLabel = outputCube->label();
        labelXlater.Auto(*(outputLabel));
      } 
      catch (IException &e) {
        Pvl *outputLabel = outputCube->label();
        if(outputLabel->hasGroup("Mapping")) {
          outputLabel->deleteGroup("Mapping"); 
        }
      }
    }

    FileName outputCubeFileName(ui.GetFileName("TO"));

+3 −0
Original line number Diff line number Diff line
@@ -112,6 +112,9 @@
    <change name="Kristin Berry and Makayla Shepherd" date="2018-05-15">
     Updated to ingest images which have been exported using tgocassisrdrgen. Fixes #5418.
    </change>
    <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>
  </history>

  <category>
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ commands:
	$(APPNAME) from=$(INPUT)/CAS-MCO-2016-11-26T22.50.30.181-RED-01012-B1_rdrgen.xml \
	   to=$(OUTPUT)/reingested_unproj.cub > /dev/null;
	catlab from=$(OUTPUT)/reingested_unproj.cub \
	  to=$(OUTPUT)/reingested_proj.pvl > /dev/null;
	  to=$(OUTPUT)/reingested_unproj.pvl > /dev/null;


# projected