Documentation
¶
Index ¶
- Constants
- Variables
- func ConvertECEF(rs []float64) (float64, float64, float64)
- func ConvertTEME(t time.Time, teme []float64) (float64, float64, float64)
- func JD(t time.Time) float64
- func MJD50(t time.Time) float64
- func MJD70(t time.Time) float64
- type DragError
- type Element
- type Info
- type InvalidLenError
- type MissingRowError
- type ParseError
- type Point
- type PropagationError
- type Result
- type Shape
- type Trajectory
Constants ¶
View Source
const ( Y2000 = 2000 Y1900 = 1900 YPivot = 57 )
View Source
const Axis = 3
Variables ¶
View Source
var ( ErrShortPeriod = errors.New("propagation period shorter than step") ErrBaseTime = errors.New("no propagation beyond base time") )
Functions ¶
Types ¶
type Element ¶
type Element struct {
Sid int
When time.Time
JD float64
JDF float64
Base time.Time
//Elements of row#1
Year int
Doy float64
Mean1 float64
Mean2 float64
BStar float64
Ephemeris int
//Elements of row#2
Inclination float64
Ascension float64
Excentricity float64
Perigee float64
Anomaly float64
Motion float64
Revolution int
TLE []string
}
func NewElement ¶
type InvalidLenError ¶
type InvalidLenError int
func (InvalidLenError) Error ¶
func (e InvalidLenError) Error() string
type MissingRowError ¶
type MissingRowError int
func (MissingRowError) Error ¶
func (e MissingRowError) Error() string
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type Point ¶
type Point struct {
When time.Time `json:"dtstamp" xml:"dtstamp"`
Epoch float64 `json:"jd" xml:"jd"`
// Satellite position
Lat float64 `json:"lat" xml:"lat"`
Lon float64 `json:"lon" xml:"lon"`
Alt float64 `json:"alt" xml:"alt"`
// SAA and Eclipse crossing
Saa bool `json:"crossing" xml:"crossing"`
Partial bool `json:"-" xml:"-"`
Total bool `json:"eclipse" xml:"eclipse"`
// contains filtered or unexported fields
}
func (Point) Geocentric ¶
type PropagationError ¶
type PropagationError int
func (PropagationError) Error ¶
func (e PropagationError) Error() string
type Trajectory ¶
Click to show internal directories.
Click to hide internal directories.