diff --git a/isis/src/base/objs/Cube/Cube.cpp b/isis/src/base/objs/Cube/Cube.cpp index 25d978ff77..c4206bf0c1 100644 --- a/isis/src/base/objs/Cube/Cube.cpp +++ b/isis/src/base/objs/Cube/Cube.cpp @@ -99,9 +99,11 @@ namespace Isis { void Cube::fromIsd(const FileName &fileName, Pvl &label, nlohmann::json &isd, QString access) { fromLabel(fileName, label, access); - if (isd.contains("line_scan_rate")) { + PvlGroup &instGrp = label.findGroup("Instrument", Pvl::Traverse); + if (isd.contains("line_scan_rate") && (QString)instGrp["InstrumentId"] == "HRSC") { attachLineScanTableFromIsd(isd); } + attachSpiceFromIsd(isd); close(); diff --git a/isis/src/mex/objs/HrscCamera/HrscCamera.cpp b/isis/src/mex/objs/HrscCamera/HrscCamera.cpp index a46d6c15f5..c4f73e2a4c 100644 --- a/isis/src/mex/objs/HrscCamera/HrscCamera.cpp +++ b/isis/src/mex/objs/HrscCamera/HrscCamera.cpp @@ -122,15 +122,7 @@ namespace Isis { * @param cube */ void HrscCamera::ReadLineRates(Cube &cube) { - Table timesTable("LineScanTimes"); - - // check if LineScanTimes was added from isd - if (cube.hasTable("LineScanTimes")) { - timesTable = cube.readTable("LineScanTimes"); - } - else { - timesTable = Table("LineScanTimes", cube.fileName()); - } + Table timesTable = cube.readTable("LineScanTimes"); if(timesTable.Records() <= 0) { QString msg = "Table [LineScanTimes] in [";