getGroundTracks returning strange values randomly; sometimes tracks equal each other or are completely wrong
See original GitHub issueSay I use the following code to get a ground track and print the result:
const satInfo = await getGroundTracks({
tle: satTLE,
stepMS: 10000,
isLngLatFormat: false
})
console.log(satInfo[0][550]) // Choosing 550 as the index to be consistent
console.log(satInfo[1][550])
console.log(satInfo[2][550])
Sometimes, the results will make sense in that each array has different values, like this:
And the satellite’s current position (using getLatLngObj()
) on a map will lie on ground track [1].
But quite often, for no discernible reason (after refreshing or whatever), some of the arrays will be equal to each other.
And the satellite’s position will no longer lie on the plotted line for that orbit!
And sometimes, the values will be completely off everywhere:
Changing the startTimeMS
does not fix this; nor does changing the TLE, or changing stepMS
. I have a hunch that this may be due to something with inclined orbits (TLEs with higher inclinations having more problems) but I have no real way to confirm this because I can’t replicate the conditions that explicitly cause it to happen.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Thank you again, the extra info was super helpful to track this down. This is now fixed in 4.2.12
Thank you for the details, this helps a lot! Will investigate when I get a chance.