pluto

package
v3.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Pluto: Chapter 37, Pluto.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Astrometric

func Astrometric(jde float64, e *pp.V87Planet) (α unit.RA, δ unit.Angle)

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

func Heliocentric(jde float64) (l, b unit.Angle, r float64)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL