Beispiel #1
0
func ExampleAberration() {
	// Example 23.a, p. 152
	α := sexa.NewRA(2, 46, 11.331).Rad()
	δ := sexa.NewAngle(false, 49, 20, 54.54).Rad()
	jd := julian.CalendarGregorianToJD(2028, 11, 13.19)
	Δα2, Δδ2 := apparent.Aberration(α, δ, jd)
	fmt.Printf("%.3s  %.3s\n", sexa.NewFmtAngle(Δα2), sexa.NewFmtAngle(Δδ2))
	// Output:
	// 30.045″  6.697″
}
Beispiel #2
0
func ExampleAberration() {
	// Example 23.a, p. 152
	α := unit.NewRA(2, 46, 11.331)
	δ := unit.NewAngle(' ', 49, 20, 54.54)
	jd := julian.CalendarGregorianToJD(2028, 11, 13.19)
	Δα2, Δδ2 := apparent.Aberration(α, δ, jd)
	fmt.Printf("%.3s  %.3s\n",
		sexa.FmtAngle(unit.Angle(Δα2)), // (Δα2 is in HourAngle)
		sexa.FmtAngle(Δδ2))
	// Output:
	// 30.045″  6.697″
}