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.

Allow change of gravity model in Satrec

See original GitHub issue

The new Satrec class uses the WGS-72 gravity model:

https://github.com/brandon-rhodes/python-sgp4/blob/10e8076f18bb148d5e2a2434ae20daf9dcfc6fd0/extension/wrapper.cpp#L113

https://github.com/brandon-rhodes/python-sgp4/blob/10e8076f18bb148d5e2a2434ae20daf9dcfc6fd0/sgp4/model.py#L47

There is some discussion in Vallado et al. “Revisiting Spacetrack Report #3: Rev 1” but I haven’t fully understood it yet. Do you have any supporting documentation that says that WGS-72 should always be used, or do you think it could be left as a parameter?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
zouhairmcommented, Mar 16, 2020

I know this is not a decision by consensus case, but as a 3rd party user of the API, I vote for allowing the option to change the gravity model.

I don’t think it’s a major complication to the API to make the gravity-constant a keyword argument to default to wgs72 to be consistent with the choice from the paper, and it allows people who have been using wgs84 to not worry about the implications of upgrading to the new API in order to take advantage of the speed-up and array functionality.

2reactions
brandon-rhodescommented, Mar 22, 2020

I have just released 2.5 that includes this improvement. Enjoy!

Read more comments on GitHub >

github_iconTop Results From Across the Web

need a way to pass gravity model to TLE loader #544 - GitHub
I am loading a large TLE file using: satellites = load.tle_file(args.tle_catalog) But I want those satellites to use WGS84 gravity model for ...
Read more >
Sensitivity of the Gravity Model and Orbital Frame for ... - MDPI
This paper describes the sensitivity of both the orbital frame domain selection and the gravity model on the performance of on-board real-time orbit ......
Read more >
Sensitivity of the Gravity Model and Orbital Frame for ... - MDPI
Abstract: This paper describes the sensitivity of both the orbital frame domain selection and the gravity model on the performance of ...
Read more >
Earth Satellites — Skyfield documentation - Rhodes Mill
Expect a satellite's orbit to constantly change as the SGP4 propagation routine models effects like atmospheric drag and the Moon's gravity.
Read more >
sgp4 - PyPI
When the satellite record is initialized, your choice of gravity model results in a slate of eight constants being copied in: tumin —...
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