Commit 00eb9379 authored by Kristin Berry's avatar Kristin Berry
Browse files

Updated tgocassis2isis for coding standards review

parent b34a9e0f
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -5,14 +5,14 @@
#include "AlphaCube.h"
#include "Cube.h"
#include "FileName.h"
#include "IException.h"
#include "iTime.h"
#include "LineManager.h"
#include "OriginalXmlLabel.h"
#include "Preference.h"
#include "ProcessImport.h"
#include "UserInterface.h"
#include "XmlToPvlTranslationManager.h"
#include "iTime.h"
#include "IException.h"

using namespace std;
using namespace Isis;
@@ -44,11 +44,13 @@ void IsisMain() {
    
    Cube *outputCube = importer.SetOutputCube("TO");

    QString transRawFile("/translations/tgoCassisInstrument.trn");
    QString transExportFile("/translations/tgoCassisExportedInstrument.trn");
    QString transRawFile = "/translations/tgoCassisInstrument.trn";
    QString transExportFile = "/translations/tgoCassisExportedInstrument.trn";

    try {
      translateLabels(xmlFileName, outputCube, transRawFile); 
    } catch (IException &e) {
    } 
    catch (IException &e) {
      translateLabels(xmlFileName, outputCube, transExportFile); 
    }

@@ -90,15 +92,14 @@ void translateCoreInfo(FileName &inputLabel, ProcessImport &importer) {
  PvlGroup &dataDir = Preference::Preferences().findGroup("DataDirectory");
  QString missionDir = (QString) dataDir["Tgo"];

  // How to tell that this is an ISIS3 exported product (generated by tgocassisrdrgen?)

  // Get the translation manager ready
  FileName transFile; 
  try {
    transFile = FileName(missionDir + "/translations/tgoCassis.trn"); 
    XmlToPvlTranslationManager labelXlater(inputLabel, transFile.expanded());
    translateCoreInfo(labelXlater, importer);
  } catch (IException &e) {
  } 
  catch (IException &e) {
   // if exported, use this!
   transFile = FileName(missionDir + "/translations/tgoCassisExported.trn"); 
   XmlToPvlTranslationManager labelXlater(inputLabel, transFile.expanded());