diff --git a/src/UsgsAstroLsSensorModel.cpp b/src/UsgsAstroLsSensorModel.cpp index d16eefe59cd1bb8691f1f3305f76cf6886705231..b2cb9846d18aa768fcada51fe5b8ef4dabae8eca 100644 --- a/src/UsgsAstroLsSensorModel.cpp +++ b/src/UsgsAstroLsSensorModel.cpp @@ -302,15 +302,14 @@ csm::ImageCoord UsgsAstroLsSensorModel::groundToImage( // Check that the pixel is actually in the image if ((calculatedPixel.samp < 0) || (calculatedPixel.samp > _data.m_TotalSamples)) { - throw csm::Error( - csm::Error::ALGORITHM, - "Ground point is not viewed by the image.", + throw csm::Warning( + csm::Warning::IMAGE_COORD_OUT_OF_BOUNDS, + "The image coordinate is out of bounds of the image size.", "UsgsAstroLsSensorModel::groundToImage"); } // If the final correction is greater than 10 meters, // the solution is not valid enough to report even with a warning - printf("%f\n", len); if (len > 100.0) { throw csm::Error( csm::Error::ALGORITHM,