Implementing the "Two-line element set (TLE)", a data format encoding orbital elements of Earth-orbiting objects. https://en.wikipedia.org/wiki/Two-line_element_set
tle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
emile 38d9404322 added a coverage badge 2 weeks ago
.drone.yml telegram notification in drone seem broken, removing them from the drone pipeline 6 months ago
.gitignore Initial commit 7 months ago
LICENSE added a license 7 months ago
README.md added a coverage badge 2 weeks ago
convert.go added support for an enmpty international designator 6 months ago
convert_test.go added a test for an empty international designator 6 months ago
go.mod converted the module name to lowercase 6 months ago
tle.go renamed TLE.go to tle.go possibly fixing module issues 6 months ago

README.md

GoDoc Go Report Card Build Status Coverage

TLE

Implementing the “Two-line element set (TLE)", a data format encoding orbital elements of Earth-orbiting objects.

Wikipedia nasa documentation of the format

Format

(the below tables are copied 1:1 from wikipedia (from here))

Title line

Field Columns Content Example
1 01-24 Satellite name ISS (ZARYA)

Line one

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

Line two

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

Tests / Coverage

Run the tests:

$ go test -v .
...

See the test coverage:

$ go test -coverprofile=coverage.out && go tool cover -html=coverage.out
...

Pull requests

Feel free to make one (or more) pull requests!