init
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
package venus
|
||||
|
||||
import (
|
||||
"b612.me/astro/basic"
|
||||
"b612.me/astro/planet"
|
||||
)
|
||||
|
||||
/*
|
||||
金星视黄经
|
||||
jde: 世界时UTC
|
||||
*/
|
||||
func SeeLo(jde float64) float64 {
|
||||
return basic.VenusSeeLo(basic.TD2UT(jde, true))
|
||||
}
|
||||
|
||||
/*
|
||||
金星视黄纬
|
||||
jde: 世界时UTC
|
||||
*/
|
||||
func SeeBo(jde float64) float64 {
|
||||
return basic.VenusSeeBo(basic.TD2UT(jde, true))
|
||||
}
|
||||
|
||||
/*
|
||||
金星视赤经
|
||||
jde: 世界时UTC
|
||||
*/
|
||||
func SeeRa(jde float64) float64 {
|
||||
return basic.VenusSeeRa(basic.TD2UT(jde, true))
|
||||
}
|
||||
|
||||
/*
|
||||
金星视赤纬
|
||||
jde: 世界时UTC
|
||||
*/
|
||||
func SeeDec(jde float64) float64 {
|
||||
return basic.VenusSeeDec(basic.TD2UT(jde, true))
|
||||
}
|
||||
|
||||
/*
|
||||
金星视赤经赤纬
|
||||
jde: 世界时UTC
|
||||
*/
|
||||
func SeeRaDec(jde float64) (float64, float64) {
|
||||
return basic.VenusSeeRaDec(basic.TD2UT(jde, true))
|
||||
}
|
||||
|
||||
/*
|
||||
金星视星等
|
||||
jde: 世界时UTC
|
||||
*/
|
||||
func SeeMag(jde float64) float64 {
|
||||
return basic.VenusMag(basic.TD2UT(jde, true))
|
||||
}
|
||||
|
||||
/*
|
||||
与地球距离(天文单位)
|
||||
jde: 世界时UTC
|
||||
*/
|
||||
func EarthAway(jde float64) float64 {
|
||||
return basic.EarthVenusAway(basic.TD2UT(jde, true))
|
||||
}
|
||||
|
||||
/*
|
||||
与太阳距离(天文单位)
|
||||
jde: 世界时UTC
|
||||
*/
|
||||
func SunAway(jde float64) float64 {
|
||||
return planet.WherePlanet(1, 2, basic.TD2UT(jde, true))
|
||||
}
|
||||
Reference in New Issue
Block a user