Loading isis/src/tgo/apps/tgocassis2isis/tgocassis2isis.cpp +9 −8 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); } Loading Loading @@ -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()); Loading Loading
isis/src/tgo/apps/tgocassis2isis/tgocassis2isis.cpp +9 −8 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); } Loading Loading @@ -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()); Loading