TLE, SGP4 & SDP4 code

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
astro
Posts: 41
Joined: 27.10.2003
With us: 21 years

TLE, SGP4 & SDP4 code

Post #1by astro » 14.11.2005, 19:52

I have just finished writing a C++ library for TLE, SGP, SGP4, SDP4, SGP8 & SDP8, based on Dominik Brodowski SGP C library (which is itself based on Dr TS Kelso NORAD Pascal library). I have re-arranged the code to make it object-oriented.

Using this library, I would like to implement the SGP4 and SDP4 orbit model in celestia.

The orbit should be described in the SSC file like this:

Code: Select all

CustomOrbit "TLE:spacecrafts.tle:25791"

spacecrafts.tle is a text file containing the two line elements of some spacecrafts.
25791 is the NORAD Catalog Number of the spacecraft (here FUSE). The software looks for that ID in the TLE file.

From this data, it builds a SGP4 (or SDP4 depending on the orbital period) orbit model.

I would appreciate your opinion on this.

Besides, I would like to know what should be the output of

Code: Select all

Point3d Orbit::positionAtTime(double)

Units : kilometers?
Reference frame: J2000? True Equator & Equinox of Current Epoch?

The SGP4 & SDP4 produce output in the True Equator Mean Equinox of TLE Epoch. Now since the nutation is (from what I understand) quite small compared to SGP4/SDP4 accuracy, I don't care for the difference between "mean" and "true" but I will probably have to convert the coordinates (taking only precession into account) from TLE Epoch to J2000 Epoch.


Since the SGP4 and SDP4 model are only quite accurate around the TLE epoch, I might define the orbit as SGP4/SDP4 for one month around the TLE Epoch and Keplerian outside. I have just seen there is this MixedOrbit class in orbit.h.

If you have any suggestion, recommendations on how to make things better, easier or anything (without making it too difficult for me to code ;), let me know.

Avatar
Joe
Posts: 162
Joined: 29.02.2004
With us: 20 years 8 months
Location: United Kingdom

Post #2by Joe » 16.11.2005, 10:54

This will be great!! Can't wait to try Celestia loading TLE orbit data directly for ISS.
Joe
8O


Return to “Development”