Documentation ¶
Overview ¶
Parse a row of an asteroids entry, see https://minorplanetcenter.net//iau/info/MPOrbitFormat.html.
Index ¶
- Constants
- func GetAsteroidPayload() (*apb.Asteroids, error)
- type Asteroid
- func (a *Asteroid) ArgumentOfPerihelion() float64
- func (a *Asteroid) CriticalListNumbered() bool
- func (a *Asteroid) Epoch() (time.Time, error)
- func (a *Asteroid) InAsteroidBelt() bool
- func (a *Asteroid) Inclination() float64
- func (a *Asteroid) IsLargeNEO() bool
- func (a *Asteroid) IsNEO() bool
- func (a *Asteroid) IsPHA() bool
- func (a *Asteroid) IsUnbounded() bool
- func (a *Asteroid) LongitudeAscendingNode() float64
- func (a *Asteroid) MeanAnomalyAtEpoch(t time.Time) (float64, error)
- func (a *Asteroid) OppositionObjectSeenAtEarlierOpposition() bool
- func (a *Asteroid) OrbitType() apb.OrbitType
- func (a *Asteroid) PerihelionDistance() float64
- func (a *Asteroid) Uncertainty() int
- type AsteroidsReader
- type Stats
Constants ¶
View Source
const ( MPCORB_DAT_URL = "http://www.minorplanetcenter.net/iau/MPCORB/MPCORB.DAT.gz" DOWNLOAD_PATH = "./data/asteroids/mpcorb.dat" )
Variables ¶
This section is empty.
Functions ¶
func GetAsteroidPayload ¶
Types ¶
type Asteroid ¶
type Asteroid struct { // Orbital eccentricity Eccentricity float64 // Semimajor axis (AU) SemiMajorAxis float64 // contains filtered or unexported fields }
func NewAsteroid ¶
func (*Asteroid) ArgumentOfPerihelion ¶
func (*Asteroid) CriticalListNumbered ¶
func (*Asteroid) InAsteroidBelt ¶
Somewhat arbitrary, but roughly corresponds to https://www.britannica.com/science/asteroid/Geography-of-the-asteroid-belt.
func (*Asteroid) Inclination ¶
func (*Asteroid) IsLargeNEO ¶
func (*Asteroid) IsUnbounded ¶
func (*Asteroid) LongitudeAscendingNode ¶
func (*Asteroid) MeanAnomalyAtEpoch ¶
func (*Asteroid) OppositionObjectSeenAtEarlierOpposition ¶
func (*Asteroid) PerihelionDistance ¶
func (*Asteroid) Uncertainty ¶
type AsteroidsReader ¶
type AsteroidsReader struct {
// contains filtered or unexported fields
}
func NewAsteroidsReader ¶
func NewAsteroidsReader() (*AsteroidsReader, error)
func (*AsteroidsReader) Close ¶
func (r *AsteroidsReader) Close() error
func (*AsteroidsReader) Err ¶
func (r *AsteroidsReader) Err() error
func (*AsteroidsReader) Next ¶
func (r *AsteroidsReader) Next() (*Asteroid, error)
func (*AsteroidsReader) Scan ¶
func (r *AsteroidsReader) Scan() bool
Click to show internal directories.
Click to hide internal directories.