Loading isis/IsisPreferences +2 −1 Original line number Diff line number Diff line Loading @@ -174,7 +174,8 @@ Group = DataDirectory Mgs = $ISIS3DATA/mgs Mro = $ISIS3DATA/mro Near = $ISIS3DATA/near NewHorizons = $ISIS3DATA/newhorizons # When setting this back to the normal area, do not forget objs/Preferences NewHorizons = $ISIS3DATA/../datalocal/newhorizons Odyssey = $ISIS3DATA/odyssey Rolo = $ISIS3DATA/rolo Smart1 = $ISIS3DATA/smart1 Loading isis/src/base/objs/CameraPointInfo/CameraPointInfo.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,6 @@ namespace Isis { void CameraPointInfo::SetCube(const QString &cubeFileName) { m_currentCube = m_usedCubes->OpenCube(cubeFileName); m_camera = m_currentCube->camera(); m_camera->IgnoreProjection(true); } Loading isis/src/base/objs/Preference/TestPreferences +1 −1 Original line number Diff line number Diff line Loading @@ -176,7 +176,7 @@ Group = DataDirectory Messenger = $ISIS3DATA/messenger Mgs = $ISIS3DATA/mgs Mro = $ISIS3DATA/mro NewHorizons = $ISIS3DATA/newhorizons NewHorizons = $ISIS3DATA/../datalocal/newhorizons Near = $ISIS3DATA/near Odyssey = $ISIS3DATA/odyssey Rolo = $ISIS3DATA/rolo Loading isis/src/galileo/apps/gllssi2isis/gllssi2isis.cpp +80 −12 Original line number Diff line number Diff line #include "Isis.h" #include <cstdio> #include <QString> #include "ProcessImportPds.h" #include "UserInterface.h" #include "CubeAttribute.h" #include "FileName.h" #include "IException.h" #include "iTime.h" #include "ProcessImportPds.h" #include "UserInterface.h" #include <cstdio> #include <QString> #include <QByteArray> #include <QFileInfo> #include <QFile> using namespace std; using namespace Isis; Loading @@ -17,8 +23,9 @@ bool summed; Cube *summedOutput; void TranslateData(Buffer &inData); void TranslateLabels(Pvl &pdsLabel, Cube *ocube); void translateData(Buffer &inData); void translateLabels(Pvl &pdsLabel, Cube *ocube); void fixPvl(QString fileName); void IsisMain() { Loading @@ -31,7 +38,15 @@ void IsisMain() { FileName inFile = ui.GetFileName("FROM"); FileName out = ui.GetFileName("TO"); fixPvl(inFile.toString()); // Make sure it is a Galileo SSI image Pvl lab(inFile.expanded()); //Checks if in file is rdr Loading Loading @@ -99,11 +114,11 @@ void IsisMain() { summedOutput->setDimensions(p.Samples() / 2, p.Lines() / 2, p.Bands()); summedOutput->setPixelType(p.PixelType()); summedOutput->create(ui.GetFileName("TO")); p.StartProcess(TranslateData); p.StartProcess(translateData); ocube = summedOutput; } TranslateLabels(pdsLabel, ocube); translateLabels(pdsLabel, ocube); p.EndProcess(); if (summed) { Loading @@ -114,11 +129,64 @@ void IsisMain() { return; } void TranslateData(Buffer &inData) { /** * This fixes a problem with some of the Pvl files where a comment * was left open. If the file has this error, the comment is closed * and the file is saved. If the file does not, it's closed without * changing anything. * * @param fileName The full path + file name of the Pvl file * being checked * */ void fixPvl(QString fileName){ QFile pvlFile; pvlFile.setFileName(fileName); pvlFile.open(QFile::ReadWrite | QFile::Text); //Read the Pvl file into a byte array QByteArray fileData = pvlFile.readAll(); //Is this one of the messed up files? if (!fileData.contains(QByteArray("/* Image Object /") ) ){ pvlFile.close(); //No - so return without doing anything return; } //Otherwise, edit the file in place fileData.replace(QByteArray("/* Image Object /"),QByteArray("/* Image Object */")); pvlFile.seek(0); pvlFile.write(fileData); pvlFile.close(); } void translateData(Buffer &inData) { summedOutput->write(inData); } void TranslateLabels(Pvl &pdsLabel, Cube *ocube) { void translateLabels(Pvl &pdsLabel, Cube *ocube) { // Get the directory where the MOC translation tables are. PvlGroup &dataDir = Preference::Preferences().findGroup("DataDirectory"); Loading isis/src/galileo/apps/gllssi2isis/gllssi2isis.xml +6 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,12 @@ contains "SSI-4-REDR-V1.0"). Modified code to set as FULL summing mode if FRAMEMODE=AUTO and the image is reconstructed. </change> <change name="Tyler Wilson" date="2015-10-02"> Added the fixPvl function that fixes Pvl files from orbit I24 which have a comment tag that is not closed off. #Ref 2344 </change> </history> <category> Loading Loading
isis/IsisPreferences +2 −1 Original line number Diff line number Diff line Loading @@ -174,7 +174,8 @@ Group = DataDirectory Mgs = $ISIS3DATA/mgs Mro = $ISIS3DATA/mro Near = $ISIS3DATA/near NewHorizons = $ISIS3DATA/newhorizons # When setting this back to the normal area, do not forget objs/Preferences NewHorizons = $ISIS3DATA/../datalocal/newhorizons Odyssey = $ISIS3DATA/odyssey Rolo = $ISIS3DATA/rolo Smart1 = $ISIS3DATA/smart1 Loading
isis/src/base/objs/CameraPointInfo/CameraPointInfo.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,6 @@ namespace Isis { void CameraPointInfo::SetCube(const QString &cubeFileName) { m_currentCube = m_usedCubes->OpenCube(cubeFileName); m_camera = m_currentCube->camera(); m_camera->IgnoreProjection(true); } Loading
isis/src/base/objs/Preference/TestPreferences +1 −1 Original line number Diff line number Diff line Loading @@ -176,7 +176,7 @@ Group = DataDirectory Messenger = $ISIS3DATA/messenger Mgs = $ISIS3DATA/mgs Mro = $ISIS3DATA/mro NewHorizons = $ISIS3DATA/newhorizons NewHorizons = $ISIS3DATA/../datalocal/newhorizons Near = $ISIS3DATA/near Odyssey = $ISIS3DATA/odyssey Rolo = $ISIS3DATA/rolo Loading
isis/src/galileo/apps/gllssi2isis/gllssi2isis.cpp +80 −12 Original line number Diff line number Diff line #include "Isis.h" #include <cstdio> #include <QString> #include "ProcessImportPds.h" #include "UserInterface.h" #include "CubeAttribute.h" #include "FileName.h" #include "IException.h" #include "iTime.h" #include "ProcessImportPds.h" #include "UserInterface.h" #include <cstdio> #include <QString> #include <QByteArray> #include <QFileInfo> #include <QFile> using namespace std; using namespace Isis; Loading @@ -17,8 +23,9 @@ bool summed; Cube *summedOutput; void TranslateData(Buffer &inData); void TranslateLabels(Pvl &pdsLabel, Cube *ocube); void translateData(Buffer &inData); void translateLabels(Pvl &pdsLabel, Cube *ocube); void fixPvl(QString fileName); void IsisMain() { Loading @@ -31,7 +38,15 @@ void IsisMain() { FileName inFile = ui.GetFileName("FROM"); FileName out = ui.GetFileName("TO"); fixPvl(inFile.toString()); // Make sure it is a Galileo SSI image Pvl lab(inFile.expanded()); //Checks if in file is rdr Loading Loading @@ -99,11 +114,11 @@ void IsisMain() { summedOutput->setDimensions(p.Samples() / 2, p.Lines() / 2, p.Bands()); summedOutput->setPixelType(p.PixelType()); summedOutput->create(ui.GetFileName("TO")); p.StartProcess(TranslateData); p.StartProcess(translateData); ocube = summedOutput; } TranslateLabels(pdsLabel, ocube); translateLabels(pdsLabel, ocube); p.EndProcess(); if (summed) { Loading @@ -114,11 +129,64 @@ void IsisMain() { return; } void TranslateData(Buffer &inData) { /** * This fixes a problem with some of the Pvl files where a comment * was left open. If the file has this error, the comment is closed * and the file is saved. If the file does not, it's closed without * changing anything. * * @param fileName The full path + file name of the Pvl file * being checked * */ void fixPvl(QString fileName){ QFile pvlFile; pvlFile.setFileName(fileName); pvlFile.open(QFile::ReadWrite | QFile::Text); //Read the Pvl file into a byte array QByteArray fileData = pvlFile.readAll(); //Is this one of the messed up files? if (!fileData.contains(QByteArray("/* Image Object /") ) ){ pvlFile.close(); //No - so return without doing anything return; } //Otherwise, edit the file in place fileData.replace(QByteArray("/* Image Object /"),QByteArray("/* Image Object */")); pvlFile.seek(0); pvlFile.write(fileData); pvlFile.close(); } void translateData(Buffer &inData) { summedOutput->write(inData); } void TranslateLabels(Pvl &pdsLabel, Cube *ocube) { void translateLabels(Pvl &pdsLabel, Cube *ocube) { // Get the directory where the MOC translation tables are. PvlGroup &dataDir = Preference::Preferences().findGroup("DataDirectory"); Loading
isis/src/galileo/apps/gllssi2isis/gllssi2isis.xml +6 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,12 @@ contains "SSI-4-REDR-V1.0"). Modified code to set as FULL summing mode if FRAMEMODE=AUTO and the image is reconstructed. </change> <change name="Tyler Wilson" date="2015-10-02"> Added the fixPvl function that fixes Pvl files from orbit I24 which have a comment tag that is not closed off. #Ref 2344 </change> </history> <category> Loading