Documentation
¶
Overview ¶
Elementequinox: Chapter 24, Reduction of Ecliptical Elements from one Equinox to another one.
See package precess for the method EclipticPrecessor.ReduceElements and associated example. The method is described in this chapter but located in package precess so that it can be a method of EclipticPrecessor.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elements ¶
type Elements struct {
Inc unit.Angle // inclination轨道倾角
Peri unit.Angle // argument of perihelion (ω)近日点参数
Node unit.Angle // longitude of ascending node (Ω)升交点经度
}
Elements are the orbital elements of a solar system object which change from one equinox to another.
func ReduceB1950FK4ToJ2000FK5 ¶
ReduceB1950ToJ2000 reduces orbital elements of a solar system body from equinox B1950 in the FK4 system to equinox J2000 in the FK5 system.
Example ¶
package main
import (
"fmt"
"github.com/mooncaker816/learnmeeus/v3/elementequinox"
"github.com/soniakeys/unit"
)
func main() {
// Example 24.c, p. 162.
ele := &elementequinox.Elements{
Inc: unit.AngleFromDeg(11.93911),
Node: unit.AngleFromDeg(334.04096),
Peri: unit.AngleFromDeg(186.24444),
}
elementequinox.ReduceB1950FK4ToJ2000FK5(ele, ele)
fmt.Printf("i %.5f\n", ele.Inc.Deg())
fmt.Printf("Ω %.5f\n", ele.Node.Deg())
fmt.Printf("ω %.5f\n", ele.Peri.Deg())
}
Output: i 11.94521 Ω 334.75043 ω 186.23327
func ReduceB1950ToJ2000 ¶
ReduceB1950ToJ2000 reduces orbital elements of a solar system body from equinox B1950 to J2000.
Example ¶
package main
import (
"fmt"
"github.com/mooncaker816/learnmeeus/v3/elementequinox"
"github.com/soniakeys/unit"
)
func main() {
// Example 24.b, p. 161.
ele := &elementequinox.Elements{
Inc: unit.AngleFromDeg(11.93911),
Node: unit.AngleFromDeg(334.04096),
Peri: unit.AngleFromDeg(186.24444),
}
elementequinox.ReduceB1950ToJ2000(ele, ele)
fmt.Printf("i %.5f\n", ele.Inc.Deg())
fmt.Printf("Ω %.5f\n", ele.Node.Deg())
fmt.Printf("ω %.5f\n", ele.Peri.Deg())
}
Output: i 11.94524 Ω 334.75006 ω 186.23352