Documentation ¶
Overview ¶
Pluto: Chapter 37, Pluto.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Astrometric ¶
Astrometric returns J2000 astrometric coordinates of Pluto.
Example ¶
// Example 37.a, p. 266 e, err := pp.LoadPlanet(pp.Earth) if err != nil { fmt.Println(err) return } α, δ := pluto.Astrometric(2448908.5, e) fmt.Printf("α: %.1d\n", sexa.FmtRA(α)) fmt.Printf("δ: %.0d\n", sexa.FmtAngle(δ))
Output: α: 15ʰ31ᵐ43ˢ.8 δ: -4°27′29″
func Heliocentric ¶
Heliocentric returns J2000 heliocentric coordinates of Pluto.
Results l, b are solar longitude and latitude in radians. Result r is distance in AU.
Example ¶
package main import ( "fmt" "github.com/soniakeys/meeus/v3/pluto" ) func main() { // Example 37.a, p. 266 l, b, r := pluto.Heliocentric(2448908.5) fmt.Printf("l: %.5f\n", l.Deg()) fmt.Printf("b: %.5f\n", b.Deg()) fmt.Printf("r: %.6f\n", r) }
Output: l: 232.74071 b: 14.58782 r: 29.711111
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.