Closed astrojuanlu closed 3 years ago
SmartLocationPredictor
clearly gets a wrong result:
The problem is that this assumption is not necessarily true:
in other words: the next local maximum might not be between the current moment (last LOS) and the next orbital period.
In this particular case, if one reruns minimize_scalar
between the computed AOS and LOS, the correct TCA is retrieved:
start_date + dt.timedelta(seconds=minimize_scalar(
lambda t: -elevation(t),
bounds=(t_aos, t_los),
method=minimize_scalar_bounded_alt,
options=dict(xatol=self.tolerance_s),
).x)
Pros:
Cons:
Result:
(via @eguaio)