Skip to content
Snippets Groups Projects
Commit 19c29897 authored by Jesse Mapel's avatar Jesse Mapel Committed by Kristin
Browse files

Removed ground to image 10m errormessage (#180)

parent 459912c5
No related branches found
No related tags found
No related merge requests found
...@@ -599,21 +599,6 @@ csm::ImageCoord UsgsAstroLsSensorModel::groundToImage( ...@@ -599,21 +599,6 @@ csm::ImageCoord UsgsAstroLsSensorModel::groundToImage(
double dz = ground_pt.z - calculatedPoint.z; double dz = ground_pt.z - calculatedPoint.z;
double len = dx * dx + dy * dy + dz * dz; double len = dx * dx + dy * dy + dz * dz;
// If the final correction is greater than 10 meters,
// the solution is not valid enough to report even with a warning
if (len > 100.0) {
std::ostringstream msg;
msg << "Did not converge. Ground point: (" << ground_pt.x << ", "
<< ground_pt.y << ", " << ground_pt.z << ") Computed image point: ("
<< calculatedPixel.line << ", " << calculatedPixel.samp
<< ") Computed ground point: (" << calculatedPoint.x << ", "
<< calculatedPoint.y << ", " << calculatedPoint.z << ")";
throw csm::Error(
csm::Error::ALGORITHM,
msg.str(),
"UsgsAstroLsSensorModel::groundToImage");
}
if (achieved_precision) { if (achieved_precision) {
*achieved_precision = sqrt(len); *achieved_precision = sqrt(len);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment