saturn

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERR_SATURN_NEVER_RISE = errors.New("ERROR:极夜,木星今日永远在地平线下!")
	ERR_SATURN_NEVER_SET  = errors.New("ERROR:极昼,木星今日永远在地平线上!")
	// ERR_SATURN_NEVER_DOWN deprecated: -- use ERR_SATURN_NEVER_SET instead
	ERR_SATURN_NEVER_DOWN = ERR_SATURN_NEVER_SET
)

Functions

func ApparentBo

func ApparentBo(date time.Time) float64

ApparentBo 视黄纬

func ApparentDec

func ApparentDec(date time.Time) float64

ApparentDec 视赤纬

func ApparentLo

func ApparentLo(date time.Time) float64

ApparentLo 视黄经

func ApparentMagnitude

func ApparentMagnitude(date time.Time) float64

ApparentMagnitude 视星等

func ApparentRa

func ApparentRa(date time.Time) float64

ApparentRa 视赤经

func ApparentRaDec

func ApparentRaDec(date time.Time) (float64, float64)

ApparentRaDec 视赤经赤纬

func Azimuth

func Azimuth(date time.Time, lon, lat float64) float64

Azimuth 方位角

func CulminationTime

func CulminationTime(date time.Time, lon float64) time.Time

CulminationTime 中天时间 返回给定经纬度、对应date时区date时刻的中天日期

func DownTime

func DownTime(date time.Time, lon, lat, height float64, aero bool) (time.Time, error)

deprecated: -- use SetTime instead DownTime 落下时间 date,取日期,时区忽略 lon,经度,东正西负 lat,纬度,北正南负 height,高度 aero,true时进行大气修正

func EarthDistance

func EarthDistance(date time.Time) float64

EarthDistance 与地球距离(天文单位)

func HourAngle

func HourAngle(date time.Time, lon float64) float64

HourAngle 时角 返回给定经纬度、对应date时区date时刻的时角(

func LastConjunction

func LastConjunction(date time.Time) time.Time

LastConjunction 上次合日时间 返回上次合日时间

func LastEasternQuadrature

func LastEasternQuadrature(date time.Time) time.Time

LastEasternQuadrature 上次东方照时间 返回上次东方照时间

func LastOpposition

func LastOpposition(date time.Time) time.Time

LastOpposition 上次冲日时间 返回上次冲日时间

func LastProgradeToRetrograde

func LastProgradeToRetrograde(date time.Time) time.Time

LastProgradeToRetrograde 上次留(顺转逆) 返回上次顺转逆留的时间

func LastRetrogradeToPrograde

func LastRetrogradeToPrograde(date time.Time) time.Time

LastRetrogradeToPrograde 上次留(逆转瞬) 返回上次逆转瞬留的时间

func LastWesternQuadrature

func LastWesternQuadrature(date time.Time) time.Time

LastWesternQuadrature 上次西方照时间 返回上次西方照时间

func NextConjunction

func NextConjunction(date time.Time) time.Time

NextConjunction 下次合日时间 返回下次合日时间

func NextEasternQuadrature

func NextEasternQuadrature(date time.Time) time.Time

NextEasternQuadrature 下次东方照时间 返回下次东方照时间

func NextOpposition

func NextOpposition(date time.Time) time.Time

NextOpposition 下次冲日时间 返回下次冲日时间

func NextProgradeToRetrograde

func NextProgradeToRetrograde(date time.Time) time.Time

NextProgradeToRetrograde 下次留(顺转逆) 返回下次顺转逆留的时间

func NextRetrogradeToPrograde

func NextRetrogradeToPrograde(date time.Time) time.Time

NextRetrogradeToPrograde 上次留(逆转瞬) // 返回上次逆转瞬留的时间

func NextWesternQuadrature

func NextWesternQuadrature(date time.Time) time.Time

NextWesternQuadrature 下次西方照时间 返回下次西方照时间

func RiseTime

func RiseTime(date time.Time, lon, lat, height float64, aero bool) (time.Time, error)

RiseTime 升起时间 date,取日期,时区忽略 lon,经度,东正西负 lat,纬度,北正南负 height,高度 aero,true时进行大气修正

func SetTime

func SetTime(date time.Time, lon, lat, height float64, aero bool) (time.Time, error)

SetTime 落下时间 date,取日期,时区忽略 lon,经度,东正西负 lat,纬度,北正南负 height,高度 aero,true时进行大气修正

func SunDistance

func SunDistance(date time.Time) float64

EarthDistance 与太阳距离(天文单位)

func Zenith

func Zenith(date time.Time, lon, lat float64) float64

Zenith 高度角

Types

This section is empty.

Jump to

Keyboard shortcuts

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