Skip to content
Snippets Groups Projects
Commit 721d9e95 authored by Guylaine Prat's avatar Guylaine Prat
Browse files

Reactivate atmospheric computation before inverse location failed

In case the inverse location failed, but computation continue (for
instance while computing an inverse loc grid), the user can manage the
failure and continue the computation of the grid. So the atmospheric
computation must be reactivated.
parent e47d6bd0
No related branches found
No related tags found
No related merge requests found
......@@ -755,11 +755,12 @@ public class Rugged {
// compute the sensor pixel on the desired ground point WITHOUT atmosphere
atmosphericRefraction.deactivateComputation();
final SensorPixel sp0 = inverseLocation(sensorName, point, minLine, maxLine);
atmosphericRefraction.reactivateComputation();
if (sp0 == null) {
// Impossible to find the point in the given min line and max line
// Impossible to find the point in the given min line and max line (without atmosphere)
throw new RuggedException(RuggedMessages.INVALID_RANGE_FOR_LINES, minLine, maxLine, "");
}
atmosphericRefraction.reactivateComputation();
// set up the starting point of the fixed point method
final double pixel0 = sp0.getPixelNumber();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment