jupiter

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

Jupiter: Chapter 43, Ephemeris for Physical Observations of Jupiter.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Physical

func Physical(jde float64, earth, jupiter *pp.V87Planet) (DS, DE, ω1, ω2, P unit.Angle)

Physical computes quantities for physical observations of Jupiter.

Results:

DS  Planetocentric declination of the Sun.
DE  Planetocentric declination of the Earth.
ω1  Longitude of the System I central meridian of the illuminated disk,
    as seen from Earth.
ω2  Longitude of the System II central meridian of the illuminated disk,
    as seen from Earth.
P   Geocentric position angle of Jupiter's northern rotation pole.
Example
package main

import (
	"fmt"

	"github.com/soniakeys/meeus/v3/jupiter"
	pp "github.com/soniakeys/meeus/v3/planetposition"
)

func main() {
	// Example 43.a, p. 295
	e, err := pp.LoadPlanet(pp.Earth)
	if err != nil {
		fmt.Println(err)
		return
	}
	j, err := pp.LoadPlanet(pp.Jupiter)
	if err != nil {
		fmt.Println(err)
		return
	}
	DS, DE, ω1, ω2, P := jupiter.Physical(2448972.50068, e, j)
	fmt.Printf("DS = %+.2f\n", DS.Deg())
	fmt.Printf("DE = %+.2f\n", DE.Deg())
	fmt.Printf("ω1 = %.2f\n", ω1.Deg())
	fmt.Printf("ω2 = %.2f\n", ω2.Deg())
	fmt.Printf("P = %.2f\n", P.Deg())
}
Output:

DS = -2.20
DE = -2.48
ω1 = 268.06
ω2 = 72.74
P = 24.80

func Physical2

func Physical2(jde float64) (DS, DE, ω1, ω2 unit.Angle)

Physical2 computes quantities for physical observations of Jupiter.

Results are less accurate than with Physical().

Results:

DS  Planetocentric declination of the Sun.
DE  Planetocentric declination of the Earth.
ω1  Longitude of the System I central meridian of the illuminated disk,
    as seen from Earth.
ω2  Longitude of the System II central meridian of the illuminated disk,
    as seen from Earth.

All angular results in radians.

Example
package main

import (
	"fmt"

	"github.com/soniakeys/meeus/v3/jupiter"
)

func main() {
	// Example 43.b, p. 299
	DS, DE, ω1, ω2 := jupiter.Physical2(2448972.50068)
	fmt.Printf("DS = %+.3f\n", DS.Deg())
	fmt.Printf("DE = %+.2f\n", DE.Deg())
	fmt.Printf("ω1 = %.2f\n", ω1.Deg())
	fmt.Printf("ω2 = %.2f\n", ω2.Deg())
}
Output:

DS = -2.194
DE = -2.50
ω1 = 268.12
ω2 = 72.79

Types

This section is empty.

Jump to

Keyboard shortcuts

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