Documentation
¶
Overview ¶
Moonphase: Chapter 49, Phases of the Moon
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func First ¶
First returns the jde of First Quarter Moon nearest the given date. 半满上弦月
Year is a decimal year specifying a date.
func Full ¶
Full returns the jde of Full Moon nearest the given date. 满月
Year is a decimal year specifying a date.
func Last ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.