The old code was doing a binary search using the sensor distance. This worked when the observation was perfectly nadir, but when the observation is off-nadir, we want to instead find the frame where the ground point is observed closest to the center of the frame.
The old code was doing a binary search using the sensor distance. This worked when the observation was perfectly nadir, but when the observation is off-nadir, we want to instead find the frame where the ground point is observed closest to the center of the frame.