tle

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TLE

type TLE struct {
	Name    string
	NoradID string
	Line1   TLELine1
	Line2   TLELine2
}

ISS (ZARYA) 1 25544U 98067A 08264.51782528 -.00002182 00000-0 -11606-4 0 2927 2 25544 51.6416 247.4627 0006703 130.5360 325.0288 15.72125391563537

func ParseTLE

func ParseTLE(line1, line2, name string) (TLE, error)

func ReadTLEFile

func ReadTLEFile(filePath string) ([]TLE, error)

func (TLE) GetTLETime

func (t TLE) GetTLETime() time.Time

func (TLE) String added in v0.2.0

func (t TLE) String() string

type TLELine1

type TLELine1 struct {
	LineNumber       string
	SataliteID       string
	Classification   string
	LaunchYear       string
	LaunchNumber     string
	LaunchPiece      string
	EpochYear        string
	EpochDay         string
	FirstDerivative  string
	SecondDerivative string
	Bstar            string // drag term or radiation pressure term
	EphemerisType    string
	ElementSetNumber string
	Checksum         string
	LineString       string
}

func ReadTLELine1

func ReadTLELine1(line string) (TLELine1, error)

type TLELine2

type TLELine2 struct {
	LineNumber        string
	SataliteID        string
	Inclination       string // degrees
	RightAscension    string // degrees
	Eccentricity      string
	ArgumentOfPerigee string // degrees
	MeanAnomaly       string // degrees
	MeanMotion        string // revolutions per day
	RevolutionNumber  string
	Checksum          string
	LineString        string
}

func ReadTLELine2

func ReadTLELine2(line string) (TLELine2, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL