Skip to content

Commit

Permalink
Fixed last failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
acpaquette committed Sep 12, 2023
1 parent ab64316 commit 2bf12a2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions isis/src/base/objs/CSMCamera/CSMCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,8 @@ void sanitize(std::string &input);
* @param lon Sub-solar longitude
*/
void CSMCamera::subSolarPoint(double &lat, double &lon) {
lat = 0;
lon = 0;
QString msg = "Sub solar point is not supported for CSM camera models";
throw IException(IException::Programmer, msg, _FILEINFO_);
}


Expand Down
4 changes: 2 additions & 2 deletions isis/src/base/objs/CameraPointInfo/CameraPointInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,13 @@ namespace Isis {
gp->findKeyword("LookDirectionBodyFixed").addValue(toString(lookB[2]), "DEGREE");
gp->findKeyword("LookDirectionBodyFixed").addComment("Look Direction Unit Vectors in Body Fixed, J2000, and Camera Coordinate Systems.");

try {
if (m_camera->bodyRotation() != NULL) {
std::vector<double>lookJ = m_camera->lookDirectionJ2000();
gp->findKeyword("LookDirectionJ2000").addValue(toString(lookJ[0]), "DEGREE");
gp->findKeyword("LookDirectionJ2000").addValue(toString(lookJ[1]), "DEGREE");
gp->findKeyword("LookDirectionJ2000").addValue(toString(lookJ[2]), "DEGREE");
}
catch (IException &e) {
else {
gp->findKeyword("LookDirectionJ2000").addValue("Null");
gp->findKeyword("LookDirectionJ2000").addValue("Null");
gp->findKeyword("LookDirectionJ2000").addValue("Null");
Expand Down
17 changes: 12 additions & 5 deletions isis/src/qisis/objs/AdvancedTrackTool/AdvancedTrackTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,15 +444,22 @@ namespace Isis {
p_tableWin->table()->item(row, getIndex("North Azimuth"))->setText("");
}

double sunAzi = cvp->camera()->SunAzimuth();
if (Isis::IsValidPixel(sunAzi)) {
p_tableWin->table()->item(row, getIndex("Sun Azimuth"))->
setText(QString::number(sunAzi));

try {
double sunAzi = cvp->camera()->SunAzimuth();
if (Isis::IsValidPixel(sunAzi)) {
p_tableWin->table()->item(row, getIndex("Sun Azimuth"))->
setText(QString::number(sunAzi));
}
else { // sun azimuth is null
p_tableWin->table()->item(row, getIndex("Sun Azimuth"))->setText("");
}
}
else { // sun azimuth is null
catch(IException &e) {
p_tableWin->table()->item(row, getIndex("Sun Azimuth"))->setText("");
}


double spacecraftAzi = cvp->camera()->SpacecraftAzimuth();
if (Isis::IsValidPixel(spacecraftAzi)) {
p_tableWin->table()->item(row, getIndex("Spacecraft Azimuth"))->
Expand Down

0 comments on commit 2bf12a2

Please sign in to comment.