You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
289 B
Go
16 lines
289 B
Go
4 years ago
|
package star
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"b612.me/astro/basic"
|
||
|
)
|
||
|
|
||
|
// Constellation
|
||
|
// 计算date对应UTC世界时给定Date坐标赤经、赤纬所在的星座
|
||
|
|
||
|
func Constellation(ra, dec float64, date time.Time) string {
|
||
|
jde := basic.Date2JDE(date.UTC())
|
||
|
return basic.WhichCst(ra, dec, jde)
|
||
|
}
|