A TLE handling package for Go
To use the package, run:
go get github.com/cprosche/tle- Provides TLE type
- Parses TLEs and 3LEs
- Validates checksums
- Supports Alpha 5 format
package main
import (
"fmt"
"github.com/cprosche/tle"
)
func main() {
tleStr := `ISS (ZARYA)
1 25544U 98067A 21293.61892701 .00000913 00000-0 26179-4 0 9991
2 25544 51.6443 88.9783 0004266 35.1673 33.6829 15.48976801304895`
tle, err := tle.Parse(tleStr)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(tle)
}TLE or 2LE: Two-Line Element Set
3LE: Three-Line Element Set
TLEs are used to describe the orbits of Earth-orbiting objects. They are used by the United States Department of Defense to track objects in orbit.
Recent TLEs for most objects can be found at the following websites:
This package is licensed under the MIT license. See the LICENSE file for more information.