Example #1
0
func ExampleReduceB1950ToJ2000() {
	// 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
}
Example #2
0
func ExampleReduceB1950ToJ2000() {
	// Example 24.b, p. 161.
	ele := &elementequinox.Elements{
		Inc:  11.93911 * math.Pi / 180,
		Node: 334.04096 * math.Pi / 180,
		Peri: 186.24444 * math.Pi / 180,
	}
	elementequinox.ReduceB1950ToJ2000(ele, ele)
	fmt.Printf("i  %.5f\n", ele.Inc*180/math.Pi)
	fmt.Printf("Ω  %.5f\n", ele.Node*180/math.Pi)
	fmt.Printf("ω  %.5f\n", ele.Peri*180/math.Pi)
	// Output:
	// i  11.94524
	// Ω  334.75006
	// ω  186.23352
}