Closed enritoomey closed 5 years ago
Regarding that particular test: I introduced it in #14 and I'm sure I copy-pasted the values from the result, to at least verify that we were not breaking things. However, it's not a super good way of testing it, so I will generate new values using GMAT and make it more tolerant.
As seen in https://github.com/satellogic/orbit-predictor/pull/19/, however, there are other tests breaking, so we will have to inspect those more closely.
GMAT does not support SGP4.
STK, on the other hand, claims to use "the algorithm provided by CSSI, available at www.centerforspace.com", which is "freely available":
http://www.centerforspace.com/downloads/
This can be used as an alternative validation method.
In lines https://github.com/satellogic/orbit-predictor/blob/d4ec34d34a596b3dd2567aab232809d7f364cbcf/orbit_predictor/accuratepredictor.py#L159-L161 a round_time() function is used. I really don't understand the requirement of this, but when I remove that rounding, the following tests crash: