astro/basic/star_test.go

28 lines
802 B
Go
Raw Permalink Normal View History

2019-10-24 10:44:21 +08:00
package basic
import (
"fmt"
2019-10-24 10:44:21 +08:00
"testing"
)
2022-05-06 12:42:01 +08:00
func Test_StarHeight(t *testing.T) {
date := GetNowJDE() + 6.0/24.0
fmt.Println(JDE2Date(date))
2022-05-10 22:24:10 +08:00
fmt.Println("Sirius Height:", StarHeight(date, 101.5, -16.8, 115, 40, 8.0))
fmt.Println("Sirius Azimuth:", StarAzimuth(date, 101.5, -16.8, 115, 40, 8.0))
2022-01-04 14:24:44 +08:00
2022-05-06 12:42:01 +08:00
}
2022-05-10 22:24:10 +08:00
func Test_Star(t *testing.T) {
date := GetNowJDE() - 20/24.0
fmt.Println(JDE2Date(date))
fmt.Println("Sirius RiseTime:", JDE2Date(StarRiseTime(date, 101.529, -16.8, 113.568, 22.5, 0, 8.0, true)))
fmt.Println("Sirius CulminationTime:", JDE2Date(StarCulminationTime(date, 101.529, 113.568, 8.0)))
fmt.Println("Sirius DownTime:", JDE2Date(StarDownTime(date, 101.529, -16.8, 113.568, 22.5, 0, 8.0, true)))
}
func TestZB(t *testing.T) {
jde := GetNowJDE()
fmt.Println(LoBoToRaDec(jde, 156, 0))
}