emile 38d9404322 | 4 months ago | |
---|---|---|
.drone.yml | 9 months ago | |
.gitignore | 11 months ago | |
LICENSE | 10 months ago | |
README.md | 4 months ago | |
convert.go | 9 months ago | |
convert_test.go | 9 months ago | |
go.mod | 10 months ago | |
tle.go | 10 months ago |
Implementing the “Two-line element set (TLE)", a data format encoding orbital elements of Earth-orbiting objects.
Wikipedia nasa documentation of the format
(the below tables are copied 1:1 from wikipedia (from here))
Field | Columns | Content | Example |
---|---|---|---|
1 | 01-24 | Satellite name | ISS (ZARYA) |
Field | Columns | Content | Example |
---|---|---|---|
1 | 01-01 | Line number | 1 |
2 | 03–07 | Satellite number | 25544 |
3 | 08–08 | Classification (U=Unclassified) | U |
4 | 10–11 | International Designator (Last two digits of launch year) | 98 |
5 | 12–14 | International Designator (Launch number of the year) | 067 |
6 | 15–17 | International Designator (piece of the launch) | A |
7 | 19–20 | Epoch Year (last two digits of year) | 08 |
8 | 21–32 | Epoch (day of the year and fractional portion of the day) | 264.51782528 |
9 | 34–43 | First Time Derivative of the Mean Motion divided by two [11] | −.00002182 |
10 | 45–52 | Second Time Derivative of Mean Motion divided by six (decimal point assumed) | 00000-0 |
11 | 54–61 | BSTAR drag term (decimal point assumed) [11] | -11606-4 |
12 | 63–63 | The number 0 (originally this should have been “Ephemeris type”) | 0 |
13 | 65–68 | Element set number. Incremented when a new TLE is generated for this object.[11] | 292 |
14 | 69–69 | Checksum (modulo 10) | 7 |
Field | Columns | Content | Example |
---|---|---|---|
1 | 01–01 | Line number | 2 |
2 | 03–07 | Satellite number | 25544 |
3 | 09–16 | Inclination (degrees) | 51.6416 |
4 | 18–25 | Right ascension of the ascending node (degrees) | 247.4627 |
5 | 27–33 | Eccentricity (decimal point assumed) | 0006703 |
6 | 35–42 | Argument of perigee (degrees) | 130.5360 |
7 | 44–51 | Mean Anomaly (degrees) | 325.0288 |
8 | 53–63 | Mean Motion (revolutions per day) | 15.72125391 |
9 | 64–68 | Revolution number at epoch (revolutions) | 56353 |
10 | 69–69 | Checksum (modulo 10) | 7 |
Run the tests:
$ go test -v .
...
See the test coverage:
$ go test -coverprofile=coverage.out && go tool cover -html=coverage.out
...
Feel free to make one (or more) pull requests!