sgp4

package
v0.0.0-...-19c807f Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	SatLat      float64
	SatLng      float64
	SatAltitude float64
}

type Observation

type Observation struct {
	SatLat      float64
	SatLng      float64
	SatAltitude float64
	Azimuth     float64
	Elevation   float64
	Range       float64
	RangeRate   float64
}

type PassDetails

type PassDetails struct {
	AOS          time.Time
	LOS          time.Time
	AOSAzimuth   float64
	LOSAzimuth   float64
	MaxElevation float64
	AOSRangeRate float64
	LOSRangeRate float64
}

type SGP4

type SGP4 struct {
	// contains filtered or unexported fields
}

func NewSGP4

func NewSGP4(tle *TLE) (p *SGP4, err error)

func (*SGP4) GenerateLocations

func (p *SGP4) GenerateLocations(start, stop time.Time, step int) []Location

func (*SGP4) GeneratePasses

func (p *SGP4) GeneratePasses(lat, lng, alt float64, start, stop time.Time, step int) []PassDetails

func (*SGP4) ObservationFromLocation

func (p *SGP4) ObservationFromLocation(lat, lng, alt float64) Observation

func (*SGP4) Position

func (p *SGP4) Position(lt time.Time) (lat, lng, alt float64, err error)

type TLE

type TLE struct {
	// contains filtered or unexported fields
}

func NewTLE

func NewTLE(name, tle1, tle2 string) (tle *TLE, err error)

func (*TLE) Line1

func (tle *TLE) Line1() string

func (*TLE) Line2

func (tle *TLE) Line2() string

func (*TLE) Name

func (tle *TLE) Name() string

func (*TLE) NoradNumber

func (tle *TLE) NoradNumber() int

func (*TLE) String

func (tle *TLE) String() string

type TLEReader

type TLEReader struct {
	*bufio.Scanner
}

func NewTLEReader

func NewTLEReader(r io.Reader) *TLEReader

func (*TLEReader) ReadAllTLE

func (r *TLEReader) ReadAllTLE() ([]*TLE, error)

Jump to

Keyboard shortcuts

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