celestrak

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CELESTRAK_URL = "https://celestrak.org/NORAD/elements/gp.php?CATNR=NORADID&FORMAT=TLE"
View Source
var DOWNLOAD_DIR = "downloads"

Define the directory where all TLE files will be downloaded

Functions

func DownloadTLEs

func DownloadTLEs(url string, filename string) ([]tle.TLE, error)

func GetSatelliteGroupTLEs

func GetSatelliteGroupTLEs(groupName string, config CelestrakConfig) ([]tle.TLE, error)

func GetSatelliteTLEByNoradID

func GetSatelliteTLEByNoradID(noradID string) (tle.TLE, error)

Types

type CelestrakConfig

type CelestrakConfig struct {
	SatelliteGroups []SatelliteGroup `yaml:"satellite_groups"`
	Metadata        struct {
		Source      string `yaml:"source"`
		URL         string `yaml:"url"`
		Format      string `yaml:"format"`
		Provider    string `yaml:"provider"`
		DataSource  string `yaml:"data_source"`
		LastUpdated string `yaml:"last_updated"`
	} `yaml:"metadata"`
}

func ReadCelestrakConfig

func ReadCelestrakConfig() (CelestrakConfig, error)

type SatelliteGroup

type SatelliteGroup struct {
	Name string `yaml:"name"`
	URL  string `yaml:"url"`
}

Jump to

Keyboard shortcuts

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