moonphase

package
v3.0.0-...-8217f41 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Moonphase: Chapter 49, Phases of the Moon

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func First

func First(year float64) float64

First returns the jde of First Quarter Moon nearest the given date. 半满上弦月

Year is a decimal year specifying a date.

func Full

func Full(year float64) float64

Full returns the jde of Full Moon nearest the given date. 满月

Year is a decimal year specifying a date.

func Last

func Last(year float64) float64

Last returns the jde of Last Quarter Moon nearest the given date. 半满下弦月

Year is a decimal year specifying a date.

Example
package main

import (
	"fmt"

	"github.com/mooncaker816/learnmeeus/v3/moonphase"
)

func main() {
	// Example 49.b, p. 353.
	fmt.Printf("JDE = %.5f\n", moonphase.Last(2044.04))
}
Output:

JDE = 2467636.49186

func MeanFirst

func MeanFirst(year float64) float64

MeanFirst returns the jde of the mean First Quarter Moon nearest the given date. 平半满上弦月

Year is a decimal year specifying a date.

The mean date is within .5 day of the true date of First Quarter Moon.

func MeanFull

func MeanFull(year float64) float64

MeanFull returns the jde of the mean Full Moon nearest the given date. 平满月

Year is a decimal year specifying a date.

The mean date is within .5 day of the true date of New Moon.

func MeanLast

func MeanLast(year float64) float64

MeanLast returns the jde of the mean Last Quarter Moon nearest the given date. 平半满下弦月

Year is a decimal year specifying a date.

The mean date is within .5 day of the true date of Last Quarter Moon.

Example
package main

import (
	"fmt"

	"github.com/mooncaker816/learnmeeus/v3/moonphase"
)

func main() {
	// Example 49.b, p. 353.
	fmt.Printf("JDE = %.5f\n", moonphase.MeanLast(2044.04))
}
Output:

JDE = 2467636.88597

func MeanNew

func MeanNew(year float64) float64

MeanNew returns the jde of the mean New Moon nearest the given date. 平新月

Year is a decimal year specifying a date.

The mean date is within .5 day of the true date of New Moon.

Example
package main

import (
	"fmt"

	"github.com/mooncaker816/learnmeeus/v3/moonphase"
)

func main() {
	// Example 49.a, p. 353.
	fmt.Printf("JDE = %.5f\n", moonphase.MeanNew(1977.13))
}
Output:

JDE = 2443192.94102

func New

func New(year float64) float64

New returns the jde of New Moon nearest the given date. 新月

Year is a decimal year specifying a date.

Example
package main

import (
	"fmt"

	"github.com/mooncaker816/learnmeeus/v3/moonphase"
)

func main() {
	// Example 49.a, p. 353.
	fmt.Printf("JDE = %.5f\n", moonphase.New(1977.13))
}
Output:

JDE = 2443192.65118

Types

This section is empty.

Jump to

Keyboard shortcuts

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