question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getGroundTracks returning strange values randomly; sometimes tracks equal each other or are completely wrong

See original GitHub issue

Say 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:

image

And the satellite’s current position (using getLatLngObj()) on a map will lie on ground track [1].

image

But quite often, for no discernible reason (after refreshing or whatever), some of the arrays will be equal to each other.

image

And the satellite’s position will no longer lie on the plotted line for that orbit!

image

And sometimes, the values will be completely off everywhere:

image

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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
davidcalhouncommented, May 9, 2021

Thank you again, the extra info was super helpful to track this down. This is now fixed in 4.2.12

0reactions
davidcalhouncommented, May 5, 2021

Thank you for the details, this helps a lot! Will investigate when I get a chance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tracks reassigning at random - Apple Support Communities
I've been experiencing a VERY frustrating problem since the 10.5 update. What happens is that sometimes all my tracks just suddenly reassign ...
Read more >
Random UAD plugin makes the track sound like an 8-bit NES
Basically, sometimes when I load a LUNA session, I get this 8-bit NES (OTO biscuit for free) like sound on some of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found