basic

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EARTH_EQUATORIAL_RADIUS float64 = 6378137.0
	EARTH_POLAR_RADIUS      float64 = 6356752.3
	EARTH_AVERAGE_RADIUS    float64 = 6371393.0
)
View Source
const (
	AS2R = 4.848136811095359935899141e-6 // 角秒到弧度的转换因子
	D2PI = 6.283185307179586476925287    // 2π
	EPS0 = 84381.406 * AS2R              // J2000.0历元的黄赤交角(弧度)
)

常量定义

View Source
const (
	JUPITER_S_PERIOD = 1 / ((1 / 365.256363004) - (1 / 4332.59))
)
View Source
const (
	MARS_S_PERIOD = 1 / ((1 / 365.256363004) - (1 / 686.98))
)
View Source
const (
	MERCURY_S_PERIOD = 1 / ((1 / 87.9691) - (1 / 365.256363004))
)
View Source
const (
	NEPTUNE_S_PERIOD = 1 / ((1 / 365.256363004) - (1 / 60190.03))
)
View Source
const (
	SATURN_S_PERIOD = 1 / ((1 / 365.256363004) - (1 / 10759.0))
)
View Source
const (
	URANUS_S_PERIOD = 1 / ((1 / 365.256363004) - (1 / 30799.095))
)
View Source
const (
	VENUS_S_PERIOD = 1 / ((1 / 224.701) - (1 / 365.256363004))
)

Variables

View Source
var (
	ErrNeverRise     = errors.New("rise event does not occur on this date")
	ErrNeverSet      = errors.New("set event does not occur on this date")
	ErrNotOnThisDate = errors.New("rise/set event occurs on adjacent date")
)
View Source
var ErrInvalidCivilDate = errors.New("invalid civil date")

Functions

func AJupiterX

func AJupiterX(jd float64) float64

func AJupiterXYZ

func AJupiterXYZ(jd float64) (float64, float64, float64)

func AJupiterY

func AJupiterY(jd float64) float64

func AJupiterZ

func AJupiterZ(jd float64) float64

func AMarsX

func AMarsX(jd float64) float64

func AMarsXYZ

func AMarsXYZ(jd float64) (float64, float64, float64)

func AMarsY

func AMarsY(jd float64) float64

func AMarsZ

func AMarsZ(jd float64) float64

func AMercuryX

func AMercuryX(jd float64) float64

func AMercuryXYZ

func AMercuryXYZ(jd float64) (float64, float64, float64)

func AMercuryY

func AMercuryY(jd float64) float64

func AMercuryZ

func AMercuryZ(jd float64) float64

func ANeptuneX

func ANeptuneX(jd float64) float64

func ANeptuneXYZ

func ANeptuneXYZ(jd float64) (float64, float64, float64)

func ANeptuneY

func ANeptuneY(jd float64) float64

func ANeptuneZ

func ANeptuneZ(jd float64) float64

func ASaturnX

func ASaturnX(jd float64) float64

func ASaturnXYZ

func ASaturnXYZ(jd float64) (float64, float64, float64)

func ASaturnY

func ASaturnY(jd float64) float64

func ASaturnZ

func ASaturnZ(jd float64) float64

func AUranusX

func AUranusX(jd float64) float64

func AUranusXYZ

func AUranusXYZ(jd float64) (float64, float64, float64)

func AUranusY

func AUranusY(jd float64) float64

func AUranusZ

func AUranusZ(jd float64) float64

func AVenusX

func AVenusX(jd float64) float64

func AVenusXYZ

func AVenusXYZ(jd float64) (float64, float64, float64)

func AVenusY

func AVenusY(jd float64) float64

func AVenusZ

func AVenusZ(jd float64) float64

func ApparentAltitude

func ApparentAltitude(trueAltitude, pressureHPa, temperatureC float64) float64

ApparentAltitude 视高度角,单位度;输入为真高度角。

func ApparentSiderealTime

func ApparentSiderealTime(jd float64) float64

ApparentSiderealTime 视恒星时,计算章动

func ApparentSiderealTime1982

func ApparentSiderealTime1982(jd float64) float64

ApparentSiderealTime1982 视恒星时,计算章动

func ApparentSiderealTime2006

func ApparentSiderealTime2006(jd float64) float64

ApparentSiderealTime2006 视恒星时,计算章动

func BoToDec

func BoToDec(jde, lo, bo float64) float64

func CalcMoonS

func CalcMoonS(year float64, phaseType int) float64

* C=0朔月时刻 =1 望月

func CalcMoonSH

func CalcMoonSH(year float64, phaseType int) float64

func CalcMoonSHByJDE

func CalcMoonSHByJDE(jde float64, phaseType int) float64

func CalcMoonX

func CalcMoonX(year float64, quarterType int) float64

func CalcMoonXH

func CalcMoonXH(year float64, quarterType int) float64

func CalcMoonXHByJDE

func CalcMoonXHByJDE(jde float64, quarterType int) float64

func ClosestMoonPlanetConjunction added in v0.1.4

func ClosestMoonPlanetConjunction(jde float64, planet MoonPlanetConjunctionPlanet) float64

ClosestMoonPlanetConjunction 离指定时刻最近一次行星合月(赤经合) / closest Moon-planet conjunction to jde.

func ConstellationCode

func ConstellationCode(ra, dec, jde float64) string

ConstellationCode returns the IAU constellation code / 返回 IAU 星座代码。

func ConstellationNameByCodeEN

func ConstellationNameByCodeEN(code string) string

ConstellationNameByCodeEN returns the English name for a code / 返回星座代码对应的英文名。

func ConstellationNameByCodeZH

func ConstellationNameByCodeZH(code string) string

ConstellationNameByCodeZH returns the Chinese name for a code / 返回星座代码对应的中文名。

func ConstellationNameEN

func ConstellationNameEN(ra, dec, jde float64) string

ConstellationNameEN returns the English constellation name / 返回英文星座名。

func ConstellationNameZH

func ConstellationNameZH(ra, dec, jde float64) string

func CulminationTime

func CulminationTime(jd, lon, tz float64) float64

太阳中天时刻,通过均时差计算

func CulminationTimeN

func CulminationTimeN(jd, lon, tz float64, n int) float64

func Date2JDE

func Date2JDE(date time.Time) float64

Date2JDE 日期转儒略日

func DecToBo

func DecToBo(jde, ra, dec float64) float64

func DefaultDeltaTv2

func DefaultDeltaTv2(date float64, isJd bool) float64

func DeltaT

func DeltaT(date float64, isJDE bool) float64

func DeltaTSplineY

func DeltaTSplineY(y float64) float64

使用Stephenson等人(2016)和Morrison等人(2021)的拟合和外推公式计算Delta T http://astro.ukho.gov.uk/nao/lvm/ 2010年后的系数已修改以包含2019年后的数据 返回Delta T,单位为秒

func DeltaTv2

func DeltaTv2(jd float64) float64

func Distance

func Distance(jd float64) float64

func EarthAway

func EarthAway(jd float64) float64

func EarthAwayN

func EarthAwayN(jd float64, n int) float64

func EarthJupiterAway

func EarthJupiterAway(jd float64) float64

func EarthJupiterAwayN

func EarthJupiterAwayN(jd float64, n int) float64

EarthJupiterAwayN 地木距离(截断版) / truncated Earth-Jupiter distance.

func EarthMarsAway

func EarthMarsAway(jd float64) float64

func EarthMarsAwayN

func EarthMarsAwayN(jd float64, n int) float64

EarthMarsAwayN 地火距离(截断版) / truncated Earth-Mars distance.

func EarthMercuryAway

func EarthMercuryAway(jd float64) float64

func EarthMercuryAwayN

func EarthMercuryAwayN(jd float64, n int) float64

EarthMercuryAwayN 地水距离(截断版) / truncated Earth-Mercury distance.

func EarthNeptuneAway

func EarthNeptuneAway(jd float64) float64

func EarthNeptuneAwayN

func EarthNeptuneAwayN(jd float64, n int) float64

EarthNeptuneAwayN 地海距离(截断版) / truncated Earth-Neptune distance.

func EarthPI

func EarthPI(jd float64) float64

func EarthRotationAngle

func EarthRotationAngle(jd_ut1 float64) float64

EarthRotationAngle 计算地球自转角 (ERA) jd_ut1: UT1 时间的儒略日 返回值: 地球自转角 (弧度)

func EarthSaturnAway

func EarthSaturnAway(jd float64) float64

func EarthSaturnAwayN

func EarthSaturnAwayN(jd float64, n int) float64

EarthSaturnAwayN 地土距离(截断版) / truncated Earth-Saturn distance.

func EarthUranusAway

func EarthUranusAway(jd float64) float64

func EarthUranusAwayN

func EarthUranusAwayN(jd float64, n int) float64

EarthUranusAwayN 地天距离(截断版) / truncated Earth-Uranus distance.

func EarthVenusAway

func EarthVenusAway(jd float64) float64

func EarthVenusAwayN

func EarthVenusAwayN(jd float64, n int) float64

EarthVenusAwayN 地金距离(截断版) / truncated Earth-Venus distance.

func Earthe

func Earthe(jd float64) float64

@name 地球偏心率

func EclipticObliquity

func EclipticObliquity(jde float64, nutation bool) float64

黄赤交角、nutation==true时,计算交角章动

func EveningTwilight

func EveningTwilight(jd, lon, lat, tz, targetAltitude float64) (float64, error)

* 昏朦影传入 当天0时时刻

func EveningTwilightN

func EveningTwilightN(jd, lon, lat, tz, targetAltitude float64, n int) (float64, error)

func GXCBo

func GXCBo(lo, bo, jd float64) float64

func GXCLo

func GXCLo(lo, bo, jd float64) float64

func GeocentricRadius

func GeocentricRadius(lat float64) float64

GeocentricRadius 地心直径与纬度的关系

func GetDeltaTFn

func GetDeltaTFn() func(float64, bool) float64

func GetGanZhi

func GetGanZhi(year int) string

GetGanZhi 年干支 / ganzhi for a year number.

func GetJQTime

func GetJQTime(year, angle int) float64

func GetJieqiLoops

func GetJieqiLoops(year, loop int) []float64

func GetLunar

func GetLunar(year, month, day int, tz float64) (lyear, lmonth, lday int, leap bool, result string)

func GetMoonCir

func GetMoonCir() [][][]float64

func GetMoonLoops

func GetMoonLoops(year float64, loop int) []float64

func GetMoonRiseTime

func GetMoonRiseTime(julianDay, longitude, latitude, timeZone, zenithShift, height float64) (float64, error)

func GetMoonSetTime

func GetMoonSetTime(julianDay, longitude, latitude, timeZone, zenithShift, height float64) (float64, error)

func GetMoonTZTime

func GetMoonTZTime(jd, lon, lat, tz float64) float64

废弃

func GetNowJDE

func GetNowJDE() (nowJDE float64)

@name: 获得当前儒略日时间:当地世界时,非格林尼治时间

func GetShiErCi

func GetShiErCi(jd float64) string

GetShiErCi 十二次 / twelve divisions of the ecliptic in traditional Chinese astronomy.

func GetSolar

func GetSolar(year, month, day int, leap bool, tz float64) float64

func GetSunRiseTime

func GetSunRiseTime(julianDay, longitude, latitude, timeZone, zenithShift, height float64) (float64, error)

GetSunRiseTime 精确计算日出时间,传入当日0时JDE

func GetSunRiseTimeN

func GetSunRiseTimeN(julianDay, longitude, latitude, timeZone, zenithShift, height float64, n int) (float64, error)

func GetSunSetTime

func GetSunSetTime(julianDay, longitude, latitude, timeZone, zenithShift, height float64) (float64, error)

GetSunSetTime 精确计算日落时间,传入当日0时JDE

func GetSunSetTimeN

func GetSunSetTimeN(julianDay, longitude, latitude, timeZone, zenithShift, height float64, n int) (float64, error)

func GetWuHouTime

func GetWuHouTime(Year, Angle int) float64

GetWuHouTime 七十二候时刻 / time of a pentad marker in traditional Chinese calendrics.

func HMoonApparentDec

func HMoonApparentDec(jd, lon, lat, tz float64) float64

func HMoonApparentDecN

func HMoonApparentDecN(jd, lon, lat, tz float64, n int) float64

func HMoonApparentLo

func HMoonApparentLo(jd float64) float64

* @name 月球视黄经

func HMoonApparentLoN

func HMoonApparentLoN(jd float64, n int) float64

func HMoonApparentRa

func HMoonApparentRa(jd, lon, lat, tz float64) float64

func HMoonApparentRaDec

func HMoonApparentRaDec(jd, lon, lat, tz float64) (float64, float64)

* * 传入世界时

func HMoonApparentRaDecN

func HMoonApparentRaDecN(jd, lon, lat, tz float64, n int) (float64, float64)

func HMoonApparentRaN

func HMoonApparentRaN(jd, lon, lat, tz float64, n int) float64

func HMoonAway

func HMoonAway(jd float64) float64

func HMoonAwayN

func HMoonAwayN(jd float64, n int) float64

func HMoonAzimuth

func HMoonAzimuth(jd, lon, lat, tz float64) float64

func HMoonAzimuthN

func HMoonAzimuthN(jd, lon, lat, tz float64, n int) float64

func HMoonGeocentricApparentDec added in v0.1.4

func HMoonGeocentricApparentDec(jd float64) float64

HMoonGeocentricApparentDec 月亮地心视赤纬 / apparent geocentric declination of the Moon.

func HMoonGeocentricApparentDecN added in v0.1.4

func HMoonGeocentricApparentDecN(jd float64, n int) float64

HMoonGeocentricApparentDecN 月亮地心视赤纬(截断版) / truncated apparent geocentric declination of the Moon.

func HMoonGeocentricApparentRa added in v0.1.4

func HMoonGeocentricApparentRa(jd float64) float64

HMoonGeocentricApparentRa 月亮地心视赤经 / apparent geocentric right ascension of the Moon.

func HMoonGeocentricApparentRaDec added in v0.1.4

func HMoonGeocentricApparentRaDec(jd float64) (float64, float64)

HMoonGeocentricApparentRaDec 月亮地心视赤经、视赤纬 / apparent geocentric right ascension and declination of the Moon.

func HMoonGeocentricApparentRaDecN added in v0.1.4

func HMoonGeocentricApparentRaDecN(jd float64, n int) (float64, float64)

HMoonGeocentricApparentRaDecN 月亮地心视赤经、视赤纬(截断版) / truncated apparent geocentric right ascension and declination of the Moon.

func HMoonGeocentricApparentRaN added in v0.1.4

func HMoonGeocentricApparentRaN(jd float64, n int) float64

HMoonGeocentricApparentRaN 月亮地心视赤经(截断版) / truncated apparent geocentric right ascension of the Moon.

func HMoonGeocentricTrueDec added in v0.1.4

func HMoonGeocentricTrueDec(jd float64) float64

HMoonGeocentricTrueDec 月亮地心真赤纬 / true geocentric declination of the Moon.

func HMoonGeocentricTrueDecN added in v0.1.4

func HMoonGeocentricTrueDecN(jd float64, n int) float64

HMoonGeocentricTrueDecN 月亮地心真赤纬(截断版) / truncated true geocentric declination of the Moon.

func HMoonGeocentricTrueRa added in v0.1.4

func HMoonGeocentricTrueRa(jd float64) float64

HMoonGeocentricTrueRa 月亮地心真赤经 / true geocentric right ascension of the Moon.

func HMoonGeocentricTrueRaDec added in v0.1.4

func HMoonGeocentricTrueRaDec(jd float64) (float64, float64)

HMoonGeocentricTrueRaDec 月亮地心真赤经、真赤纬 / true geocentric right ascension and declination of the Moon.

func HMoonGeocentricTrueRaDecN added in v0.1.4

func HMoonGeocentricTrueRaDecN(jd float64, n int) (float64, float64)

HMoonGeocentricTrueRaDecN 月亮地心真赤经、真赤纬(截断版) / truncated true geocentric right ascension and declination of the Moon.

func HMoonGeocentricTrueRaN added in v0.1.4

func HMoonGeocentricTrueRaN(jd float64, n int) float64

HMoonGeocentricTrueRaN 月亮地心真赤经(截断版) / truncated true geocentric right ascension of the Moon.

func HMoonHeight

func HMoonHeight(jd, lon, lat, tz float64) float64

func HMoonHeightN

func HMoonHeightN(jd, lon, lat, tz float64, n int) float64

func HMoonTrueBo

func HMoonTrueBo(jd float64) float64

func HMoonTrueBoN

func HMoonTrueBoN(jd float64, n int) float64

func HMoonTrueDec

func HMoonTrueDec(jd float64) float64

* 月球真赤纬

func HMoonTrueDecN

func HMoonTrueDecN(jd float64, n int) float64

func HMoonTrueLo

func HMoonTrueLo(jd float64) float64

func HMoonTrueLoN

func HMoonTrueLoN(jd float64, n int) float64

func HMoonTrueRa

func HMoonTrueRa(jd float64) float64

* 月球真赤经

func HMoonTrueRaDec

func HMoonTrueRaDec(jd float64) (float64, float64)

func HMoonTrueRaDecN

func HMoonTrueRaDecN(jd float64, n int) (float64, float64)

func HMoonTrueRaN

func HMoonTrueRaN(jd float64, n int) float64

func HSunApparentDec

func HSunApparentDec(jd float64) float64

func HSunApparentDecN

func HSunApparentDecN(jd float64, n int) float64

func HSunApparentLo

func HSunApparentLo(jd float64) float64

func HSunApparentLoN

func HSunApparentLoN(jd float64, n int) float64

func HSunApparentRa

func HSunApparentRa(jd float64) float64

func HSunApparentRaDec

func HSunApparentRaDec(jd float64) (float64, float64)

func HSunApparentRaDecN

func HSunApparentRaDecN(jd float64, n int) (float64, float64)

func HSunApparentRaN

func HSunApparentRaN(jd float64, n int) float64

func HSunTrueBo

func HSunTrueBo(jd float64) float64

func HSunTrueBoN

func HSunTrueBoN(jd float64, n int) float64

HSunTrueBoN 高精度太阳真黄纬,n<0 时取全量 VSOP 项。

func HSunTrueDec

func HSunTrueDec(jd float64) float64

func HSunTrueDecN

func HSunTrueDecN(jd float64, n int) float64

func HSunTrueLo

func HSunTrueLo(jd float64) float64

高精度,使用VSOP87

func HSunTrueLoN

func HSunTrueLoN(jd float64, n int) float64

HSunTrueLoN 高精度太阳真黄经,n<0 时取全量 VSOP 项。

func HSunTrueRa

func HSunTrueRa(jd float64) float64

func HSunTrueRaN

func HSunTrueRaN(jd float64, n int) float64

func HeightDegree

func HeightDegree(height float64) float64

HeightDistance 高度(单位:米)与地平线下角度的关系(单位:度)

func HeightDegreeByLat

func HeightDegreeByLat(height, lat float64) float64

HeightDegreeByLat 不同纬度下高度(单位:米)与地平线下角度的关系(单位:度)

func HeightDistance

func HeightDistance(height float64) float64

HeightDistance 高度与地平线距离的关系(单位:米)

func HeightDistanceByLat

func HeightDistanceByLat(height, lat float64) float64

HeightDistanceByLat 不同纬度下高度与地平线距离的关系(单位:米)

func JDE2Date

func JDE2Date(jd float64) time.Time

func JDE2DateByZone

func JDE2DateByZone(jd float64, tz *time.Location, byZone bool) time.Time

JDE2DateByZone JDE(儒略日)转日期 jd: 儒略日 tz: 目标时区 byZone: (true: 传入的儒略日视为目标时区当地时间的儒略日,false: 传入的儒略日视为UTC时间的儒略日) 回参:转换后的日期,时区始终为目标时区

func JDECalc

func JDECalc(year, month int, day float64) float64

@name: 儒略日计算 @dec: 计算给定时间的儒略日,1582年改力后为格里高利历,之前为儒略历 @ 请注意,传入的时间在天文计算中一般为力学时,应当注意和世界时的转化

func JQLospec

func JQLospec(jd float64, target float64) float64

func JupiterApparentBo

func JupiterApparentBo(jd float64) float64

func JupiterApparentBoN

func JupiterApparentBoN(jd float64, n int) float64

JupiterApparentBoN 木星视黄纬(截断版) / truncated apparent ecliptic latitude of Jupiter.

func JupiterApparentDec

func JupiterApparentDec(jd float64) float64

func JupiterApparentDecN

func JupiterApparentDecN(jd float64, n int) float64

JupiterApparentDecN 木星视赤纬(截断版) / truncated apparent declination of Jupiter.

func JupiterApparentLo

func JupiterApparentLo(jd float64) float64

func JupiterApparentLoBo

func JupiterApparentLoBo(jd float64) (float64, float64)

func JupiterApparentLoBoN

func JupiterApparentLoBoN(jd float64, n int) (float64, float64)

JupiterApparentLoBoN 木星视黄经黄纬(截断版) / truncated apparent ecliptic longitude and latitude of Jupiter.

func JupiterApparentLoN

func JupiterApparentLoN(jd float64, n int) float64

JupiterApparentLoN 木星视黄经(截断版) / truncated apparent ecliptic longitude of Jupiter.

func JupiterApparentRa

func JupiterApparentRa(jd float64) float64

func JupiterApparentRaDec

func JupiterApparentRaDec(jd float64) (float64, float64)

func JupiterApparentRaDecN

func JupiterApparentRaDecN(jd float64, n int) (float64, float64)

JupiterApparentRaDecN 木星视赤经赤纬(截断版) / truncated apparent right ascension and declination of Jupiter.

func JupiterApparentRaN

func JupiterApparentRaN(jd float64, n int) float64

JupiterApparentRaN 木星视赤经(截断版) / truncated apparent right ascension of Jupiter.

func JupiterAscendingNode

func JupiterAscendingNode(jd float64) float64

JupiterAscendingNode 木星升交点黄经 / ascending node longitude of Jupiter.

func JupiterAscendingNodeN

func JupiterAscendingNodeN(jd float64, n int) float64

JupiterAscendingNodeN 木星升交点黄经(截断版) / truncated ascending node longitude of Jupiter.

func JupiterAzimuth

func JupiterAzimuth(jde, lon, lat, timezone float64) float64

func JupiterAzimuthN

func JupiterAzimuthN(jde, lon, lat, timezone float64, n int) float64

JupiterAzimuthN 木星方位角(截断版) / truncated azimuth of Jupiter.

func JupiterB

func JupiterB(jd float64) float64

func JupiterBrightLimbPositionAngle

func JupiterBrightLimbPositionAngle(jd float64) float64

JupiterBrightLimbPositionAngle 木星亮面中心位置角 / position angle of Jupiter bright limb.

func JupiterBrightLimbPositionAngleN

func JupiterBrightLimbPositionAngleN(jd float64, n int) float64

JupiterBrightLimbPositionAngleN 木星亮面中心位置角(截断版) / truncated position angle of Jupiter bright limb.

func JupiterCulminationTime

func JupiterCulminationTime(jde, lon, timezone float64) float64

func JupiterCulminationTimeN

func JupiterCulminationTimeN(jde, lon, timezone float64, n int) float64

JupiterCulminationTimeN 木星中天时间(截断版) / truncated culmination time of Jupiter.

func JupiterDSDE

func JupiterDSDE(jd float64) (ds, de float64)

JupiterDSDE 木星 DS/DE 行星中心赤纬 / Jupiter planetocentric declinations of Sun and Earth.

func JupiterDSDEN

func JupiterDSDEN(jd float64, n int) (ds, de float64)

JupiterDSDEN 木星 DS/DE 行星中心赤纬(截断版) / truncated Jupiter planetocentric declinations of Sun and Earth.

func JupiterDescendingNode

func JupiterDescendingNode(jd float64) float64

JupiterDescendingNode 木星降交点黄经 / descending node longitude of Jupiter.

func JupiterDescendingNodeN

func JupiterDescendingNodeN(jd float64, n int) float64

JupiterDescendingNodeN 木星降交点黄经(截断版) / truncated descending node longitude of Jupiter.

func JupiterDiameter

func JupiterDiameter(jd float64) float64

JupiterDiameter 木星视直径,单位角秒 / apparent Jupiter diameter in arcseconds.

func JupiterDiameterN

func JupiterDiameterN(jd float64, n int) float64

JupiterDiameterN 木星视直径(截断版),单位角秒 / truncated apparent Jupiter diameter in arcseconds.

func JupiterHeight

func JupiterHeight(jde, lon, lat, timezone float64) float64

func JupiterHeightN

func JupiterHeightN(jde, lon, lat, timezone float64, n int) float64

JupiterHeightN 木星高度角(截断版) / truncated altitude of Jupiter.

func JupiterHourAngle

func JupiterHourAngle(jd, lon, timezone float64) float64

func JupiterHourAngleN

func JupiterHourAngleN(jd, lon, timezone float64, n int) float64

JupiterHourAngleN 木星时角(截断版) / truncated hour angle of Jupiter.

func JupiterIlluminatedFraction

func JupiterIlluminatedFraction(jd float64) float64

JupiterIlluminatedFraction 木星被照亮比例 / illuminated fraction of Jupiter.

func JupiterIlluminatedFractionN

func JupiterIlluminatedFractionN(jd float64, n int) float64

JupiterIlluminatedFractionN 木星被照亮比例(截断版) / truncated illuminated fraction of Jupiter.

func JupiterL

func JupiterL(jd float64) float64

func JupiterMag

func JupiterMag(jd float64) float64

func JupiterMagN

func JupiterMagN(jd float64, n int) float64

JupiterMagN 木星视星等(截断版) / truncated apparent magnitude of Jupiter.

func JupiterPhaseAngle

func JupiterPhaseAngle(jd float64) float64

JupiterPhaseAngle 木星相位角 / phase angle of Jupiter.

func JupiterPhaseAngleN

func JupiterPhaseAngleN(jd float64, n int) float64

JupiterPhaseAngleN 木星相位角(截断版) / truncated phase angle of Jupiter.

func JupiterR

func JupiterR(jd float64) float64

func JupiterRiseTime

func JupiterRiseTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func JupiterRiseTimeN

func JupiterRiseTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

JupiterRiseTimeN 木星升起时间(截断版) / truncated rise time of Jupiter.

func JupiterSemidiameter

func JupiterSemidiameter(jd float64) float64

JupiterSemidiameter 木星视半径,单位角秒 / apparent Jupiter semidiameter in arcseconds.

func JupiterSemidiameterN

func JupiterSemidiameterN(jd float64, n int) float64

JupiterSemidiameterN 木星视半径(截断版),单位角秒 / truncated apparent Jupiter semidiameter in arcseconds.

func JupiterSetTime

func JupiterSetTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func JupiterSetTimeN

func JupiterSetTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

JupiterSetTimeN 木星落下时间(截断版) / truncated set time of Jupiter.

func LastJupiterConjunction

func LastJupiterConjunction(jde float64) float64

func LastJupiterEasternQuadrature

func LastJupiterEasternQuadrature(jde float64) float64

func LastJupiterOpposition

func LastJupiterOpposition(jde float64) float64

func LastJupiterProgradeToRetrograde

func LastJupiterProgradeToRetrograde(jde float64) float64

func LastJupiterRetrogradeToPrograde

func LastJupiterRetrogradeToPrograde(jde float64) float64

func LastJupiterWesternQuadrature

func LastJupiterWesternQuadrature(jde float64) float64

func LastMarsConjunction

func LastMarsConjunction(jde float64) float64

func LastMarsEasternQuadrature

func LastMarsEasternQuadrature(jde float64) float64

func LastMarsOpposition

func LastMarsOpposition(jde float64) float64

func LastMarsProgradeToRetrograde

func LastMarsProgradeToRetrograde(jde float64) float64

func LastMarsRetrogradeToPrograde

func LastMarsRetrogradeToPrograde(jde float64) float64

func LastMarsWesternQuadrature

func LastMarsWesternQuadrature(jde float64) float64

func LastMercuryConjunction

func LastMercuryConjunction(jde float64) float64

func LastMercuryConjunctionStrict added in v0.1.3

func LastMercuryConjunctionStrict(jde float64) float64

func LastMercuryGreatestElongation

func LastMercuryGreatestElongation(jde float64) float64

func LastMercuryGreatestElongationEast

func LastMercuryGreatestElongationEast(jde float64) float64

func LastMercuryGreatestElongationEastInclusive added in v0.1.3

func LastMercuryGreatestElongationEastInclusive(jde float64) float64

func LastMercuryGreatestElongationInclusive added in v0.1.3

func LastMercuryGreatestElongationInclusive(jde float64) float64

func LastMercuryGreatestElongationWest

func LastMercuryGreatestElongationWest(jde float64) float64

func LastMercuryGreatestElongationWestInclusive added in v0.1.3

func LastMercuryGreatestElongationWestInclusive(jde float64) float64

func LastMercuryInferiorConjunction

func LastMercuryInferiorConjunction(jde float64) float64

func LastMercuryInferiorConjunctionInclusive added in v0.1.3

func LastMercuryInferiorConjunctionInclusive(jde float64) float64

func LastMercuryProgradeToRetrograde

func LastMercuryProgradeToRetrograde(jde float64) float64

func LastMercuryProgradeToRetrogradeInclusive added in v0.1.3

func LastMercuryProgradeToRetrogradeInclusive(jde float64) float64

func LastMercuryRetrograde

func LastMercuryRetrograde(jde float64) float64

func LastMercuryRetrogradeInclusive added in v0.1.3

func LastMercuryRetrogradeInclusive(jde float64) float64

func LastMercuryRetrogradeStrict added in v0.1.3

func LastMercuryRetrogradeStrict(jde float64) float64

func LastMercuryRetrogradeToPrograde

func LastMercuryRetrogradeToPrograde(jde float64) float64

func LastMercuryRetrogradeToProgradeInclusive added in v0.1.3

func LastMercuryRetrogradeToProgradeInclusive(jde float64) float64

func LastMercurySuperiorConjunction

func LastMercurySuperiorConjunction(jde float64) float64

func LastMercurySuperiorConjunctionInclusive added in v0.1.3

func LastMercurySuperiorConjunctionInclusive(jde float64) float64

func LastMoonPlanetConjunction added in v0.1.4

func LastMoonPlanetConjunction(jde float64, planet MoonPlanetConjunctionPlanet) float64

LastMoonPlanetConjunction 指定时刻之前最近一次行星合月(赤经合) / previous Moon-planet conjunction at or before jde.

func LastNeptuneConjunction

func LastNeptuneConjunction(jde float64) float64

func LastNeptuneEasternQuadrature

func LastNeptuneEasternQuadrature(jde float64) float64

func LastNeptuneOpposition

func LastNeptuneOpposition(jde float64) float64

func LastNeptuneProgradeToRetrograde

func LastNeptuneProgradeToRetrograde(jde float64) float64

func LastNeptuneRetrogradeToPrograde

func LastNeptuneRetrogradeToPrograde(jde float64) float64

func LastNeptuneWesternQuadrature

func LastNeptuneWesternQuadrature(jde float64) float64

func LastSaturnConjunction

func LastSaturnConjunction(jde float64) float64

func LastSaturnEasternQuadrature

func LastSaturnEasternQuadrature(jde float64) float64

func LastSaturnOpposition

func LastSaturnOpposition(jde float64) float64

func LastSaturnProgradeToRetrograde

func LastSaturnProgradeToRetrograde(jde float64) float64

func LastSaturnRetrogradeToPrograde

func LastSaturnRetrogradeToPrograde(jde float64) float64

func LastSaturnWesternQuadrature

func LastSaturnWesternQuadrature(jde float64) float64

func LastUranusConjunction

func LastUranusConjunction(jde float64) float64

func LastUranusEasternQuadrature

func LastUranusEasternQuadrature(jde float64) float64

func LastUranusOpposition

func LastUranusOpposition(jde float64) float64

func LastUranusProgradeToRetrograde

func LastUranusProgradeToRetrograde(jde float64) float64

func LastUranusRetrogradeToPrograde

func LastUranusRetrogradeToPrograde(jde float64) float64

func LastUranusWesternQuadrature

func LastUranusWesternQuadrature(jde float64) float64

func LastVenusConjunction

func LastVenusConjunction(jde float64) float64

func LastVenusConjunctionStrict added in v0.1.3

func LastVenusConjunctionStrict(jde float64) float64

func LastVenusGreatestElongation

func LastVenusGreatestElongation(jde float64) float64

func LastVenusGreatestElongationEast

func LastVenusGreatestElongationEast(jde float64) float64

func LastVenusGreatestElongationEastInclusive added in v0.1.3

func LastVenusGreatestElongationEastInclusive(jde float64) float64

func LastVenusGreatestElongationInclusive added in v0.1.3

func LastVenusGreatestElongationInclusive(jde float64) float64

func LastVenusGreatestElongationWest

func LastVenusGreatestElongationWest(jde float64) float64

func LastVenusGreatestElongationWestInclusive added in v0.1.3

func LastVenusGreatestElongationWestInclusive(jde float64) float64

func LastVenusInferiorConjunction

func LastVenusInferiorConjunction(jde float64) float64

func LastVenusInferiorConjunctionInclusive added in v0.1.3

func LastVenusInferiorConjunctionInclusive(jde float64) float64

func LastVenusProgradeToRetrograde

func LastVenusProgradeToRetrograde(jde float64) float64

func LastVenusProgradeToRetrogradeInclusive added in v0.1.3

func LastVenusProgradeToRetrogradeInclusive(jde float64) float64

func LastVenusRetrograde

func LastVenusRetrograde(jde float64) float64

func LastVenusRetrogradeInclusive added in v0.1.3

func LastVenusRetrogradeInclusive(jde float64) float64

func LastVenusRetrogradeToPrograde

func LastVenusRetrogradeToPrograde(jde float64) float64

func LastVenusRetrogradeToProgradeInclusive added in v0.1.3

func LastVenusRetrogradeToProgradeInclusive(jde float64) float64

func LastVenusSuperiorConjunction

func LastVenusSuperiorConjunction(jde float64) float64

func LastVenusSuperiorConjunctionInclusive added in v0.1.3

func LastVenusSuperiorConjunctionInclusive(jde float64) float64

func LoBoToRaDec

func LoBoToRaDec(jde, lo, bo float64) (float64, float64)

func LoToRa

func LoToRa(jde, lo, bo float64) float64

* 坐标变换,黄道转赤道

func LoadStarData

func LoadStarData() error

func LowSunHeight

func LowSunHeight(jd, lon, lat, tz float64) float64

func MarsApparentBo

func MarsApparentBo(jd float64) float64

func MarsApparentBoN

func MarsApparentBoN(jd float64, n int) float64

MarsApparentBoN 火星视黄纬(截断版) / truncated apparent ecliptic latitude of Mars.

func MarsApparentDec

func MarsApparentDec(jd float64) float64

func MarsApparentDecN

func MarsApparentDecN(jd float64, n int) float64

MarsApparentDecN 火星视赤纬(截断版) / truncated apparent declination of Mars.

func MarsApparentLo

func MarsApparentLo(jd float64) float64

func MarsApparentLoBo

func MarsApparentLoBo(jd float64) (float64, float64)

func MarsApparentLoBoN

func MarsApparentLoBoN(jd float64, n int) (float64, float64)

MarsApparentLoBoN 火星视黄经黄纬(截断版) / truncated apparent ecliptic longitude and latitude of Mars.

func MarsApparentLoN

func MarsApparentLoN(jd float64, n int) float64

MarsApparentLoN 火星视黄经(截断版) / truncated apparent ecliptic longitude of Mars.

func MarsApparentRa

func MarsApparentRa(jd float64) float64

func MarsApparentRaDec

func MarsApparentRaDec(jd float64) (float64, float64)

func MarsApparentRaDecN

func MarsApparentRaDecN(jd float64, n int) (float64, float64)

MarsApparentRaDecN 火星视赤经赤纬(截断版) / truncated apparent right ascension and declination of Mars.

func MarsApparentRaN

func MarsApparentRaN(jd float64, n int) float64

MarsApparentRaN 火星视赤经(截断版) / truncated apparent right ascension of Mars.

func MarsAscendingNode

func MarsAscendingNode(jd float64) float64

MarsAscendingNode 火星升交点黄经 / ascending node longitude of Mars.

func MarsAscendingNodeN

func MarsAscendingNodeN(jd float64, n int) float64

MarsAscendingNodeN 火星升交点黄经(截断版) / truncated ascending node longitude of Mars.

func MarsAzimuth

func MarsAzimuth(jde, lon, lat, timezone float64) float64

func MarsAzimuthN

func MarsAzimuthN(jde, lon, lat, timezone float64, n int) float64

MarsAzimuthN 火星方位角(截断版) / truncated azimuth of Mars.

func MarsB

func MarsB(jd float64) float64

func MarsBrightLimbPositionAngle

func MarsBrightLimbPositionAngle(jd float64) float64

MarsBrightLimbPositionAngle 火星亮面中心位置角 / position angle of Mars bright limb.

func MarsBrightLimbPositionAngleN

func MarsBrightLimbPositionAngleN(jd float64, n int) float64

MarsBrightLimbPositionAngleN 火星亮面中心位置角(截断版) / truncated position angle of Mars bright limb.

func MarsCulminationTime

func MarsCulminationTime(jde, lon, timezone float64) float64

func MarsCulminationTimeN

func MarsCulminationTimeN(jde, lon, timezone float64, n int) float64

MarsCulminationTimeN 火星中天时间(截断版) / truncated culmination time of Mars.

func MarsDescendingNode

func MarsDescendingNode(jd float64) float64

MarsDescendingNode 火星降交点黄经 / descending node longitude of Mars.

func MarsDescendingNodeN

func MarsDescendingNodeN(jd float64, n int) float64

MarsDescendingNodeN 火星降交点黄经(截断版) / truncated descending node longitude of Mars.

func MarsDiameter

func MarsDiameter(jd float64) float64

MarsDiameter 火星视直径,单位角秒 / apparent Mars diameter in arcseconds.

func MarsDiameterN

func MarsDiameterN(jd float64, n int) float64

MarsDiameterN 火星视直径(截断版),单位角秒 / truncated apparent Mars diameter in arcseconds.

func MarsHeight

func MarsHeight(jde, lon, lat, timezone float64) float64

func MarsHeightN

func MarsHeightN(jde, lon, lat, timezone float64, n int) float64

MarsHeightN 火星高度角(截断版) / truncated altitude of Mars.

func MarsHourAngle

func MarsHourAngle(jd, lon, timezone float64) float64

func MarsHourAngleN

func MarsHourAngleN(jd, lon, timezone float64, n int) float64

MarsHourAngleN 火星时角(截断版) / truncated hour angle of Mars.

func MarsIlluminatedFraction

func MarsIlluminatedFraction(jd float64) float64

MarsIlluminatedFraction 火星被照亮比例 / illuminated fraction of Mars.

func MarsIlluminatedFractionN

func MarsIlluminatedFractionN(jd float64, n int) float64

MarsIlluminatedFractionN 火星被照亮比例(截断版) / truncated illuminated fraction of Mars.

func MarsL

func MarsL(jd float64) float64

func MarsMag

func MarsMag(jd float64) float64

func MarsMagN

func MarsMagN(jd float64, n int) float64

MarsMagN 火星视星等(截断版) / truncated apparent magnitude of Mars.

func MarsPhaseAngle

func MarsPhaseAngle(jd float64) float64

MarsPhaseAngle 火星相位角 / phase angle of Mars.

func MarsPhaseAngleN

func MarsPhaseAngleN(jd float64, n int) float64

MarsPhaseAngleN 火星相位角(截断版) / truncated phase angle of Mars.

func MarsR

func MarsR(jd float64) float64

func MarsRiseTime

func MarsRiseTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func MarsRiseTimeN

func MarsRiseTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

MarsRiseTimeN 火星升起时间(截断版) / truncated rise time of Mars.

func MarsSemidiameter

func MarsSemidiameter(jd float64) float64

MarsSemidiameter 火星视半径,单位角秒 / apparent Mars semidiameter in arcseconds.

func MarsSemidiameterN

func MarsSemidiameterN(jd float64, n int) float64

MarsSemidiameterN 火星视半径(截断版),单位角秒 / truncated apparent Mars semidiameter in arcseconds.

func MarsSetTime

func MarsSetTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func MarsSetTimeN

func MarsSetTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

MarsSetTimeN 火星落下时间(截断版) / truncated set time of Mars.

func MarsTrueLo

func MarsTrueLo(jd float64) float64

func MarsTrueLoBo

func MarsTrueLoBo(jd float64) (float64, float64)

func MeanSiderealTime

func MeanSiderealTime(jd float64) float64

MeanSiderealTime 平恒星时

func MeanSiderealTime1982

func MeanSiderealTime1982(jd float64) float64

MeanSiderealTime1982 不含章动下的恒星时

func MeanSiderealTime2006

func MeanSiderealTime2006(jd_ut1 float64) float64

MeanSiderealTime2006 计算格林尼治平恒星时 (GMST) jd_ut1: UT1 时间的儒略日 jd_tt: TT 时间的儒略日 返回值: 格林尼治平恒星时 (弧度)

func MercuryApparentBo

func MercuryApparentBo(jd float64) float64

func MercuryApparentBoN

func MercuryApparentBoN(jd float64, n int) float64

MercuryApparentBoN 水星视黄纬(截断版) / truncated apparent ecliptic latitude of Mercury.

func MercuryApparentDec

func MercuryApparentDec(jd float64) float64

func MercuryApparentDecN

func MercuryApparentDecN(jd float64, n int) float64

MercuryApparentDecN 水星视赤纬(截断版) / truncated apparent declination of Mercury.

func MercuryApparentLo

func MercuryApparentLo(jd float64) float64

func MercuryApparentLoBo

func MercuryApparentLoBo(jd float64) (float64, float64)

func MercuryApparentLoBoN

func MercuryApparentLoBoN(jd float64, n int) (float64, float64)

MercuryApparentLoBoN 水星视黄经黄纬(截断版) / truncated apparent ecliptic longitude and latitude of Mercury.

func MercuryApparentLoN

func MercuryApparentLoN(jd float64, n int) float64

MercuryApparentLoN 水星视黄经(截断版) / truncated apparent ecliptic longitude of Mercury.

func MercuryApparentRa

func MercuryApparentRa(jd float64) float64

func MercuryApparentRaDec

func MercuryApparentRaDec(jd float64) (float64, float64)

func MercuryApparentRaDecN

func MercuryApparentRaDecN(jd float64, n int) (float64, float64)

MercuryApparentRaDecN 水星视赤经赤纬(截断版) / truncated apparent right ascension and declination of Mercury.

func MercuryApparentRaN

func MercuryApparentRaN(jd float64, n int) float64

MercuryApparentRaN 水星视赤经(截断版) / truncated apparent right ascension of Mercury.

func MercuryAscendingNode

func MercuryAscendingNode(jd float64) float64

MercuryAscendingNode 水星升交点黄经 / ascending node longitude of Mercury.

func MercuryAscendingNodeN

func MercuryAscendingNodeN(jd float64, n int) float64

MercuryAscendingNodeN 水星升交点黄经(截断版) / truncated ascending node longitude of Mercury.

func MercuryAzimuth

func MercuryAzimuth(jde, lon, lat, timezone float64) float64

func MercuryAzimuthN

func MercuryAzimuthN(jde, lon, lat, timezone float64, n int) float64

MercuryAzimuthN 水星方位角(截断版) / truncated azimuth of Mercury.

func MercuryB

func MercuryB(jd float64) float64

func MercuryBrightLimbPositionAngle

func MercuryBrightLimbPositionAngle(jd float64) float64

MercuryBrightLimbPositionAngle 水星亮面中心位置角 / position angle of Mercury bright limb.

func MercuryBrightLimbPositionAngleN

func MercuryBrightLimbPositionAngleN(jd float64, n int) float64

MercuryBrightLimbPositionAngleN 水星亮面中心位置角(截断版) / truncated position angle of Mercury bright limb.

func MercuryCulminationTime

func MercuryCulminationTime(jde, lon, timezone float64) float64

func MercuryCulminationTimeN

func MercuryCulminationTimeN(jde, lon, timezone float64, n int) float64

MercuryCulminationTimeN 水星中天时间(截断版) / truncated culmination time of Mercury.

func MercuryDescendingNode

func MercuryDescendingNode(jd float64) float64

MercuryDescendingNode 水星降交点黄经 / descending node longitude of Mercury.

func MercuryDescendingNodeN

func MercuryDescendingNodeN(jd float64, n int) float64

MercuryDescendingNodeN 水星降交点黄经(截断版) / truncated descending node longitude of Mercury.

func MercuryDiameter

func MercuryDiameter(jd float64) float64

MercuryDiameter 水星视直径,单位角秒 / apparent Mercury diameter in arcseconds.

func MercuryDiameterN

func MercuryDiameterN(jd float64, n int) float64

MercuryDiameterN 水星视直径(截断版),单位角秒 / truncated apparent Mercury diameter in arcseconds.

func MercuryHeight

func MercuryHeight(jde, lon, lat, timezone float64) float64

func MercuryHeightN

func MercuryHeightN(jde, lon, lat, timezone float64, n int) float64

MercuryHeightN 水星高度角(截断版) / truncated altitude of Mercury.

func MercuryHourAngle

func MercuryHourAngle(jd, lon, timezone float64) float64

func MercuryHourAngleN

func MercuryHourAngleN(jd, lon, timezone float64, n int) float64

MercuryHourAngleN 水星时角(截断版) / truncated hour angle of Mercury.

func MercuryIlluminatedFraction

func MercuryIlluminatedFraction(jd float64) float64

MercuryIlluminatedFraction 水星被照亮比例 / illuminated fraction of Mercury.

func MercuryIlluminatedFractionN

func MercuryIlluminatedFractionN(jd float64, n int) float64

MercuryIlluminatedFractionN 水星被照亮比例(截断版) / truncated illuminated fraction of Mercury.

func MercuryL

func MercuryL(jd float64) float64

func MercuryMag

func MercuryMag(jd float64) float64

func MercuryMagN

func MercuryMagN(jd float64, n int) float64

MercuryMagN 水星视星等(截断版) / truncated apparent magnitude of Mercury.

func MercuryPhaseAngle

func MercuryPhaseAngle(jd float64) float64

MercuryPhaseAngle 水星相位角 / phase angle of Mercury.

func MercuryPhaseAngleN

func MercuryPhaseAngleN(jd float64, n int) float64

MercuryPhaseAngleN 水星相位角(截断版) / truncated phase angle of Mercury.

func MercuryR

func MercuryR(jd float64) float64

func MercuryRiseTime

func MercuryRiseTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func MercuryRiseTimeN

func MercuryRiseTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

MercuryRiseTimeN 水星升起时间(截断版) / truncated rise time of Mercury.

func MercurySemidiameter

func MercurySemidiameter(jd float64) float64

MercurySemidiameter 水星视半径,单位角秒 / apparent Mercury semidiameter in arcseconds.

func MercurySemidiameterN

func MercurySemidiameterN(jd float64, n int) float64

MercurySemidiameterN 水星视半径(截断版),单位角秒 / truncated apparent Mercury semidiameter in arcseconds.

func MercurySetTime

func MercurySetTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func MercurySetTimeN

func MercurySetTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

MercurySetTimeN 水星落下时间(截断版) / truncated set time of Mercury.

func MercurySunElongation

func MercurySunElongation(jde float64) float64

func MoonApparentDec

func MoonApparentDec(jd, lon, lat, tz float64) float64

func MoonApparentLo

func MoonApparentLo(jd float64) float64

* @name 月球视黄经

func MoonApparentRa

func MoonApparentRa(jd, lon, lat float64, tz int) float64

*

*
传入世界时

func MoonAscendingNode

func MoonAscendingNode(jd float64) float64

MoonAscendingNode 月球升交点黄经 / ascending node longitude of the Moon.

func MoonAscendingNodeN

func MoonAscendingNodeN(jd float64, n int) float64

MoonAscendingNodeN 月球升交点黄经(截断版) / truncated ascending node longitude of the Moon.

func MoonAway

func MoonAway(jd float64) float64

func MoonAzimuth

func MoonAzimuth(jd, lon, lat, tz float64) float64

* 月球方位角

func MoonB

func MoonB(jd float64) float64

func MoonBrightLimbPositionAngle

func MoonBrightLimbPositionAngle(jd float64) float64

MoonBrightLimbPositionAngle 月亮明亮边缘位置角 / position angle of the Moon's bright limb.

func MoonBrightLimbPositionAngleN

func MoonBrightLimbPositionAngleN(jd float64, n int) float64

MoonBrightLimbPositionAngleN 月亮明亮边缘位置角(截断版) / truncated position angle of the Moon's bright limb.

func MoonCalcNew

func MoonCalcNew(coordIndex int, jd float64) float64

func MoonCalcNewN

func MoonCalcNewN(coordIndex int, jd float64, n int) float64

func MoonCulminationTime

func MoonCulminationTime(jde, lon, lat, timezone float64) float64

func MoonDescendingNode

func MoonDescendingNode(jd float64) float64

MoonDescendingNode 月球降交点黄经 / descending node longitude of the Moon.

func MoonDescendingNodeN

func MoonDescendingNodeN(jd float64, n int) float64

MoonDescendingNodeN 月球降交点黄经(截断版) / truncated descending node longitude of the Moon.

func MoonDiameter

func MoonDiameter(jd float64) float64

MoonDiameter 月亮视直径,单位角秒 / apparent lunar diameter in arcseconds.

func MoonDiameterN

func MoonDiameterN(jd float64, n int) float64

MoonDiameterN 月亮视直径(截断版),单位角秒 / truncated apparent lunar diameter in arcseconds.

func MoonHeight

func MoonHeight(jd, lon, lat, tz float64) float64

func MoonI

func MoonI(jd float64) float64

func MoonLo

func MoonLo(jd float64) float64

func MoonLonX

func MoonLonX(jd float64) float64

func MoonM

func MoonM(jd float64) float64

func MoonPhase

func MoonPhase(jd float64) float64

func MoonR

func MoonR(jd float64) float64

func MoonSemidiameter

func MoonSemidiameter(jd float64) float64

MoonSemidiameter 月亮视半径,单位角秒 / apparent lunar semidiameter in arcseconds.

func MoonSemidiameterN

func MoonSemidiameterN(jd float64, n int) float64

MoonSemidiameterN 月亮视半径(截断版),单位角秒 / truncated apparent lunar semidiameter in arcseconds.

func MoonTimeAngle

func MoonTimeAngle(jd, lon, lat, tz float64) float64

func MoonTopocentricBrightLimbPositionAngle

func MoonTopocentricBrightLimbPositionAngle(jd, observerLon, observerLat, height float64) float64

MoonTopocentricBrightLimbPositionAngle 月亮站心明亮边缘位置角 / topocentric position angle of the Moon's bright limb.

func MoonTopocentricBrightLimbPositionAngleN

func MoonTopocentricBrightLimbPositionAngleN(jd, observerLon, observerLat, height float64, n int) float64

MoonTopocentricBrightLimbPositionAngleN 月亮站心明亮边缘位置角(截断版) / truncated topocentric position angle of the Moon's bright limb.

func MoonTrueBo

func MoonTrueBo(jd float64) float64

func MoonTrueDec

func MoonTrueDec(jd float64) float64

* 月球真赤纬

func MoonTrueLo

func MoonTrueLo(jd float64) float64

func MoonTrueRa

func MoonTrueRa(jd float64) float64

* 月球真赤经

func MoonTrueRaDec

func MoonTrueRaDec(jd float64) (float64, float64)

func MorningTwilight

func MorningTwilight(jd, lon, lat, tz, targetAltitude float64) (float64, error)

func MorningTwilightN

func MorningTwilightN(jd, lon, lat, tz, targetAltitude float64, n int) (float64, error)

func NeptuneApparentBo

func NeptuneApparentBo(jd float64) float64

func NeptuneApparentBoN

func NeptuneApparentBoN(jd float64, n int) float64

NeptuneApparentBoN 海王星视黄纬(截断版) / truncated apparent ecliptic latitude of Neptune.

func NeptuneApparentDec

func NeptuneApparentDec(jd float64) float64

func NeptuneApparentDecN

func NeptuneApparentDecN(jd float64, n int) float64

NeptuneApparentDecN 海王星视赤纬(截断版) / truncated apparent declination of Neptune.

func NeptuneApparentLo

func NeptuneApparentLo(jd float64) float64

func NeptuneApparentLoBo

func NeptuneApparentLoBo(jd float64) (float64, float64)

func NeptuneApparentLoBoN

func NeptuneApparentLoBoN(jd float64, n int) (float64, float64)

NeptuneApparentLoBoN 海王星视黄经黄纬(截断版) / truncated apparent ecliptic longitude and latitude of Neptune.

func NeptuneApparentLoN

func NeptuneApparentLoN(jd float64, n int) float64

NeptuneApparentLoN 海王星视黄经(截断版) / truncated apparent ecliptic longitude of Neptune.

func NeptuneApparentRa

func NeptuneApparentRa(jd float64) float64

func NeptuneApparentRaDec

func NeptuneApparentRaDec(jd float64) (float64, float64)

func NeptuneApparentRaDecN

func NeptuneApparentRaDecN(jd float64, n int) (float64, float64)

NeptuneApparentRaDecN 海王星视赤经赤纬(截断版) / truncated apparent right ascension and declination of Neptune.

func NeptuneApparentRaN

func NeptuneApparentRaN(jd float64, n int) float64

NeptuneApparentRaN 海王星视赤经(截断版) / truncated apparent right ascension of Neptune.

func NeptuneAscendingNode

func NeptuneAscendingNode(jd float64) float64

NeptuneAscendingNode 海王星升交点黄经 / ascending node longitude of Neptune.

func NeptuneAscendingNodeN

func NeptuneAscendingNodeN(jd float64, n int) float64

NeptuneAscendingNodeN 海王星升交点黄经(截断版) / truncated ascending node longitude of Neptune.

func NeptuneAzimuth

func NeptuneAzimuth(jde, lon, lat, timezone float64) float64

func NeptuneAzimuthN

func NeptuneAzimuthN(jde, lon, lat, timezone float64, n int) float64

NeptuneAzimuthN 海王星方位角(截断版) / truncated azimuth of Neptune.

func NeptuneB

func NeptuneB(jd float64) float64

func NeptuneBrightLimbPositionAngle

func NeptuneBrightLimbPositionAngle(jd float64) float64

NeptuneBrightLimbPositionAngle 海王星亮面中心位置角 / position angle of Neptune bright limb.

func NeptuneBrightLimbPositionAngleN

func NeptuneBrightLimbPositionAngleN(jd float64, n int) float64

NeptuneBrightLimbPositionAngleN 海王星亮面中心位置角(截断版) / truncated position angle of Neptune bright limb.

func NeptuneCulminationTime

func NeptuneCulminationTime(jde, lon, timezone float64) float64

func NeptuneCulminationTimeN

func NeptuneCulminationTimeN(jde, lon, timezone float64, n int) float64

NeptuneCulminationTimeN 海王星中天时间(截断版) / truncated culmination time of Neptune.

func NeptuneDescendingNode

func NeptuneDescendingNode(jd float64) float64

NeptuneDescendingNode 海王星降交点黄经 / descending node longitude of Neptune.

func NeptuneDescendingNodeN

func NeptuneDescendingNodeN(jd float64, n int) float64

NeptuneDescendingNodeN 海王星降交点黄经(截断版) / truncated descending node longitude of Neptune.

func NeptuneDiameter

func NeptuneDiameter(jd float64) float64

NeptuneDiameter 海王星视直径,单位角秒 / apparent Neptune diameter in arcseconds.

func NeptuneDiameterN

func NeptuneDiameterN(jd float64, n int) float64

NeptuneDiameterN 海王星视直径(截断版),单位角秒 / truncated apparent Neptune diameter in arcseconds.

func NeptuneHeight

func NeptuneHeight(jde, lon, lat, timezone float64) float64

func NeptuneHeightN

func NeptuneHeightN(jde, lon, lat, timezone float64, n int) float64

NeptuneHeightN 海王星高度角(截断版) / truncated altitude of Neptune.

func NeptuneHourAngle

func NeptuneHourAngle(jd, lon, timezone float64) float64

func NeptuneHourAngleN

func NeptuneHourAngleN(jd, lon, timezone float64, n int) float64

NeptuneHourAngleN 海王星时角(截断版) / truncated hour angle of Neptune.

func NeptuneIlluminatedFraction

func NeptuneIlluminatedFraction(jd float64) float64

NeptuneIlluminatedFraction 海王星被照亮比例 / illuminated fraction of Neptune.

func NeptuneIlluminatedFractionN

func NeptuneIlluminatedFractionN(jd float64, n int) float64

NeptuneIlluminatedFractionN 海王星被照亮比例(截断版) / truncated illuminated fraction of Neptune.

func NeptuneL

func NeptuneL(jd float64) float64

func NeptuneMag

func NeptuneMag(jd float64) float64

func NeptuneMagN

func NeptuneMagN(jd float64, n int) float64

NeptuneMagN 海王星视星等(截断版) / truncated apparent magnitude of Neptune.

func NeptunePhaseAngle

func NeptunePhaseAngle(jd float64) float64

NeptunePhaseAngle 海王星相位角 / phase angle of Neptune.

func NeptunePhaseAngleN

func NeptunePhaseAngleN(jd float64, n int) float64

NeptunePhaseAngleN 海王星相位角(截断版) / truncated phase angle of Neptune.

func NeptuneR

func NeptuneR(jd float64) float64

func NeptuneRiseTime

func NeptuneRiseTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func NeptuneRiseTimeN

func NeptuneRiseTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

NeptuneRiseTimeN 海王星升起时间(截断版) / truncated rise time of Neptune.

func NeptuneSemidiameter

func NeptuneSemidiameter(jd float64) float64

NeptuneSemidiameter 海王星视半径,单位角秒 / apparent Neptune semidiameter in arcseconds.

func NeptuneSemidiameterN

func NeptuneSemidiameterN(jd float64, n int) float64

NeptuneSemidiameterN 海王星视半径(截断版),单位角秒 / truncated apparent Neptune semidiameter in arcseconds.

func NeptuneSetTime

func NeptuneSetTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func NeptuneSetTimeN

func NeptuneSetTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

NeptuneSetTimeN 海王星落下时间(截断版) / truncated set time of Neptune.

func NextJupiterConjunction

func NextJupiterConjunction(jde float64) float64

func NextJupiterEasternQuadrature

func NextJupiterEasternQuadrature(jde float64) float64

func NextJupiterOpposition

func NextJupiterOpposition(jde float64) float64

func NextJupiterProgradeToRetrograde

func NextJupiterProgradeToRetrograde(jde float64) float64

func NextJupiterRetrogradeToPrograde

func NextJupiterRetrogradeToPrograde(jde float64) float64

func NextJupiterWesternQuadrature

func NextJupiterWesternQuadrature(jde float64) float64

func NextMarsConjunction

func NextMarsConjunction(jde float64) float64

func NextMarsEasternQuadrature

func NextMarsEasternQuadrature(jde float64) float64

func NextMarsOpposition

func NextMarsOpposition(jde float64) float64

func NextMarsProgradeToRetrograde

func NextMarsProgradeToRetrograde(jde float64) float64

func NextMarsRetrogradeToPrograde

func NextMarsRetrogradeToPrograde(jde float64) float64

func NextMarsWesternQuadrature

func NextMarsWesternQuadrature(jde float64) float64

func NextMercuryConjunction

func NextMercuryConjunction(jde float64) float64

func NextMercuryConjunctionStrict added in v0.1.3

func NextMercuryConjunctionStrict(jde float64) float64

func NextMercuryGreatestElongation

func NextMercuryGreatestElongation(jde float64) float64

func NextMercuryGreatestElongationEast

func NextMercuryGreatestElongationEast(jde float64) float64

func NextMercuryGreatestElongationEastInclusive added in v0.1.3

func NextMercuryGreatestElongationEastInclusive(jde float64) float64

func NextMercuryGreatestElongationInclusive added in v0.1.3

func NextMercuryGreatestElongationInclusive(jde float64) float64

func NextMercuryGreatestElongationWest

func NextMercuryGreatestElongationWest(jde float64) float64

func NextMercuryGreatestElongationWestInclusive added in v0.1.3

func NextMercuryGreatestElongationWestInclusive(jde float64) float64

func NextMercuryInferiorConjunction

func NextMercuryInferiorConjunction(jde float64) float64

func NextMercuryInferiorConjunctionInclusive added in v0.1.3

func NextMercuryInferiorConjunctionInclusive(jde float64) float64

func NextMercuryProgradeToRetrograde

func NextMercuryProgradeToRetrograde(jde float64) float64

func NextMercuryProgradeToRetrogradeInclusive added in v0.1.3

func NextMercuryProgradeToRetrogradeInclusive(jde float64) float64

func NextMercuryRetrograde

func NextMercuryRetrograde(jde float64) float64

func NextMercuryRetrogradeInclusive added in v0.1.3

func NextMercuryRetrogradeInclusive(jde float64) float64

func NextMercuryRetrogradeStrict added in v0.1.3

func NextMercuryRetrogradeStrict(jde float64) float64

func NextMercuryRetrogradeToPrograde

func NextMercuryRetrogradeToPrograde(jde float64) float64

func NextMercuryRetrogradeToProgradeInclusive added in v0.1.3

func NextMercuryRetrogradeToProgradeInclusive(jde float64) float64

func NextMercurySuperiorConjunction

func NextMercurySuperiorConjunction(jde float64) float64

func NextMercurySuperiorConjunctionInclusive added in v0.1.3

func NextMercurySuperiorConjunctionInclusive(jde float64) float64

func NextMoonPlanetConjunction added in v0.1.4

func NextMoonPlanetConjunction(jde float64, planet MoonPlanetConjunctionPlanet) float64

NextMoonPlanetConjunction 指定时刻之后最近一次行星合月(赤经合) / next Moon-planet conjunction at or after jde.

func NextNeptuneConjunction

func NextNeptuneConjunction(jde float64) float64

func NextNeptuneEasternQuadrature

func NextNeptuneEasternQuadrature(jde float64) float64

func NextNeptuneOpposition

func NextNeptuneOpposition(jde float64) float64

func NextNeptuneProgradeToRetrograde

func NextNeptuneProgradeToRetrograde(jde float64) float64

func NextNeptuneRetrogradeToPrograde

func NextNeptuneRetrogradeToPrograde(jde float64) float64

func NextNeptuneWesternQuadrature

func NextNeptuneWesternQuadrature(jde float64) float64

func NextSaturnConjunction

func NextSaturnConjunction(jde float64) float64

func NextSaturnEasternQuadrature

func NextSaturnEasternQuadrature(jde float64) float64

func NextSaturnOpposition

func NextSaturnOpposition(jde float64) float64

func NextSaturnProgradeToRetrograde

func NextSaturnProgradeToRetrograde(jde float64) float64

func NextSaturnRetrogradeToPrograde

func NextSaturnRetrogradeToPrograde(jde float64) float64

func NextSaturnWesternQuadrature

func NextSaturnWesternQuadrature(jde float64) float64

func NextUranusConjunction

func NextUranusConjunction(jde float64) float64

func NextUranusEasternQuadrature

func NextUranusEasternQuadrature(jde float64) float64

func NextUranusOpposition

func NextUranusOpposition(jde float64) float64

func NextUranusProgradeToRetrograde

func NextUranusProgradeToRetrograde(jde float64) float64

func NextUranusRetrogradeToPrograde

func NextUranusRetrogradeToPrograde(jde float64) float64

func NextUranusWesternQuadrature

func NextUranusWesternQuadrature(jde float64) float64

func NextVenusConjunction

func NextVenusConjunction(jde float64) float64

func NextVenusConjunctionStrict added in v0.1.3

func NextVenusConjunctionStrict(jde float64) float64

func NextVenusGreatestElongation

func NextVenusGreatestElongation(jde float64) float64

func NextVenusGreatestElongationEast

func NextVenusGreatestElongationEast(jde float64) float64

func NextVenusGreatestElongationEastInclusive added in v0.1.3

func NextVenusGreatestElongationEastInclusive(jde float64) float64

func NextVenusGreatestElongationInclusive added in v0.1.3

func NextVenusGreatestElongationInclusive(jde float64) float64

func NextVenusGreatestElongationWest

func NextVenusGreatestElongationWest(jde float64) float64

func NextVenusGreatestElongationWestInclusive added in v0.1.3

func NextVenusGreatestElongationWestInclusive(jde float64) float64

func NextVenusInferiorConjunction

func NextVenusInferiorConjunction(jde float64) float64

func NextVenusInferiorConjunctionInclusive added in v0.1.3

func NextVenusInferiorConjunctionInclusive(jde float64) float64

func NextVenusProgradeToRetrograde

func NextVenusProgradeToRetrograde(jde float64) float64

func NextVenusProgradeToRetrogradeInclusive added in v0.1.3

func NextVenusProgradeToRetrogradeInclusive(jde float64) float64

func NextVenusRetrograde

func NextVenusRetrograde(jde float64) float64

func NextVenusRetrogradeInclusive added in v0.1.3

func NextVenusRetrogradeInclusive(jde float64) float64

func NextVenusRetrogradeToPrograde

func NextVenusRetrogradeToPrograde(jde float64) float64

func NextVenusRetrogradeToProgradeInclusive added in v0.1.3

func NextVenusRetrogradeToProgradeInclusive(jde float64) float64

func NextVenusSuperiorConjunction

func NextVenusSuperiorConjunction(jde float64) float64

func NextVenusSuperiorConjunctionInclusive added in v0.1.3

func NextVenusSuperiorConjunctionInclusive(jde float64) float64

func Nutation1980

func Nutation1980(jd float64) (float64, float64)

Nutation1980 计算 IAU 1980 章动模型 返回黄经章动 (dpsi) 和交角章动 (deps),单位为度

func Nutation1980i

func Nutation1980i(jd float64) float64

黄经章动 1980

func Nutation1980s

func Nutation1980s(jd float64) float64

交角章动1980

func Nutation2000B

func Nutation2000B(jd float64) (float64, float64)

Nutation2000B 计算 IAU 2000B 章动模型 返回交角章动 (de) 和黄经章动 (dp),单位为度

func Nutation2000Bi

func Nutation2000Bi(jd float64) float64

黄经章动 2000B

func Nutation2000Bs

func Nutation2000Bs(jd float64) float64

交角章动2000B

func Obliquity1980

func Obliquity1980(jd float64) float64

Obliquity1980 计算黄赤交角,单位为度 公式 3.222-1

func OrbitApparentGeocentricEcliptic

func OrbitApparentGeocentricEcliptic(jd float64, elements OrbitElements) (lon, lat, distance float64)

OrbitApparentGeocentricEcliptic 返回光行时与章动修正后的地心视黄道坐标,单位度/AU。

func OrbitApparentGeocentricEquatorial

func OrbitApparentGeocentricEquatorial(jd float64, elements OrbitElements) (ra, dec, distance float64)

OrbitApparentGeocentricEquatorial 返回光行时与章动修正后的地心视赤道坐标,单位度/AU。

func OrbitApparentTopocentricEquatorial

func OrbitApparentTopocentricEquatorial(jd, observerLon, observerLat, observerHeight float64, elements OrbitElements) (ra, dec, distance float64)

OrbitApparentTopocentricEquatorial 返回光行时、章动与站心修正后的视赤道坐标,单位度/AU。

func OrbitAsteroidMagnitudeHG

func OrbitAsteroidMagnitudeHG(jd float64, elements OrbitElements, absoluteMagnitude, slopeParameter float64) float64

OrbitAsteroidMagnitudeHG 返回小行星 H-G 模型的视星等。

func OrbitAstrometricGeocentricEquatorialJ2000

func OrbitAstrometricGeocentricEquatorialJ2000(jd float64, elements OrbitElements) (ra, dec, distance float64)

OrbitAstrometricGeocentricEquatorialJ2000 返回光行时修正后的地心 J2000 赤道坐标,单位度/AU。

func OrbitAzimuth

func OrbitAzimuth(jde, observerLon, observerLat, timezone, observerHeight float64, elements OrbitElements) float64

OrbitAzimuth 返回轨道目标在观测者所在地的视方位角,按正北为 0°、向东增加。

func OrbitCulminationTime

func OrbitCulminationTime(jde, observerLon, observerLat, timezone, observerHeight float64, elements OrbitElements) float64

OrbitCulminationTime 返回轨道目标的中天时刻,输入输出均沿用本仓库现有观测函数的 JD 语义。

func OrbitEarthDistance

func OrbitEarthDistance(jd float64, elements OrbitElements) float64

OrbitEarthDistance 返回轨道目标在给定 TT/TDB 儒略日的地心距离,单位 AU。

func OrbitEccentricAnomaly

func OrbitEccentricAnomaly(jd float64, elements OrbitElements) float64

OrbitEccentricAnomaly 返回给定 TT/TDB 儒略日的偏近点角,单位度。 仅适用于椭圆轨道;对抛物/双曲轨道返回 NaN。

func OrbitElongation

func OrbitElongation(jd float64, elements OrbitElements) float64

OrbitElongation 返回轨道目标相对于太阳的地心视角距,单位度。

func OrbitGeocentricEcliptic

func OrbitGeocentricEcliptic(jd float64, elements OrbitElements) (lon, lat, distance float64)

OrbitGeocentricEcliptic 返回地心历元黄道球坐标,单位度/AU。

func OrbitGeocentricEclipticJ2000

func OrbitGeocentricEclipticJ2000(jd float64, elements OrbitElements) (lon, lat, distance float64)

OrbitGeocentricEclipticJ2000 返回地心 J2000 平黄道球坐标,单位度/AU。

func OrbitGeocentricEquatorial

func OrbitGeocentricEquatorial(jd float64, elements OrbitElements) (ra, dec, distance float64)

OrbitGeocentricEquatorial 返回地心历元平赤道球坐标,单位度/AU。

func OrbitGeocentricEquatorialJ2000

func OrbitGeocentricEquatorialJ2000(jd float64, elements OrbitElements) (ra, dec, distance float64)

OrbitGeocentricEquatorialJ2000 返回地心 J2000 平赤道球坐标,单位度/AU。

func OrbitHeight

func OrbitHeight(jde, observerLon, observerLat, timezone, observerHeight float64, elements OrbitElements) float64

OrbitHeight 返回轨道目标在观测者所在地的视高度角,单位度。

func OrbitHeliocentricEcliptic

func OrbitHeliocentricEcliptic(jd float64, elements OrbitElements) (lon, lat, distance float64)

OrbitHeliocentricEcliptic 返回日心历元黄道球坐标,单位度/AU。

func OrbitHeliocentricEclipticJ2000

func OrbitHeliocentricEclipticJ2000(jd float64, elements OrbitElements) (lon, lat, distance float64)

OrbitHeliocentricEclipticJ2000 返回日心 J2000 平黄道球坐标,单位度/AU。

func OrbitHourAngle

func OrbitHourAngle(jde, observerLon, observerLat, timezone, observerHeight float64, elements OrbitElements) float64

OrbitHourAngle 返回轨道目标的站心视时角,单位度。

func OrbitIlluminatedFraction

func OrbitIlluminatedFraction(jd float64, elements OrbitElements) float64

OrbitIlluminatedFraction 返回轨道目标的被照亮比例。

func OrbitMeanAnomaly

func OrbitMeanAnomaly(jd float64, elements OrbitElements) float64

OrbitMeanAnomaly 返回给定 TT/TDB 儒略日的平近点角,单位度。 对抛物/双曲轨道返回 NaN。

func OrbitMeanMotion

func OrbitMeanMotion(elements OrbitElements) float64

OrbitMeanMotion 返回历元平均角速度,单位度/日。 对近日点形式的抛物/双曲轨道返回 NaN。

func OrbitPhaseAngle

func OrbitPhaseAngle(jd float64, elements OrbitElements) float64

OrbitPhaseAngle 返回轨道目标的相位角,单位度。

func OrbitRiseTime

func OrbitRiseTime(jde, observerLon, observerLat, timezone, aeroCorrection, observerHeight float64, elements OrbitElements) (float64, error)

OrbitRiseTime 返回轨道目标在给定当地日期的升起时刻。

func OrbitSetTime

func OrbitSetTime(jde, observerLon, observerLat, timezone, aeroCorrection, observerHeight float64, elements OrbitElements) (float64, error)

OrbitSetTime 返回轨道目标在给定当地日期的落下时刻。

func OrbitSunDistance

func OrbitSunDistance(jd float64, elements OrbitElements) float64

OrbitSunDistance 返回轨道目标在给定 TT/TDB 儒略日的日心距离,单位 AU。

func OrbitTrueAnomaly

func OrbitTrueAnomaly(jd float64, elements OrbitElements) float64

OrbitTrueAnomaly 返回给定 TT/TDB 儒略日的真近点角,单位度。

func ParallacticAngleByHourAngle

func ParallacticAngleByHourAngle(hourAngle, dec, lat float64) float64

ParallacticAngleByHourAngle 返回视差角(天顶方向角)/ parallactic angle.

hourAngle 为目标时角,dec 为赤纬,lat 为观测者纬度,单位均为度。 返回值是 atan2 公式给出的有符号结果,范围通常为 [-180, 180] 度。 hourAngle may be signed or normalized to [0, 360); the trigonometric formula handles either representation.

func Precess

func Precess(ra, dec, jdFrom, jdTo float64) (float64, float64)

应用长期岁差转换

func PrecessIAU1976

func PrecessIAU1976(ra0, dec0, startJD, targetJD float64) (float64, float64)

Precess 函数实现了基于 Explanatory Supplement 2nd ed. table 3.211.1 的岁差计算 ra0, dec0: 初始赤经和赤纬(弧度) startJD: 初始儒略日 targetJD: 目标儒略日 返回: 目标历元的赤经和赤纬(弧度)

func RaDecToLoBo

func RaDecToLoBo(jde, ra, dec float64) (float64, float64)

func RaToLo

func RaToLo(jde, ra, dec float64) float64

func RefractionFromApparentAltitude

func RefractionFromApparentAltitude(apparentAltitude, pressureHPa, temperatureC float64) float64

RefractionFromApparentAltitude 大气折射修正量,单位度;输入为视高度角。 返回值应从真高度角加上后得到视高度角。

func RefractionFromTrueAltitude

func RefractionFromTrueAltitude(trueAltitude, pressureHPa, temperatureC float64) float64

RefractionFromTrueAltitude 大气折射修正量,单位度;输入为真高度角。 返回值应从真高度角加上后得到视高度角。

func SaturnApparentBo

func SaturnApparentBo(jd float64) float64

func SaturnApparentBoN

func SaturnApparentBoN(jd float64, n int) float64

SaturnApparentBoN 土星视黄纬(截断版) / truncated apparent ecliptic latitude of Saturn.

func SaturnApparentDec

func SaturnApparentDec(jd float64) float64

func SaturnApparentDecN

func SaturnApparentDecN(jd float64, n int) float64

SaturnApparentDecN 土星视赤纬(截断版) / truncated apparent declination of Saturn.

func SaturnApparentLo

func SaturnApparentLo(jd float64) float64

func SaturnApparentLoBo

func SaturnApparentLoBo(jd float64) (float64, float64)

func SaturnApparentLoBoN

func SaturnApparentLoBoN(jd float64, n int) (float64, float64)

SaturnApparentLoBoN 土星视黄经黄纬(截断版) / truncated apparent ecliptic longitude and latitude of Saturn.

func SaturnApparentLoN

func SaturnApparentLoN(jd float64, n int) float64

SaturnApparentLoN 土星视黄经(截断版) / truncated apparent ecliptic longitude of Saturn.

func SaturnApparentRa

func SaturnApparentRa(jd float64) float64

func SaturnApparentRaDec

func SaturnApparentRaDec(jd float64) (float64, float64)

func SaturnApparentRaDecN

func SaturnApparentRaDecN(jd float64, n int) (float64, float64)

SaturnApparentRaDecN 土星视赤经赤纬(截断版) / truncated apparent right ascension and declination of Saturn.

func SaturnApparentRaN

func SaturnApparentRaN(jd float64, n int) float64

SaturnApparentRaN 土星视赤经(截断版) / truncated apparent right ascension of Saturn.

func SaturnAscendingNode

func SaturnAscendingNode(jd float64) float64

SaturnAscendingNode 土星升交点黄经 / ascending node longitude of Saturn.

func SaturnAscendingNodeN

func SaturnAscendingNodeN(jd float64, n int) float64

SaturnAscendingNodeN 土星升交点黄经(截断版) / truncated ascending node longitude of Saturn.

func SaturnAzimuth

func SaturnAzimuth(jde, lon, lat, timezone float64) float64

func SaturnAzimuthN

func SaturnAzimuthN(jde, lon, lat, timezone float64, n int) float64

SaturnAzimuthN 土星方位角(截断版) / truncated azimuth of Saturn.

func SaturnB

func SaturnB(jd float64) float64

func SaturnBrightLimbPositionAngle

func SaturnBrightLimbPositionAngle(jd float64) float64

SaturnBrightLimbPositionAngle 土星亮面中心位置角 / position angle of Saturn bright limb.

func SaturnBrightLimbPositionAngleN

func SaturnBrightLimbPositionAngleN(jd float64, n int) float64

SaturnBrightLimbPositionAngleN 土星亮面中心位置角(截断版) / truncated position angle of Saturn bright limb.

func SaturnCulminationTime

func SaturnCulminationTime(jde, lon, timezone float64) float64

func SaturnCulminationTimeN

func SaturnCulminationTimeN(jde, lon, timezone float64, n int) float64

SaturnCulminationTimeN 土星中天时间(截断版) / truncated culmination time of Saturn.

func SaturnDescendingNode

func SaturnDescendingNode(jd float64) float64

SaturnDescendingNode 土星降交点黄经 / descending node longitude of Saturn.

func SaturnDescendingNodeN

func SaturnDescendingNodeN(jd float64, n int) float64

SaturnDescendingNodeN 土星降交点黄经(截断版) / truncated descending node longitude of Saturn.

func SaturnDiameter

func SaturnDiameter(jd float64) float64

SaturnDiameter 土星视直径,单位角秒 / apparent Saturn diameter in arcseconds.

func SaturnDiameterN

func SaturnDiameterN(jd float64, n int) float64

SaturnDiameterN 土星视直径(截断版),单位角秒 / truncated apparent Saturn diameter in arcseconds.

func SaturnHeight

func SaturnHeight(jde, lon, lat, timezone float64) float64

func SaturnHeightN

func SaturnHeightN(jde, lon, lat, timezone float64, n int) float64

SaturnHeightN 土星高度角(截断版) / truncated altitude of Saturn.

func SaturnHourAngle

func SaturnHourAngle(jd, lon, timezone float64) float64

func SaturnHourAngleN

func SaturnHourAngleN(jd, lon, timezone float64, n int) float64

SaturnHourAngleN 土星时角(截断版) / truncated hour angle of Saturn.

func SaturnIlluminatedFraction

func SaturnIlluminatedFraction(jd float64) float64

SaturnIlluminatedFraction 土星被照亮比例 / illuminated fraction of Saturn.

func SaturnIlluminatedFractionN

func SaturnIlluminatedFractionN(jd float64, n int) float64

SaturnIlluminatedFractionN 土星被照亮比例(截断版) / truncated illuminated fraction of Saturn.

func SaturnL

func SaturnL(jd float64) float64

func SaturnMag

func SaturnMag(jd float64) float64

func SaturnMagN

func SaturnMagN(jd float64, n int) float64

SaturnMagN 土星视星等(截断版) / truncated apparent magnitude of Saturn.

func SaturnPhaseAngle

func SaturnPhaseAngle(jd float64) float64

SaturnPhaseAngle 土星相位角 / phase angle of Saturn.

func SaturnPhaseAngleN

func SaturnPhaseAngleN(jd float64, n int) float64

SaturnPhaseAngleN 土星相位角(截断版) / truncated phase angle of Saturn.

func SaturnR

func SaturnR(jd float64) float64

func SaturnRingAxis

func SaturnRingAxis(jd float64) (majorAxis, minorAxis float64)

SaturnRingAxis 土星环外缘长短轴,单位角秒 / outer ring axes in arcseconds.

func SaturnRingAxisN

func SaturnRingAxisN(jd float64, n int) (majorAxis, minorAxis float64)

SaturnRingAxisN 土星环外缘长短轴(截断版),单位角秒 / truncated outer ring axes in arcseconds.

func SaturnRingB

func SaturnRingB(jd float64) float64

SaturnRingB 土星环张角 B / Saturn ring opening angle B.

func SaturnRingBN

func SaturnRingBN(jd float64, n int) float64

SaturnRingBN 土星环张角 B(截断版) / truncated Saturn ring opening angle B.

func SaturnRingDeltaU

func SaturnRingDeltaU(jd float64) float64

SaturnRingDeltaU 太阳和地球在环面内的土星心黄经差 / difference of Saturnicentric ring longitudes.

func SaturnRingDeltaUN

func SaturnRingDeltaUN(jd float64, n int) float64

SaturnRingDeltaUN 太阳和地球在环面内的土星心黄经差(截断版) / truncated Saturnicentric ring longitude difference.

func SaturnRingParameters

func SaturnRingParameters(jd float64) (earthLatitude, sunLatitude, positionAngle, deltaU, majorAxis, minorAxis float64)

SaturnRingParameters 土星环参数 / Saturn ring parameters.

func SaturnRingParametersN

func SaturnRingParametersN(jd float64, n int) (earthLatitude, sunLatitude, positionAngle, deltaU, majorAxis, minorAxis float64)

SaturnRingParametersN 土星环参数(截断版) / truncated Saturn ring parameters.

func SaturnRingPositionAngle

func SaturnRingPositionAngle(jd float64) float64

SaturnRingPositionAngle 土星环北半短轴位置角 / position angle of Saturn ring northern semiminor axis.

func SaturnRingPositionAngleN

func SaturnRingPositionAngleN(jd float64, n int) float64

SaturnRingPositionAngleN 土星环北半短轴位置角(截断版) / truncated position angle of Saturn ring northern semiminor axis.

func SaturnRingSunB

func SaturnRingSunB(jd float64) float64

SaturnRingSunB 土星环太阳侧张角 B' / Sun-side Saturn ring opening angle B'.

func SaturnRingSunBN

func SaturnRingSunBN(jd float64, n int) float64

SaturnRingSunBN 土星环太阳侧张角 B'(截断版) / truncated Sun-side Saturn ring opening angle B'.

func SaturnRiseTime

func SaturnRiseTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func SaturnRiseTimeN

func SaturnRiseTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

SaturnRiseTimeN 土星升起时间(截断版) / truncated rise time of Saturn.

func SaturnSemidiameter

func SaturnSemidiameter(jd float64) float64

SaturnSemidiameter 土星视半径,单位角秒 / apparent Saturn semidiameter in arcseconds.

func SaturnSemidiameterN

func SaturnSemidiameterN(jd float64, n int) float64

SaturnSemidiameterN 土星视半径(截断版),单位角秒 / truncated apparent Saturn semidiameter in arcseconds.

func SaturnSetTime

func SaturnSetTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func SaturnSetTimeN

func SaturnSetTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

SaturnSetTimeN 土星落下时间(截断版) / truncated set time of Saturn.

func SetDeltaTFn

func SetDeltaTFn(fn func(float64, bool) float64)

func StandardAltitudeMoon

func StandardAltitudeMoon(zenithShift, observerHeight, lat float64) float64

func StandardAltitudePlanet

func StandardAltitudePlanet(aeroCorrection, observerHeight, lat float64) float64

func StandardAltitudeStar

func StandardAltitudeStar(aero bool, observerHeight, lat float64) float64

func StandardAltitudeSun

func StandardAltitudeSun(zenithShift, observerHeight, lat float64) float64

func StarAngularSeparation

func StarAngularSeparation(ra1, dec1, ra2, dec2 float64) float64

func StarAzimuth

func StarAzimuth(jde, ra, dec, lon, lat, timezone float64) float64

StarAzimuth 星体的方位角 传入 jde时间、瞬时赤经、瞬时赤纬、经度、纬度、时区,jde时间应为时区时间 返回方位角,单位为度,正北为0,度数顺时针增加,取值范围[0-360)

func StarCulminationTime

func StarCulminationTime(jde, ra, lon, timezone float64) float64

func StarHeight

func StarHeight(jde, ra, dec, lon, lat, timezone float64) float64

StarHeight 星体的高度角 传入 jde时间、瞬时赤经、瞬时赤纬、经度、纬度、时区,jde时间应为时区时间 返回高度角,单位为度

func StarHourAngle

func StarHourAngle(jde, ra, lon, timezone float64) float64

StarHourAngle 星体的时角 传入 jde时间、瞬时赤经、瞬时赤纬、经度、时区,jde时间应为时区时间 返回时角

func StarParallacticAngle

func StarParallacticAngle(jde, ra, dec, lon, lat, timezone float64) float64

StarParallacticAngle 返回星体在给定观测条件下的视差角(天顶方向角)/ parallactic angle.

func StarRiseSetTime

func StarRiseSetTime(jde, ra, dec, lon, lat, height, timezone float64, aero, isRise bool) (float64, error)

func StarRiseTime

func StarRiseTime(jde, ra, dec, lon, lat, height, timezone float64, aero bool) (float64, error)

func StarSetTime

func StarSetTime(jde, ra, dec, lon, lat, height, timezone float64, aero bool) (float64, error)

func SunApparentDec

func SunApparentDec(jd float64) float64

func SunApparentLo

func SunApparentLo(jd float64) float64

func SunApparentRa

func SunApparentRa(jd float64) float64

func SunApparentRaDec

func SunApparentRaDec(jd float64) (float64, float64)

func SunAzimuth

func SunAzimuth(jd, lon, lat, tz float64) float64

func SunAzimuthN

func SunAzimuthN(jd, lon, lat, tz float64, n int) float64

func SunDiameter

func SunDiameter(jd float64) float64

SunDiameter 太阳视直径,单位角秒 / apparent solar diameter in arcseconds.

func SunDiameterN

func SunDiameterN(jd float64, n int) float64

SunDiameterN 太阳视直径(截断版),单位角秒 / truncated apparent solar diameter in arcseconds.

func SunHeight

func SunHeight(jd, lon, lat, tz float64) float64

* 太阳高度角 世界时

func SunHeightN

func SunHeightN(jd, lon, lat, tz float64, n int) float64

func SunLo

func SunLo(jd float64) float64

SunLo 太阳几何黄经

func SunLoGXC

func SunLoGXC(jd float64) float64

func SunLoGXCN

func SunLoGXCN(jd float64, n int) float64

func SunM

func SunM(jd float64) float64

func SunMidFun

func SunMidFun(jd float64) float64

func SunMoonAngle

func SunMoonAngle(jd float64) float64

func SunMoonSeek

func SunMoonSeek(jde float64, degree float64) float64

func SunSC

func SunSC(lo, jd float64) float64

func SunSemidiameter

func SunSemidiameter(jd float64) float64

SunSemidiameter 太阳视半径,单位角秒 / apparent solar semidiameter in arcseconds.

func SunSemidiameterN

func SunSemidiameterN(jd float64, n int) float64

SunSemidiameterN 太阳视半径(截断版),单位角秒 / truncated apparent solar semidiameter in arcseconds.

func SunTime

func SunTime(jd float64) float64

func SunTimeAngle

func SunTimeAngle(jd, lon, lat, tz float64) float64

* 太阳时角

func SunTimeAngleN

func SunTimeAngleN(jd, lon, lat, tz float64, n int) float64

func SunTimeN

func SunTimeN(jd float64, n int) float64

func SunTrueDec

func SunTrueDec(jd float64) float64

func SunTrueLo

func SunTrueLo(jd float64) float64

func SunTrueRa

func SunTrueRa(jd float64) float64

func TD2UT

func TD2UT(jde float64, utToTD bool) float64

func TopocentricBo

func TopocentricBo(lo, bo, lat, lon, jd, au, h float64) float64

func TopocentricDec

func TopocentricDec(ra, dec, lat, lon, jd, au, h float64) float64

func TopocentricLo

func TopocentricLo(lo, bo, lat, lon, jd, au, h float64) float64

func TopocentricRa

func TopocentricRa(ra, dec, lat, lon, jd, au, h float64) float64

func TopocentricRaDec

func TopocentricRaDec(ra, dec, lat, lon, jd, au, h float64) (float64, float64)

func TrueAltitude

func TrueAltitude(apparentAltitude, pressureHPa, temperatureC float64) float64

TrueAltitude 真高度角,单位度;输入为视高度角。

func TrueObliquity

func TrueObliquity(JD float64) float64

func UranusApparentBo

func UranusApparentBo(jd float64) float64

func UranusApparentBoN

func UranusApparentBoN(jd float64, n int) float64

UranusApparentBoN 天王星视黄纬(截断版) / truncated apparent ecliptic latitude of Uranus.

func UranusApparentDec

func UranusApparentDec(jd float64) float64

func UranusApparentDecN

func UranusApparentDecN(jd float64, n int) float64

UranusApparentDecN 天王星视赤纬(截断版) / truncated apparent declination of Uranus.

func UranusApparentLo

func UranusApparentLo(jd float64) float64

func UranusApparentLoBo

func UranusApparentLoBo(jd float64) (float64, float64)

func UranusApparentLoBoN

func UranusApparentLoBoN(jd float64, n int) (float64, float64)

UranusApparentLoBoN 天王星视黄经黄纬(截断版) / truncated apparent ecliptic longitude and latitude of Uranus.

func UranusApparentLoN

func UranusApparentLoN(jd float64, n int) float64

UranusApparentLoN 天王星视黄经(截断版) / truncated apparent ecliptic longitude of Uranus.

func UranusApparentRa

func UranusApparentRa(jd float64) float64

func UranusApparentRaDec

func UranusApparentRaDec(jd float64) (float64, float64)

func UranusApparentRaDecN

func UranusApparentRaDecN(jd float64, n int) (float64, float64)

UranusApparentRaDecN 天王星视赤经赤纬(截断版) / truncated apparent right ascension and declination of Uranus.

func UranusApparentRaN

func UranusApparentRaN(jd float64, n int) float64

UranusApparentRaN 天王星视赤经(截断版) / truncated apparent right ascension of Uranus.

func UranusAscendingNode

func UranusAscendingNode(jd float64) float64

UranusAscendingNode 天王星升交点黄经 / ascending node longitude of Uranus.

func UranusAscendingNodeN

func UranusAscendingNodeN(jd float64, n int) float64

UranusAscendingNodeN 天王星升交点黄经(截断版) / truncated ascending node longitude of Uranus.

func UranusAzimuth

func UranusAzimuth(jde, lon, lat, timezone float64) float64

func UranusAzimuthN

func UranusAzimuthN(jde, lon, lat, timezone float64, n int) float64

UranusAzimuthN 天王星方位角(截断版) / truncated azimuth of Uranus.

func UranusB

func UranusB(jd float64) float64

func UranusBrightLimbPositionAngle

func UranusBrightLimbPositionAngle(jd float64) float64

UranusBrightLimbPositionAngle 天王星亮面中心位置角 / position angle of Uranus bright limb.

func UranusBrightLimbPositionAngleN

func UranusBrightLimbPositionAngleN(jd float64, n int) float64

UranusBrightLimbPositionAngleN 天王星亮面中心位置角(截断版) / truncated position angle of Uranus bright limb.

func UranusCulminationTime

func UranusCulminationTime(jde, lon, timezone float64) float64

func UranusCulminationTimeN

func UranusCulminationTimeN(jde, lon, timezone float64, n int) float64

UranusCulminationTimeN 天王星中天时间(截断版) / truncated culmination time of Uranus.

func UranusDescendingNode

func UranusDescendingNode(jd float64) float64

UranusDescendingNode 天王星降交点黄经 / descending node longitude of Uranus.

func UranusDescendingNodeN

func UranusDescendingNodeN(jd float64, n int) float64

UranusDescendingNodeN 天王星降交点黄经(截断版) / truncated descending node longitude of Uranus.

func UranusDiameter

func UranusDiameter(jd float64) float64

UranusDiameter 天王星视直径,单位角秒 / apparent Uranus diameter in arcseconds.

func UranusDiameterN

func UranusDiameterN(jd float64, n int) float64

UranusDiameterN 天王星视直径(截断版),单位角秒 / truncated apparent Uranus diameter in arcseconds.

func UranusHeight

func UranusHeight(jde, lon, lat, timezone float64) float64

func UranusHeightN

func UranusHeightN(jde, lon, lat, timezone float64, n int) float64

UranusHeightN 天王星高度角(截断版) / truncated altitude of Uranus.

func UranusHourAngle

func UranusHourAngle(jd, lon, timezone float64) float64

func UranusHourAngleN

func UranusHourAngleN(jd, lon, timezone float64, n int) float64

UranusHourAngleN 天王星时角(截断版) / truncated hour angle of Uranus.

func UranusIlluminatedFraction

func UranusIlluminatedFraction(jd float64) float64

UranusIlluminatedFraction 天王星被照亮比例 / illuminated fraction of Uranus.

func UranusIlluminatedFractionN

func UranusIlluminatedFractionN(jd float64, n int) float64

UranusIlluminatedFractionN 天王星被照亮比例(截断版) / truncated illuminated fraction of Uranus.

func UranusL

func UranusL(jd float64) float64

func UranusMag

func UranusMag(jd float64) float64

func UranusMagN

func UranusMagN(jd float64, n int) float64

UranusMagN 天王星视星等(截断版) / truncated apparent magnitude of Uranus.

func UranusPhaseAngle

func UranusPhaseAngle(jd float64) float64

UranusPhaseAngle 天王星相位角 / phase angle of Uranus.

func UranusPhaseAngleN

func UranusPhaseAngleN(jd float64, n int) float64

UranusPhaseAngleN 天王星相位角(截断版) / truncated phase angle of Uranus.

func UranusR

func UranusR(jd float64) float64

func UranusRiseTime

func UranusRiseTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func UranusRiseTimeN

func UranusRiseTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

UranusRiseTimeN 天王星升起时间(截断版) / truncated rise time of Uranus.

func UranusSemidiameter

func UranusSemidiameter(jd float64) float64

UranusSemidiameter 天王星视半径,单位角秒 / apparent Uranus semidiameter in arcseconds.

func UranusSemidiameterN

func UranusSemidiameterN(jd float64, n int) float64

UranusSemidiameterN 天王星视半径(截断版),单位角秒 / truncated apparent Uranus semidiameter in arcseconds.

func UranusSetTime

func UranusSetTime(jd, lon, lat, timezone, aeroCorrection, observerHeight float64) (float64, error)

func UranusSetTimeN

func UranusSetTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

UranusSetTimeN 天王星落下时间(截断版) / truncated set time of Uranus.

func ValidateCivilDate

func ValidateCivilDate(year, month int, day float64) error

func VenusApparentBo

func VenusApparentBo(jd float64) float64

func VenusApparentBoN

func VenusApparentBoN(jd float64, n int) float64

VenusApparentBoN 金星视黄纬(截断版) / truncated apparent ecliptic latitude of Venus.

func VenusApparentDec

func VenusApparentDec(jd float64) float64

func VenusApparentDecN

func VenusApparentDecN(jd float64, n int) float64

VenusApparentDecN 金星视赤纬(截断版) / truncated apparent declination of Venus.

func VenusApparentLo

func VenusApparentLo(jd float64) float64

func VenusApparentLoBo

func VenusApparentLoBo(jd float64) (float64, float64)

func VenusApparentLoBoN

func VenusApparentLoBoN(jd float64, n int) (float64, float64)

VenusApparentLoBoN 金星视黄经黄纬(截断版) / truncated apparent ecliptic longitude and latitude of Venus.

func VenusApparentLoN

func VenusApparentLoN(jd float64, n int) float64

VenusApparentLoN 金星视黄经(截断版) / truncated apparent ecliptic longitude of Venus.

func VenusApparentRa

func VenusApparentRa(jd float64) float64

func VenusApparentRaDec

func VenusApparentRaDec(jd float64) (float64, float64)

func VenusApparentRaDecN

func VenusApparentRaDecN(jd float64, n int) (float64, float64)

VenusApparentRaDecN 金星视赤经赤纬(截断版) / truncated apparent right ascension and declination of Venus.

func VenusApparentRaN

func VenusApparentRaN(jd float64, n int) float64

VenusApparentRaN 金星视赤经(截断版) / truncated apparent right ascension of Venus.

func VenusAscendingNode

func VenusAscendingNode(jd float64) float64

VenusAscendingNode 金星升交点黄经 / ascending node longitude of Venus.

func VenusAscendingNodeN

func VenusAscendingNodeN(jd float64, n int) float64

VenusAscendingNodeN 金星升交点黄经(截断版) / truncated ascending node longitude of Venus.

func VenusAzimuth

func VenusAzimuth(jde, lon, lat, timezone float64) float64

func VenusAzimuthN

func VenusAzimuthN(jde, lon, lat, timezone float64, n int) float64

VenusAzimuthN 金星方位角(截断版) / truncated azimuth of Venus.

func VenusB

func VenusB(jd float64) float64

func VenusBrightLimbPositionAngle

func VenusBrightLimbPositionAngle(jd float64) float64

VenusBrightLimbPositionAngle 金星亮面中心位置角 / position angle of Venus bright limb.

func VenusBrightLimbPositionAngleN

func VenusBrightLimbPositionAngleN(jd float64, n int) float64

VenusBrightLimbPositionAngleN 金星亮面中心位置角(截断版) / truncated position angle of Venus bright limb.

func VenusCulminationTime

func VenusCulminationTime(jde, lon, timezone float64) float64

func VenusCulminationTimeN

func VenusCulminationTimeN(jde, lon, timezone float64, n int) float64

VenusCulminationTimeN 金星中天时间(截断版) / truncated culmination time of Venus.

func VenusDescendingNode

func VenusDescendingNode(jd float64) float64

VenusDescendingNode 金星降交点黄经 / descending node longitude of Venus.

func VenusDescendingNodeN

func VenusDescendingNodeN(jd float64, n int) float64

VenusDescendingNodeN 金星降交点黄经(截断版) / truncated descending node longitude of Venus.

func VenusDiameter

func VenusDiameter(jd float64) float64

VenusDiameter 金星视直径,单位角秒 / apparent Venus diameter in arcseconds.

func VenusDiameterN

func VenusDiameterN(jd float64, n int) float64

VenusDiameterN 金星视直径(截断版),单位角秒 / truncated apparent Venus diameter in arcseconds.

func VenusHeight

func VenusHeight(jde, lon, lat, timezone float64) float64

func VenusHeightN

func VenusHeightN(jde, lon, lat, timezone float64, n int) float64

VenusHeightN 金星高度角(截断版) / truncated altitude of Venus.

func VenusHourAngle

func VenusHourAngle(jd, lon, tz float64) float64

func VenusHourAngleN

func VenusHourAngleN(jd, lon, timezone float64, n int) float64

VenusHourAngleN 金星时角(截断版) / truncated hour angle of Venus.

func VenusIlluminatedFraction

func VenusIlluminatedFraction(jd float64) float64

VenusIlluminatedFraction 金星被照亮比例 / illuminated fraction of Venus.

func VenusIlluminatedFractionN

func VenusIlluminatedFractionN(jd float64, n int) float64

VenusIlluminatedFractionN 金星被照亮比例(截断版) / truncated illuminated fraction of Venus.

func VenusL

func VenusL(jd float64) float64

func VenusMag

func VenusMag(jd float64) float64

func VenusMagN

func VenusMagN(jd float64, n int) float64

VenusMagN 金星视星等(截断版) / truncated apparent magnitude of Venus.

func VenusPhaseAngle

func VenusPhaseAngle(jd float64) float64

VenusPhaseAngle 金星相位角 / phase angle of Venus.

func VenusPhaseAngleN

func VenusPhaseAngleN(jd float64, n int) float64

VenusPhaseAngleN 金星相位角(截断版) / truncated phase angle of Venus.

func VenusR

func VenusR(jd float64) float64

func VenusRiseTime

func VenusRiseTime(jd, lon, lat, tz, aeroCorrection, observerHeight float64) (float64, error)

func VenusRiseTimeN

func VenusRiseTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

VenusRiseTimeN 金星升起时间(截断版) / truncated rise time of Venus.

func VenusSemidiameter

func VenusSemidiameter(jd float64) float64

VenusSemidiameter 金星视半径,单位角秒 / apparent Venus semidiameter in arcseconds.

func VenusSemidiameterN

func VenusSemidiameterN(jd float64, n int) float64

VenusSemidiameterN 金星视半径(截断版),单位角秒 / truncated apparent Venus semidiameter in arcseconds.

func VenusSetTime

func VenusSetTime(jd, lon, lat, tz, aeroCorrection, observerHeight float64) (float64, error)

func VenusSetTimeN

func VenusSetTimeN(jd, lon, lat, timezone, aeroCorrection, observerHeight float64, n int) (float64, error)

VenusSetTimeN 金星落下时间(截断版) / truncated set time of Venus.

func VenusSunElongation

func VenusSunElongation(jde float64) float64

Types

type ApsisEvent

type ApsisEvent struct {
	// JDE 是事件发生时刻对应的世界时儒略日 / event time as UTC-based Julian day.
	JDE float64
	// Distance 是极值距离;地球相关事件单位 AU,月球相关事件单位 km / extremum distance.
	Distance float64
}

ApsisEvent 轨道极值事件 / orbital distance extremum event.

func EarthAphelion

func EarthAphelion(year int) ApsisEvent

EarthAphelion 地球指定年份的远日点 / Earth aphelion in the given year.

func EarthPerihelion

func EarthPerihelion(year int) ApsisEvent

EarthPerihelion 地球指定年份的近日点 / Earth perihelion in the given year.

func MoonApogees

func MoonApogees(year int, month time.Month) []ApsisEvent

MoonApogees 指定年月内的所有月球远地点 / all lunar apogees in the given Gregorian month.

func MoonPerigees

func MoonPerigees(year int, month time.Month) []ApsisEvent

MoonPerigees 指定年月内的所有月球近地点 / all lunar perigees in the given Gregorian month.

type DeclinationEvent

type DeclinationEvent struct {
	// JDE 是事件发生时刻对应的世界时儒略日 / event time as UTC-based Julian day.
	JDE float64
	// Declination 是该时刻月心地心赤纬,单位度 / geocentric lunar declination at the event, in degrees.
	Declination float64
}

DeclinationEvent 赤纬极值事件 / declination extremum event.

func ClosestMoonMaximumNorthDeclination

func ClosestMoonMaximumNorthDeclination(jd float64) DeclinationEvent

ClosestMoonMaximumNorthDeclination 离指定时刻最近一次月球最大北赤纬 / closest maximum northern lunar declination to jd.

func ClosestMoonMaximumSouthDeclination

func ClosestMoonMaximumSouthDeclination(jd float64) DeclinationEvent

ClosestMoonMaximumSouthDeclination 离指定时刻最近一次月球最大南赤纬 / closest maximum southern lunar declination to jd.

func LastMoonMaximumNorthDeclination

func LastMoonMaximumNorthDeclination(jd float64) DeclinationEvent

LastMoonMaximumNorthDeclination 指定时刻之前最近一次月球最大北赤纬 / last maximum northern lunar declination at or before jd.

func LastMoonMaximumSouthDeclination

func LastMoonMaximumSouthDeclination(jd float64) DeclinationEvent

LastMoonMaximumSouthDeclination 指定时刻之前最近一次月球最大南赤纬 / last maximum southern lunar declination at or before jd.

func MoonMaximumNorthDeclinations

func MoonMaximumNorthDeclinations(year int, month time.Month) []DeclinationEvent

MoonMaximumNorthDeclinations 指定年月内的所有月球最大北赤纬事件 / all maximum northern lunar declination events in the given Gregorian month.

func MoonMaximumSouthDeclinations

func MoonMaximumSouthDeclinations(year int, month time.Month) []DeclinationEvent

MoonMaximumSouthDeclinations 指定年月内的所有月球最大南赤纬事件 / all maximum southern lunar declination events in the given Gregorian month.

func NextMoonMaximumNorthDeclination

func NextMoonMaximumNorthDeclination(jd float64) DeclinationEvent

NextMoonMaximumNorthDeclination 指定时刻之后最近一次月球最大北赤纬 / next maximum northern lunar declination after jd.

func NextMoonMaximumSouthDeclination

func NextMoonMaximumSouthDeclination(jd float64) DeclinationEvent

NextMoonMaximumSouthDeclination 指定时刻之后最近一次月球最大南赤纬 / next maximum southern lunar declination after jd.

type Equatorial

type Equatorial struct {
	RA  float64 // 赤经(度)
	Dec float64 // 赤纬(度)
}

赤道坐标结构体

type InnerStarData

type InnerStarData struct {
	HR     uint16  //Bright Star Number;[1/9110]+ Harvard Revised Number;亮星编号
	Name   string  //Name, generally Bayer(如天狼星:Alpha CMA) and/or Flamsteed(如天狼星:9 CMA) name
	HD     uint32  //Henry Draper Catalog Number;HD星表编号
	Ra     float64 //Ra J2000;J2000历元赤经
	Dec    float64 //De J2000;J2000历元赤纬
	Mag    float64 //视星等
	PmRA   float64 //赤经年自行
	PmDec  float64 //赤纬年自行
	RadVel float64 //径向速度 km/s
	RotVel float64 //自行速度 km/s
	Pc     float64 //秒差距
	HIP    uint32  //HIP星表编号
}

func (InnerStarData) RaDecByJde

func (s InnerStarData) RaDecByJde(jde float64) (float64, float64)

type JupiterCentralMeridianInfo

type JupiterCentralMeridianInfo struct {
	// SystemI 木星 System I 照亮盘中央经线,单位度,西经为正。
	SystemI float64
	// SystemII 木星 System II 照亮盘中央经线,单位度,西经为正。
	SystemII float64
	// SystemIII 木星 System III 盘面中央经线,单位度,西经为正。
	SystemIII float64
}

JupiterCentralMeridianInfo 木星中央经线 / Jupiter central meridians.

func JupiterCentralMeridians

func JupiterCentralMeridians(jd float64) JupiterCentralMeridianInfo

JupiterCentralMeridians 木星 System I/II/III 中央经线 / Jupiter System I/II/III central meridians.

func JupiterCentralMeridiansN

func JupiterCentralMeridiansN(jd float64, n int) JupiterCentralMeridianInfo

JupiterCentralMeridiansN 木星 System I/II/III 中央经线(截断版) / truncated Jupiter System I/II/III central meridians.

type JupiterGalileanObservation

type JupiterGalileanObservation struct {
	State JupiterGalileanState

	RA       float64
	Dec      float64
	Distance float64

	OffsetXArcsec float64
	OffsetYArcsec float64

	OffsetXJupiterRadii float64
	OffsetYJupiterRadii float64
	OffsetZJupiterRadii float64

	InFrontOfJupiter bool
}

JupiterGalileanObservation 木星伽利略卫星视位置 / apparent Galilean-satellite geometry.

视位置相对木星中心定义:X 向天球东为正,Y 向天球北为正,Z>0 表示比木星更远、位于盘后。 Apparent offsets are relative to Jupiter's center: X is positive to celestial east, Y to celestial north, and Z>0 means farther than Jupiter and behind the disk.

func JupiterGalileanSatelliteObservation

func JupiterGalileanSatelliteObservation(jd float64, satellite int) JupiterGalileanObservation

JupiterGalileanSatelliteObservation 伽利略卫星视位置 / apparent geometry of a Galilean satellite.

jd 为 TT/TDB 对应儒略日;返回卫星的天球视赤道坐标,以及相对木星中心的东/北平面偏移。 jd is a TT/TDB Julian day. The result contains the satellite's astrometric equatorial coordinates and its east/north sky-plane offsets relative to Jupiter's center.

func JupiterGalileanSatelliteObservations

func JupiterGalileanSatelliteObservations(jd float64) [4]JupiterGalileanObservation

JupiterGalileanSatelliteObservations 四颗伽利略卫星视位置 / apparent geometry of the four Galilean satellites.

返回次序固定为 Io、Europa、Ganymede、Callisto。 The returned order is Io, Europa, Ganymede, Callisto.

type JupiterGalileanPhenomenon

type JupiterGalileanPhenomenon struct {
	Transit       bool
	Occultation   bool
	Eclipse       bool
	ShadowTransit bool

	ShadowOffsetXArcsec float64
	ShadowOffsetYArcsec float64

	ShadowOffsetXJupiterRadii float64
	ShadowOffsetYJupiterRadii float64
}

JupiterGalileanPhenomenon 木星伽利略卫星瞬时现象 / instantaneous Galilean-satellite phenomena.

Transit 表示卫星本体在木星盘前;Occultation 表示卫星在木星盘后被掩蔽;Eclipse 表示卫星落入木星本影;ShadowTransit 表示卫星影心落在可见木星盘面上。 Transit means the satellite itself is in front of Jupiter's disk; Occultation means it is hidden behind the disk; Eclipse means the satellite lies in Jupiter's umbra; ShadowTransit means the center of the satellite shadow falls on the visible Jovian disk.

func JupiterGalileanSatellitePhenomena

func JupiterGalileanSatellitePhenomena(jd float64) [4]JupiterGalileanPhenomenon

JupiterGalileanSatellitePhenomena 四颗伽利略卫星瞬时现象 / instantaneous phenomena of the four Galilean satellites.

func JupiterGalileanSatellitePhenomenon

func JupiterGalileanSatellitePhenomenon(jd float64, satellite int) JupiterGalileanPhenomenon

JupiterGalileanSatellitePhenomenon 单颗伽利略卫星瞬时现象 / instantaneous phenomena of one Galilean satellite.

type JupiterGalileanPhenomenonContact

type JupiterGalileanPhenomenonContact struct {
	Valid bool
	Phase JupiterGalileanPhenomenonContactPhase

	Start         float64
	ModelCrossing float64
	End           float64
}

JupiterGalileanPhenomenonContact 伽利略卫星接触窗口 / Galilean-satellite contact window.

Start/End 表示有限圆盘或有限影斑开始/结束接触的时刻;ModelCrossing 表示这套连续接触模型下, 零半径参考点穿越边界的时刻。 Start/End mark the beginning/end of the finite-disk or finite-shadow contact interval. ModelCrossing is the zero-radius boundary crossing in this continuous contact model.

type JupiterGalileanPhenomenonContactEvent

type JupiterGalileanPhenomenonContactEvent struct {
	Valid     bool
	Satellite int
	Type      JupiterGalileanPhenomenonType

	Disappearance JupiterGalileanPhenomenonContact
	Greatest      float64
	Reappearance  JupiterGalileanPhenomenonContact

	GreatestPhenomenon JupiterGalileanPhenomenon
}

JupiterGalileanPhenomenonContactEvent IMCCE 风格的 D/F 接触事件 / IMCCE-style D/F contact event.

与 `JupiterGalileanPhenomenonEvent` 不同,这里返回的是有限圆盘/有限影斑的初亏与复圆接触窗口; 现有整场事件 API 返回的则是零半径几何模型处于 active 状态的整段区间。 对 `shadow_transit`,这里按 IMCCE 的影凌语义处理:先用半影/本影边界求出部分相持续时间, 再把这段持续时间中心放在旧 `shadow_transit` API 的影轴过盘时刻上。 Unlike `JupiterGalileanPhenomenonEvent`, this returns the finite-disk / finite-shadow D/F contact windows. The existing full-event API returns the whole active interval of the zero-radius geometric model. For `shadow_transit`, the partial-phase duration comes from penumbra/umbra boundaries, while the reported D/F time is centered on the shadow-axis limb crossing from the existing full-event model.

func ClosestJupiterGalileanPhenomenonContactEvent

func ClosestJupiterGalileanPhenomenonContactEvent(jd float64, satellite int, phenomenonType JupiterGalileanPhenomenonType) JupiterGalileanPhenomenonContactEvent

ClosestJupiterGalileanPhenomenonContactEvent 最近一次 IMCCE 风格接触事件 / closest IMCCE-style contact event.

func LastJupiterGalileanPhenomenonContactEvent

func LastJupiterGalileanPhenomenonContactEvent(jd float64, satellite int, phenomenonType JupiterGalileanPhenomenonType) JupiterGalileanPhenomenonContactEvent

LastJupiterGalileanPhenomenonContactEvent 上一次 IMCCE 风格接触事件 / previous IMCCE-style contact event.

func NextJupiterGalileanPhenomenonContactEvent

func NextJupiterGalileanPhenomenonContactEvent(jd float64, satellite int, phenomenonType JupiterGalileanPhenomenonType) JupiterGalileanPhenomenonContactEvent

NextJupiterGalileanPhenomenonContactEvent 下一次 IMCCE 风格接触事件 / next IMCCE-style contact event.

type JupiterGalileanPhenomenonContactPhase

type JupiterGalileanPhenomenonContactPhase string

JupiterGalileanPhenomenonContactPhase 接触阶段 / contact phase.

const (
	// JupiterGalileanDisappearanceContact 初亏/初入接触阶段 / disappearance ingress contact.
	JupiterGalileanDisappearanceContact JupiterGalileanPhenomenonContactPhase = "disappearance"
	// JupiterGalileanReappearanceContact 复圆/复出接触阶段 / reappearance egress contact.
	JupiterGalileanReappearanceContact JupiterGalileanPhenomenonContactPhase = "reappearance"
)

type JupiterGalileanPhenomenonEvent

type JupiterGalileanPhenomenonEvent struct {
	Valid     bool
	Satellite int
	Type      JupiterGalileanPhenomenonType

	Start    float64
	Greatest float64
	End      float64

	GreatestPhenomenon JupiterGalileanPhenomenon
}

JupiterGalileanPhenomenonEvent 伽利略卫星现象整场事件 / full Galilean-satellite phenomenon event.

Start、Greatest、End 都使用 UTC/UT 对应的儒略日。 Start, Greatest, and End are UTC/UT Julian days.

func ClosestJupiterGalileanPhenomenonEvent

func ClosestJupiterGalileanPhenomenonEvent(jd float64, satellite int, phenomenonType JupiterGalileanPhenomenonType) JupiterGalileanPhenomenonEvent

ClosestJupiterGalileanPhenomenonEvent 最近一次伽利略卫星现象 / closest Galilean-satellite event.

func LastJupiterGalileanPhenomenonEvent

func LastJupiterGalileanPhenomenonEvent(jd float64, satellite int, phenomenonType JupiterGalileanPhenomenonType) JupiterGalileanPhenomenonEvent

LastJupiterGalileanPhenomenonEvent 上一次伽利略卫星现象 / previous Galilean-satellite event.

func NextJupiterGalileanPhenomenonEvent

func NextJupiterGalileanPhenomenonEvent(jd float64, satellite int, phenomenonType JupiterGalileanPhenomenonType) JupiterGalileanPhenomenonEvent

NextJupiterGalileanPhenomenonEvent 下一次伽利略卫星现象 / next Galilean-satellite event.

type JupiterGalileanPhenomenonType

type JupiterGalileanPhenomenonType string

JupiterGalileanPhenomenonType 伽利略卫星现象类型 / Galilean-satellite phenomenon type.

const (
	// JupiterGalileanTransit 凌日 / satellite transit across Jupiter.
	JupiterGalileanTransit JupiterGalileanPhenomenonType = "transit"
	// JupiterGalileanOccultation 掩蔽 / occultation behind Jupiter.
	JupiterGalileanOccultation JupiterGalileanPhenomenonType = "occultation"
	// JupiterGalileanEclipse 食 / eclipse in Jupiter's shadow.
	JupiterGalileanEclipse JupiterGalileanPhenomenonType = "eclipse"
	// JupiterGalileanShadowTransit 影凌 / shadow transit across Jupiter.
	JupiterGalileanShadowTransit JupiterGalileanPhenomenonType = "shadow_transit"
)

type JupiterGalileanState

type JupiterGalileanState struct {
	X  float64
	Y  float64
	Z  float64
	VX float64
	VY float64
	VZ float64
}

JupiterGalileanState 木星伽利略卫星原始状态 / raw Galilean-satellite state.

输入 jd 使用 TT/TDB 对应的儒略日;返回值为 IMCCE L1 理论的木心 J2000 平赤道直角坐标与速度,单位 AU / AU/day。 The input jd is a TT/TDB Julian day. Returned coordinates are Jovicentric J2000 mean-equatorial position and velocity from the IMCCE L1 theory, in AU and AU/day.

func JupiterGalileanSatelliteState

func JupiterGalileanSatelliteState(jd float64, satellite int) JupiterGalileanState

JupiterGalileanSatelliteState 伽利略卫星木心 J2000 状态 / Jovicentric J2000 state of a Galilean satellite.

satellite 取 1=Io, 2=Europa, 3=Ganymede, 4=Callisto。jd 为 TT/TDB 对应儒略日。 satellite is 1=Io, 2=Europa, 3=Ganymede, 4=Callisto. jd is a TT/TDB Julian day.

func JupiterGalileanSatelliteStates

func JupiterGalileanSatelliteStates(jd float64) [4]JupiterGalileanState

JupiterGalileanSatelliteStates 四颗伽利略卫星木心 J2000 状态 / Jovicentric J2000 states of the four Galilean satellites.

返回次序固定为 Io、Europa、Ganymede、Callisto。 The returned order is Io, Europa, Ganymede, Callisto.

type LocalSolarEclipseDiagramFrame

type LocalSolarEclipseDiagramFrame struct {
	// JDE 是力学时儒略日, TT Julian ephemeris day.
	JDE float64
	// MoonX / MoonY 是以太阳视半径为单位的月心相对日心坐标,X 向东为正,Y 向北为正。
	// MoonX/MoonY are Moon-center coordinates relative to the Sun center in Sun-radius units; X east, Y north.
	MoonX float64
	MoonY float64
	// SunRadius 是太阳视半径,单位为图上太阳半径;固定为 1。
	// SunRadius is the Sun radius in diagram Sun-radius units; always 1.
	SunRadius float64
	// MoonRadius 是月球视半径,单位为图上太阳半径。
	// MoonRadius is the Moon apparent radius in Sun-radius units.
	MoonRadius float64
	// Separation 是日月中心角距,单位为度。
	// Separation is the Sun-Moon center separation in degrees.
	Separation float64
	// PositionAngle 是月心相对日心的位置角,从北点起向东量,单位为度。
	// PositionAngle is the Moon-center position angle from north toward east, in degrees.
	PositionAngle float64
	// SunAltitude / SunAzimuth 是太阳站心高度角 / 方位角,单位为度。
	// SunAltitude/SunAzimuth are local Sun altitude/azimuth in degrees.
	SunAltitude float64
	SunAzimuth  float64
	// Label 是关键阶段标签,如 C1/Greatest/C4。
	// Label is a key phase label such as C1/Greatest/C4.
	Label string
	// Labels 是该点对应的全部关键阶段标签;若事件重合,这里会有多个值。
	// Labels contains all phase labels attached to this point.
	Labels []string
}

LocalSolarEclipseDiagramFrame 表示一个时刻的站心日月视圆几何。 LocalSolarEclipseDiagramFrame is local Sun-Moon disk geometry at one instant.

type LocalSolarEclipseDiagramOptions

type LocalSolarEclipseDiagramOptions struct {
	// StepDays 是路径采样步长,单位为日;<=0 时使用 5 分钟。
	// StepDays is the path sampling step in days; values <= 0 use five minutes.
	StepDays float64
}

LocalSolarEclipseDiagramOptions 控制站心日食视圆图采样。 LocalSolarEclipseDiagramOptions controls local solar eclipse disk diagram sampling.

type LocalSolarEclipseDiagramResult

type LocalSolarEclipseDiagramResult struct {
	// Eclipse 是对应的站心日食结果。
	// Eclipse is the local eclipse result used for the diagram.
	Eclipse LocalSolarEclipseResult
	// Frames 是采样帧,太阳固定在 (0,0),月球按 MoonX/MoonY 绘制。
	// Frames are sampled frames; the Sun is fixed at (0,0), and the Moon uses MoonX/MoonY.
	Frames []LocalSolarEclipseDiagramFrame
	// StepDays 是实际采用的路径采样步长,单位为日。
	// StepDays is the effective path sampling step in days.
	StepDays float64
}

LocalSolarEclipseDiagramResult 表示站心日食视圆图几何结果。 LocalSolarEclipseDiagramResult is the geometry result for a local solar eclipse disk diagram.

func LocalSolarEclipseDiagram

func LocalSolarEclipseDiagram(seedJDE, lon, lat, height float64, options LocalSolarEclipseDiagramOptions) LocalSolarEclipseDiagramResult

LocalSolarEclipseDiagram 计算站心日食视圆图几何数据,默认使用 NASA bulletin Split-K 模型。 LocalSolarEclipseDiagram computes local solar eclipse disk diagram geometry, using NASA bulletin Split-K by default.

func LocalSolarEclipseDiagramIAUSingleK

func LocalSolarEclipseDiagramIAUSingleK(seedJDE, lon, lat, height float64, options LocalSolarEclipseDiagramOptions) LocalSolarEclipseDiagramResult

LocalSolarEclipseDiagramIAUSingleK 计算站心日食视圆图几何数据,使用 IAU Single-K 模型。 LocalSolarEclipseDiagramIAUSingleK computes local solar eclipse disk diagram geometry with the IAU Single-K model.

func LocalSolarEclipseDiagramNASABulletinSplitK

func LocalSolarEclipseDiagramNASABulletinSplitK(seedJDE, lon, lat, height float64, options LocalSolarEclipseDiagramOptions) LocalSolarEclipseDiagramResult

LocalSolarEclipseDiagramNASABulletinSplitK 计算站心日食视圆图几何数据,使用 NASA bulletin Split-K 模型。 LocalSolarEclipseDiagramNASABulletinSplitK computes local solar eclipse disk diagram geometry with the NASA bulletin Split-K model.

type LocalSolarEclipseResult

type LocalSolarEclipseResult struct {
	Model SolarEclipseRadiusModel
	Type  SolarEclipseType

	// GreatestEclipse 是站心盘面中心角距最小的时刻。
	GreatestEclipse float64

	// PartialStart / PartialEnd 是站心偏食始 / 偏食终。
	PartialStart float64
	PartialEnd   float64
	// CentralStart / CentralEnd 是站心中心食始 / 中心食终。
	//
	// 对全食对应食既 / 生光;
	// 对环食对应环食始 / 环食终。
	CentralStart float64
	CentralEnd   float64

	// Magnitude 是站心食分。
	Magnitude float64
	// Obscuration 是食甚时太阳视圆面被月面遮蔽的面积比例,范围 [0, 1]。
	Obscuration float64
	// Separation 是食甚时日月中心的站心角距,单位为度。
	Separation float64

	// SunAltitude / SunAzimuth 是食甚时太阳的站心高度角 / 方位角,单位为度。
	SunAltitude float64
	SunAzimuth  float64

	// VisibleAtGreatest 表示食甚时太阳中心在地平线上方。
	VisibleAtGreatest bool

	HasPartial bool
	HasCentral bool
	HasAnnular bool
	HasTotal   bool
}

LocalSolarEclipseResult 表示某个站点的一次站心日食几何结果。

所有时刻字段都使用力学时儒略日(JDE, TT)。 输入 seedJDE 只需要落在目标朔月附近,允许相差数天。

func LocalSolarEclipse

func LocalSolarEclipse(seedJDE, lon, lat, height float64) LocalSolarEclipseResult

LocalSolarEclipse 计算给定近朔时刻附近的一次站心日食,默认使用 NASA bulletin Split-K 模型。

seedJDE 为力学时儒略日(TT),只需落在目标朔月附近,允许相差数天。 lon 为经度,东正西负;lat 为纬度,北正南负;height 为海拔高度,单位米。

func LocalSolarEclipseIAUSingleK

func LocalSolarEclipseIAUSingleK(seedJDE, lon, lat, height float64) LocalSolarEclipseResult

LocalSolarEclipseIAUSingleK 计算给定近朔时刻附近的一次站心日食,使用 IAU Single-K 模型。

func LocalSolarEclipseNASABulletinSplitK

func LocalSolarEclipseNASABulletinSplitK(seedJDE, lon, lat, height float64) LocalSolarEclipseResult

LocalSolarEclipseNASABulletinSplitK 计算给定近朔时刻附近的一次站心日食,使用 NASA bulletin Split-K 模型。

type LunarEclipseDiagramOptions

type LunarEclipseDiagramOptions struct {
	// StepDays 是路径采样步长,单位为日;<=0 时使用 5 分钟。
	// StepDays is the path sampling step in days; values <= 0 use five minutes.
	StepDays float64
}

LunarEclipseDiagramOptions 控制月食穿影图采样。 LunarEclipseDiagramOptions controls lunar eclipse shadow-path diagram sampling.

type LunarEclipseDiagramPoint

type LunarEclipseDiagramPoint struct {
	// JDE 是力学时儒略日, TT Julian ephemeris day.
	JDE float64
	// X / Y 是以月球半径为单位的月心相对地影中心坐标。
	// X/Y are Moon-center coordinates relative to the shadow center, in Moon-radius units.
	X float64
	Y float64
	// Label 是关键接触标签,如 P1/U1/U2/Greatest/U3/U4/P4。
	// Label is a key contact label such as P1/U1/U2/Greatest/U3/U4/P4.
	Label string
	// Labels 是该点对应的全部关键接触标签;若事件重合,这里会有多个值。
	// Labels contains all contact labels attached to this point.
	Labels []string
}

LunarEclipseDiagramPoint 表示月食穿影图上的一个月心位置。 LunarEclipseDiagramPoint is one Moon-center point in a lunar eclipse diagram.

type LunarEclipseDiagramResult

type LunarEclipseDiagramResult struct {
	// Eclipse 是对应的月食结果。
	// Eclipse is the eclipse result used for the diagram.
	Eclipse LunarEclipseResult
	// MoonRadius 是月球半径,单位为图上月球半径;固定为 1。
	// MoonRadius is the Moon radius in diagram Moon-radius units; always 1.
	MoonRadius float64
	// UmbraRadius 是本影半径,单位为图上月球半径。
	// UmbraRadius is the umbral shadow radius in Moon-radius units.
	UmbraRadius float64
	// PenumbraRadius 是半影半径,单位为图上月球半径。
	// PenumbraRadius is the penumbral shadow radius in Moon-radius units.
	PenumbraRadius float64
	// Points 是月心路径点,包含接触点与采样点。
	// Points are Moon-center path points, including contact and sampled points.
	Points []LunarEclipseDiagramPoint
	// StepDays 是实际采用的路径采样步长,单位为日。
	// StepDays is the effective path sampling step in days.
	StepDays float64
}

LunarEclipseDiagramResult 表示月食穿影图几何结果。 LunarEclipseDiagramResult is the geometry result for a lunar eclipse diagram.

func LunarEclipseDiagram

func LunarEclipseDiagram(seedJDE float64, options LunarEclipseDiagramOptions) LunarEclipseDiagramResult

LunarEclipseDiagram 计算月食穿影图几何数据,默认使用 Danjon 影半径模型。 LunarEclipseDiagram computes lunar eclipse diagram geometry, using the Danjon shadow model by default.

func LunarEclipseDiagramChauvenet

func LunarEclipseDiagramChauvenet(seedJDE float64, options LunarEclipseDiagramOptions) LunarEclipseDiagramResult

LunarEclipseDiagramChauvenet 计算月食穿影图几何数据,使用 Chauvenet 影半径模型。 LunarEclipseDiagramChauvenet computes lunar eclipse diagram geometry with the Chauvenet shadow model.

func LunarEclipseDiagramDanjon

func LunarEclipseDiagramDanjon(seedJDE float64, options LunarEclipseDiagramOptions) LunarEclipseDiagramResult

LunarEclipseDiagramDanjon 计算月食穿影图几何数据,使用 Danjon 影半径模型。 LunarEclipseDiagramDanjon computes lunar eclipse diagram geometry with the Danjon shadow model.

type LunarEclipseResult

type LunarEclipseResult struct {
	Type LunarEclipseType

	// Maximum 是食甚时刻;即使最终没有月食,也会返回该次望月附近
	// “月面中心最接近地影中心”的几何极值时刻。
	Maximum float64

	// Magnitude 是本影食分。纯半影月食时可为负值;无月食时为 0。
	Magnitude float64
	// PenumbralMagnitude 是半影食分。无半影接触时为 0。
	PenumbralMagnitude float64

	// MinimumDistance 是食甚时月心到地影中心的最小角距离,单位为弧度。
	MinimumDistance float64

	// Contact times:
	// PenumbralStart / PenumbralEnd: 半影食始 / 半影食终
	// PartialStart / PartialEnd: 初亏 / 复圆
	// TotalStart / TotalEnd: 食既 / 生光
	PenumbralStart float64
	PenumbralEnd   float64
	PartialStart   float64
	PartialEnd     float64
	TotalStart     float64
	TotalEnd       float64

	HasPenumbral bool
	HasPartial   bool
	HasTotal     bool
}

LunarEclipseResult 表示一次望月附近的月食几何结果。

所有时刻字段都使用力学时儒略日(JDE, TT)。 输入 seedJDE 只需要落在目标望月附近,允许相差数天。

func LunarEclipse

func LunarEclipse(seedJDE float64) LunarEclipseResult

LunarEclipse 计算给定近望时刻附近的一次月食,默认使用 Danjon 影半径模型。

seedJDE 为力学时儒略日(TT),只需落在目标望月附近,允许相差数天。 返回值中的所有接触时刻也都是力学时儒略日。

func LunarEclipseChauvenet

func LunarEclipseChauvenet(seedJDE float64) LunarEclipseResult

LunarEclipseChauvenet 计算给定近望时刻附近的一次月食,使用 Chauvenet 影半径模型。

func LunarEclipseDanjon

func LunarEclipseDanjon(seedJDE float64) LunarEclipseResult

LunarEclipseDanjon 计算给定近望时刻附近的一次月食,使用 Danjon 影半径模型。

type LunarEclipseType

type LunarEclipseType string

LunarEclipseType 表示月食类型。

const (
	// LunarEclipseNone 表示该次望月没有发生月食。
	LunarEclipseNone LunarEclipseType = "none"
	// LunarEclipsePenumbral 表示半影月食。
	LunarEclipsePenumbral LunarEclipseType = "penumbral"
	// LunarEclipsePartial 表示月偏食。
	LunarEclipsePartial LunarEclipseType = "partial"
	// LunarEclipseTotal 表示月全食。
	LunarEclipseTotal LunarEclipseType = "total"
)

type Matrix3

type Matrix3 [3][3]float64

三维矩阵

type MoonPhysicalInfo

type MoonPhysicalInfo struct {
	// OpticalLongitude 光学经度天平动,单位度 / optical libration in longitude, degrees.
	OpticalLongitude float64
	// OpticalLatitude 光学纬度天平动,单位度 / optical libration in latitude, degrees.
	OpticalLatitude float64
	// PhysicalLongitude 物理经度天平动,单位度 / physical libration in longitude, degrees.
	PhysicalLongitude float64
	// PhysicalLatitude 物理纬度天平动,单位度 / physical libration in latitude, degrees.
	PhysicalLatitude float64
	// LibrationLongitude 总经度天平动,单位度 / total libration in longitude, degrees.
	LibrationLongitude float64
	// LibrationLatitude 总纬度天平动,单位度 / total libration in latitude, degrees.
	LibrationLatitude float64
	// PositionAngle 月球自转轴位置角,单位度 / position angle of the lunar rotation axis, degrees.
	PositionAngle float64
}

MoonPhysicalInfo 月球物理观测参数 / physical observing parameters of the Moon.

func MoonPhysical

func MoonPhysical(jd float64) MoonPhysicalInfo

MoonPhysical 月球物理观测参数 / physical observing parameters of the Moon.

func MoonPhysicalN

func MoonPhysicalN(jd float64, n int) MoonPhysicalInfo

MoonPhysicalN 月球物理观测参数(截断版) / truncated physical observing parameters of the Moon.

func MoonTopocentricPhysical

func MoonTopocentricPhysical(jd, observerLon, observerLat, height float64) MoonPhysicalInfo

MoonTopocentricPhysical 月球站心物理观测参数 / topocentric physical observing parameters of the Moon.

func MoonTopocentricPhysicalN

func MoonTopocentricPhysicalN(jd, observerLon, observerLat, height float64, n int) MoonPhysicalInfo

MoonTopocentricPhysicalN 月球站心物理观测参数(截断版) / truncated topocentric physical observing parameters of the Moon.

type MoonPlanetConjunctionPlanet added in v0.1.4

type MoonPlanetConjunctionPlanet int

MoonPlanetConjunctionPlanet 月球合月目标行星 / target planet for Moon-planet conjunction events.

const (
	MoonPlanetConjunctionMercury MoonPlanetConjunctionPlanet = iota + 1
	MoonPlanetConjunctionVenus
	MoonPlanetConjunctionMars
	MoonPlanetConjunctionJupiter
	MoonPlanetConjunctionSaturn
	MoonPlanetConjunctionUranus
	MoonPlanetConjunctionNeptune
)

type OrbitElements

type OrbitElements struct {
	EpochJD float64
	A       float64 // 半长径 / semi-major axis in AU.
	E       float64 // 离心率 / eccentricity.
	I       float64 // 轨道倾角 / inclination in degrees.
	Omega   float64 // 升交点黄经 / longitude of ascending node in degrees.
	W       float64 // 近日点幅角 / argument of perihelion in degrees.
	M0      float64 // 历元平近点角 / mean anomaly at epoch in degrees.
	Q       float64 // 近日点距离 / perihelion distance in AU.
	TpJD    float64 // 近日点通过时刻 / perihelion passage TT/TDB Julian day.

	ADot     float64 // 半长径日变化 / daily rate of A in AU/day.
	EDot     float64 // 离心率日变化 / daily rate of E per day.
	IDot     float64 // 倾角日变化 / daily rate of I in deg/day.
	OmegaDot float64 // 升交点黄经日变化 / daily rate of Omega in deg/day.
	WDot     float64 // 近日点幅角日变化 / daily rate of W in deg/day.
	MDot     float64 // 平近点角日变化 / daily rate of M in deg/day.
}

OrbitElements 日心二体圆锥曲线根数,参考系为 J2000 平黄道/平春分点。 EpochJD 与 TpJD 使用 TT/TDB 对应的儒略日。

两种输入形式: 1. 椭圆经典根数:A/E/I/Omega/W/M0(原有形式) 2. 近日点形式:Q/E/I/Omega/W/TpJD,用于高偏心、抛物或双曲轨道

线性 rates 仅作用于经典根数形式,单位均为“每天变化量”。

type PlanetPhysicalInfo

type PlanetPhysicalInfo struct {
	// SubEarthLongitude 子地经度,单位度;正方向遵循该天体当前 IAU/Horizons 制图约定。
	SubEarthLongitude float64
	// SubEarthLatitude 子地纬度,单位度。
	SubEarthLatitude float64
	// SubSolarLongitude 子日经度,单位度;正方向遵循该天体当前 IAU/Horizons 制图约定。
	SubSolarLongitude float64
	// SubSolarLatitude 子日纬度,单位度。
	SubSolarLatitude float64
	// NorthPolePositionAngle 天体北极位置角,单位度。
	NorthPolePositionAngle float64
}

PlanetPhysicalInfo 行星物理观测参数 / planetary physical observing parameters.

func JupiterPhysical

func JupiterPhysical(jd float64) PlanetPhysicalInfo

JupiterPhysical 木星物理观测参数 / physical observing parameters of Jupiter.

func JupiterPhysicalN

func JupiterPhysicalN(jd float64, n int) PlanetPhysicalInfo

JupiterPhysicalN 木星物理观测参数(截断版) / truncated physical observing parameters of Jupiter.

func MarsPhysical

func MarsPhysical(jd float64) PlanetPhysicalInfo

MarsPhysical 火星物理观测参数 / physical observing parameters of Mars.

func MarsPhysicalN

func MarsPhysicalN(jd float64, n int) PlanetPhysicalInfo

MarsPhysicalN 火星物理观测参数(截断版) / truncated physical observing parameters of Mars.

func MercuryPhysical

func MercuryPhysical(jd float64) PlanetPhysicalInfo

MercuryPhysical 水星物理观测参数 / physical observing parameters of Mercury.

func MercuryPhysicalN

func MercuryPhysicalN(jd float64, n int) PlanetPhysicalInfo

MercuryPhysicalN 水星物理观测参数(截断版) / truncated physical observing parameters of Mercury.

func NeptunePhysical

func NeptunePhysical(jd float64) PlanetPhysicalInfo

NeptunePhysical 海王星物理观测参数 / physical observing parameters of Neptune.

func NeptunePhysicalN

func NeptunePhysicalN(jd float64, n int) PlanetPhysicalInfo

NeptunePhysicalN 海王星物理观测参数(截断版) / truncated physical observing parameters of Neptune.

func SaturnPhysical

func SaturnPhysical(jd float64) PlanetPhysicalInfo

SaturnPhysical 土星物理观测参数 / physical observing parameters of Saturn.

func SaturnPhysicalN

func SaturnPhysicalN(jd float64, n int) PlanetPhysicalInfo

SaturnPhysicalN 土星物理观测参数(截断版) / truncated physical observing parameters of Saturn.

func UranusPhysical

func UranusPhysical(jd float64) PlanetPhysicalInfo

UranusPhysical 天王星物理观测参数 / physical observing parameters of Uranus.

func UranusPhysicalN

func UranusPhysicalN(jd float64, n int) PlanetPhysicalInfo

UranusPhysicalN 天王星物理观测参数(截断版) / truncated physical observing parameters of Uranus.

func VenusPhysical

func VenusPhysical(jd float64) PlanetPhysicalInfo

VenusPhysical 金星物理观测参数 / physical observing parameters of Venus.

func VenusPhysicalN

func VenusPhysicalN(jd float64, n int) PlanetPhysicalInfo

VenusPhysicalN 金星物理观测参数(截断版) / truncated physical observing parameters of Venus.

type PlanetTransitResult added in v0.1.1

type PlanetTransitResult struct {
	Valid bool

	// PlanetIndex 为行星序号,1 表示水星,2 表示金星。
	PlanetIndex int

	// ExternalIngress / ExternalEgress 为一触 / 四触。
	ExternalIngress float64
	ExternalEgress  float64
	// InternalIngress / InternalEgress 为二触 / 三触。掠凌没有内切接触时为 0。
	InternalIngress float64
	InternalEgress  float64
	// Greatest 为凌甚,即行星中心最接近太阳中心的时刻。
	Greatest float64

	MinimumSeparationArcsec  float64
	SunSemidiameterArcsec    float64
	PlanetSemidiameterArcsec float64

	HasExternal bool
	HasInternal bool
}

PlanetTransitResult 表示一次地心行星凌日结果。

Valid 为 false 时表示没有找到有效凌日。所有时刻字段均为 UT 儒略日。 MinimumSeparationArcsec、SunSemidiameterArcsec、PlanetSemidiameterArcsec 的单位均为角秒。

func ClosestMercuryTransit added in v0.1.1

func ClosestMercuryTransit(jde float64) PlanetTransitResult

ClosestMercuryTransit 返回距给定时刻最近的一次地心水星凌日。

func ClosestVenusTransit added in v0.1.1

func ClosestVenusTransit(jde float64) PlanetTransitResult

ClosestVenusTransit 返回距给定时刻最近的一次地心金星凌日。

func LastMercuryTransit added in v0.1.1

func LastMercuryTransit(jde float64) PlanetTransitResult

LastMercuryTransit 返回给定时刻之前的上一次地心水星凌日。

func LastVenusTransit added in v0.1.1

func LastVenusTransit(jde float64) PlanetTransitResult

LastVenusTransit 返回给定时刻之前的上一次地心金星凌日。

func NextMercuryTransit added in v0.1.1

func NextMercuryTransit(jde float64) PlanetTransitResult

NextMercuryTransit 返回给定时刻之后的下一次地心水星凌日。

func NextVenusTransit added in v0.1.1

func NextVenusTransit(jde float64) PlanetTransitResult

NextVenusTransit 返回给定时刻之后的下一次地心金星凌日。

type SolarEclipseCentrality

type SolarEclipseCentrality string

SolarEclipseCentrality 表示中心线进入地球的方式。

const (
	// SolarEclipseNonCentral 表示无中心线进入地球。
	SolarEclipseNonCentral SolarEclipseCentrality = "non_central"
	// SolarEclipseCentralOneLimit 表示中心线只形成一侧极限条件。
	SolarEclipseCentralOneLimit SolarEclipseCentrality = "central_one_limit"
	// SolarEclipseCentralTwoLimits 表示中心线完整进入地球,两侧都有界线。
	SolarEclipseCentralTwoLimits SolarEclipseCentrality = "central_two_limits"
)

type SolarEclipsePartialAreaOptions

type SolarEclipsePartialAreaOptions = SolarEclipsePartialFootprintOptions

SolarEclipsePartialAreaOptions 是 SolarEclipsePartialFootprintOptions 的兼容别名。 SolarEclipsePartialAreaOptions is a compatibility alias for SolarEclipsePartialFootprintOptions.

type SolarEclipsePartialAreaResult

type SolarEclipsePartialAreaResult = SolarEclipsePartialFootprintsResult

SolarEclipsePartialAreaResult 是 SolarEclipsePartialFootprintsResult 的兼容别名。 SolarEclipsePartialAreaResult is a compatibility alias for SolarEclipsePartialFootprintsResult.

func SolarEclipsePartialArea

func SolarEclipsePartialArea(seedJDE float64, options SolarEclipsePartialAreaOptions) SolarEclipsePartialAreaResult

SolarEclipsePartialArea 计算日食偏食半影足迹序列,是 SolarEclipsePartialFootprints 的兼容包装。 SolarEclipsePartialArea computes penumbral footprint samples and is a compatibility wrapper for SolarEclipsePartialFootprints.

func SolarEclipsePartialAreaIAUSingleK

func SolarEclipsePartialAreaIAUSingleK(seedJDE float64, options SolarEclipsePartialAreaOptions) SolarEclipsePartialAreaResult

SolarEclipsePartialAreaIAUSingleK 计算日食偏食半影足迹序列,是 SolarEclipsePartialFootprintsIAUSingleK 的兼容包装。 SolarEclipsePartialAreaIAUSingleK is a compatibility wrapper for SolarEclipsePartialFootprintsIAUSingleK.

func SolarEclipsePartialAreaNASABulletinSplitK

func SolarEclipsePartialAreaNASABulletinSplitK(seedJDE float64, options SolarEclipsePartialAreaOptions) SolarEclipsePartialAreaResult

SolarEclipsePartialAreaNASABulletinSplitK 计算日食偏食半影足迹序列,是 SolarEclipsePartialFootprintsNASABulletinSplitK 的兼容包装。 SolarEclipsePartialAreaNASABulletinSplitK is a compatibility wrapper for SolarEclipsePartialFootprintsNASABulletinSplitK.

type SolarEclipsePartialFootprint

type SolarEclipsePartialFootprint struct {
	// JDE 是力学时儒略日, TT Julian ephemeris day.
	JDE float64
	// Boundaries 是半影边界分段;反经线或无效投影会拆成多段。
	// Boundaries are segmented penumbral boundary polylines, split at invalid projections or the antimeridian.
	Boundaries [][]SolarEclipsePathPoint
	// Closed 表示 Boundaries 是否构成一个闭合边界。
	// Closed indicates whether Boundaries form one closed boundary.
	Closed bool
}

SolarEclipsePartialFootprint 表示某一时刻的半影足迹边界。 SolarEclipsePartialFootprint is the penumbral footprint boundary at one instant.

type SolarEclipsePartialFootprintOptions

type SolarEclipsePartialFootprintOptions struct {
	// StepDays 是基础时间采样步长,单位为日;<=0 时使用 5 分钟。
	// StepDays is the base time step in days; values <= 0 use five minutes.
	StepDays float64
	// BoundaryPoints 是每个瞬时半影边界的角向采样点数;<=0 时使用 180。
	// BoundaryPoints is the angular sample count for each instantaneous penumbral boundary; values <= 0 use 180.
	BoundaryPoints int
}

SolarEclipsePartialFootprintOptions 控制日食偏食半影足迹采样。 SolarEclipsePartialFootprintOptions controls solar eclipse penumbral footprint sampling.

type SolarEclipsePartialFootprintsResult

type SolarEclipsePartialFootprintsResult struct {
	// Eclipse 是对应的全局日食结果, related global solar eclipse result.
	Eclipse SolarEclipseResult
	// Footprints 是按时间采样的瞬时半影足迹, sampled instantaneous penumbral footprints.
	Footprints []SolarEclipsePartialFootprint
	// StepDays 是实际采用的基础时间采样步长,单位为日。
	// StepDays is the effective base time step in days.
	StepDays float64
	// BoundaryPoints 是实际采用的边界角向采样点数。
	// BoundaryPoints is the effective angular sample count for each boundary.
	BoundaryPoints int
}

SolarEclipsePartialFootprintsResult 表示一次日食的偏食半影足迹序列。 SolarEclipsePartialFootprintsResult contains penumbral footprint samples for a solar eclipse.

func SolarEclipsePartialFootprints

func SolarEclipsePartialFootprints(seedJDE float64, options SolarEclipsePartialFootprintOptions) SolarEclipsePartialFootprintsResult

SolarEclipsePartialFootprints 计算给定近朔时刻附近的日食偏食半影足迹序列,默认使用 NASA bulletin Split-K 模型。 SolarEclipsePartialFootprints computes penumbral footprint samples near the given new-moon seed, using NASA bulletin Split-K by default.

func SolarEclipsePartialFootprintsIAUSingleK

func SolarEclipsePartialFootprintsIAUSingleK(seedJDE float64, options SolarEclipsePartialFootprintOptions) SolarEclipsePartialFootprintsResult

SolarEclipsePartialFootprintsIAUSingleK 计算日食偏食半影足迹序列,使用 IAU Single-K 模型。 SolarEclipsePartialFootprintsIAUSingleK computes penumbral footprint samples with the IAU Single-K model.

func SolarEclipsePartialFootprintsNASABulletinSplitK

func SolarEclipsePartialFootprintsNASABulletinSplitK(seedJDE float64, options SolarEclipsePartialFootprintOptions) SolarEclipsePartialFootprintsResult

SolarEclipsePartialFootprintsNASABulletinSplitK 计算日食偏食半影足迹序列,使用 NASA bulletin Split-K 模型。 SolarEclipsePartialFootprintsNASABulletinSplitK computes penumbral footprint samples with the NASA bulletin Split-K model.

type SolarEclipsePathOptions

type SolarEclipsePathOptions struct {
	// StepDays 是基础时间采样步长,单位为日;<=0 时使用 1 分钟。
	// StepDays is the base time step in days; values <= 0 use one minute.
	StepDays float64
	// TargetSpacingKM 是相邻中心线点的最大目标地表距离;<=0 时不按距离加密。
	// TargetSpacingKM is the target maximum ground spacing between centerline points; values <= 0 disable spacing refinement.
	TargetSpacingKM float64
}

SolarEclipsePathOptions 控制日食中心路径采样。 SolarEclipsePathOptions controls central solar eclipse path sampling.

type SolarEclipsePathPoint

type SolarEclipsePathPoint struct {
	// JDE 是力学时儒略日, TT Julian ephemeris day.
	JDE float64
	// Longitude 经度,东正西负, longitude in degrees, east positive.
	Longitude float64
	// Latitude 纬度,北正南负, latitude in degrees, north positive.
	Latitude float64
	// SunAltitude 太阳高度角,单位度, Sun altitude in degrees.
	SunAltitude float64
	// WidthKM 中心食带宽度,单位千米;仅中心线点有意义。
	// WidthKM is the central path width in kilometers; meaningful for centerline points.
	WidthKM float64
}

SolarEclipsePathPoint 表示日食路径上的一个地理点。 SolarEclipsePathPoint is one geographic point on a solar eclipse path.

type SolarEclipsePathResult

type SolarEclipsePathResult struct {
	// Eclipse 是对应的全局日食结果, related global solar eclipse result.
	Eclipse SolarEclipseResult
	// Greatest 是食甚点/最佳观测点, greatest eclipse point.
	Greatest SolarEclipsePathPoint
	// CenterLine 是中心线, central line.
	CenterLine []SolarEclipsePathPoint
	// NorthernLimit 是中心食带北界近似线, approximate northern limit of the central path.
	NorthernLimit []SolarEclipsePathPoint
	// SouthernLimit 是中心食带南界近似线, approximate southern limit of the central path.
	SouthernLimit []SolarEclipsePathPoint
	// StepDays 是实际采用的基础时间采样步长,单位为日。
	// StepDays is the effective base time step in days.
	StepDays float64
	// TargetSpacingKM 是实际采用的目标空间采样距离,单位千米。
	// TargetSpacingKM is the effective target spacing in kilometers.
	TargetSpacingKM float64
}

SolarEclipsePathResult 表示一次中心日食的路径数据。 SolarEclipsePathResult contains central solar eclipse path data.

func SolarEclipseCentralPath

func SolarEclipseCentralPath(seedJDE float64, options SolarEclipsePathOptions) SolarEclipsePathResult

SolarEclipseCentralPath 计算给定近朔时刻附近的日食中心路径,默认使用 NASA bulletin Split-K 模型。 SolarEclipseCentralPath computes the central path near the given new-moon seed, using NASA bulletin Split-K by default.

func SolarEclipseCentralPathIAUSingleK

func SolarEclipseCentralPathIAUSingleK(seedJDE float64, options SolarEclipsePathOptions) SolarEclipsePathResult

SolarEclipseCentralPathIAUSingleK 计算日食中心路径,使用 IAU Single-K 模型。 SolarEclipseCentralPathIAUSingleK computes the central path with the IAU Single-K model.

func SolarEclipseCentralPathNASABulletinSplitK

func SolarEclipseCentralPathNASABulletinSplitK(seedJDE float64, options SolarEclipsePathOptions) SolarEclipsePathResult

SolarEclipseCentralPathNASABulletinSplitK 计算日食中心路径,使用 NASA bulletin Split-K 模型。 SolarEclipseCentralPathNASABulletinSplitK computes the central path with the NASA bulletin Split-K model.

type SolarEclipseRadiusModel

type SolarEclipseRadiusModel string

SolarEclipseRadiusModel 表示日食计算中月亮平均半径 k 的取法。

const (
	// SolarEclipseModelIAUSingleK 使用 IAU 单一月亮平均半径 k。
	SolarEclipseModelIAUSingleK SolarEclipseRadiusModel = "iau_single_k"
	// SolarEclipseModelNASABulletinSplitK 使用 NASA bulletin 的 Split-K 口径。
	SolarEclipseModelNASABulletinSplitK SolarEclipseRadiusModel = "nasa_bulletin_split_k"
)

type SolarEclipseResult

type SolarEclipseResult struct {
	Model      SolarEclipseRadiusModel
	Type       SolarEclipseType
	Centrality SolarEclipseCentrality

	// GreatestEclipse 是全局“影轴最接近地心”的时刻。
	GreatestEclipse float64

	// PartialBeginOnEarth / PartialEndOnEarth 是地球范围的偏食开始 / 结束时刻。
	PartialBeginOnEarth float64
	PartialEndOnEarth   float64
	// CentralBeginOnEarth / CentralEndOnEarth 是中心线进入 / 离开地球的时刻。
	CentralBeginOnEarth float64
	CentralEndOnEarth   float64

	// Magnitude 是全局食分。
	Magnitude float64
	// Gamma 是月影轴到地心的有符号最小距离,单位为地球赤道半径。
	Gamma float64
	// PathWidthKM 是食甚点处中心食带宽度。非中心食时为 0。
	PathWidthKM float64

	// GreatestLongitude / GreatestLatitude 是日食食甚点地理坐标,东经为正,西经为负。
	GreatestLongitude float64
	GreatestLatitude  float64

	HasPartial bool
	HasCentral bool
	HasAnnular bool
	HasTotal   bool
	HasHybrid  bool
}

SolarEclipseResult 表示一次朔月附近的全局日食几何结果。

所有时刻字段都使用力学时儒略日(JDE, TT)。 输入 seedJDE 只需要落在目标朔月附近,允许相差数天。

func SolarEclipse

func SolarEclipse(seedJDE float64) SolarEclipseResult

SolarEclipse 计算给定近朔时刻附近的一次全局日食,默认使用 NASABulletin Split-K 模型。

func SolarEclipseIAUSingleK

func SolarEclipseIAUSingleK(seedJDE float64) SolarEclipseResult

SolarEclipseIAUSingleK 计算给定近朔时刻附近的一次全局日食,使用 IAU Single-K 模型。

func SolarEclipseNASABulletinSplitK

func SolarEclipseNASABulletinSplitK(seedJDE float64) SolarEclipseResult

SolarEclipseNASABulletinSplitK 计算给定近朔时刻附近的一次全局日食,使用 NASA bulletin Split-K 模型。

type SolarEclipseType

type SolarEclipseType string

SolarEclipseType 表示整场日食的全局食型。

const (
	// SolarEclipseNone 表示该次朔月没有发生日食。
	SolarEclipseNone SolarEclipseType = "none"
	// SolarEclipsePartial 表示日偏食。
	SolarEclipsePartial SolarEclipseType = "partial"
	// SolarEclipseAnnular 表示日环食。
	SolarEclipseAnnular SolarEclipseType = "annular"
	// SolarEclipseTotal 表示日全食。
	SolarEclipseTotal SolarEclipseType = "total"
	// SolarEclipseHybrid 表示全环食/混合食。
	SolarEclipseHybrid SolarEclipseType = "hybrid"
)

type StarData

type StarData struct {
	InnerStarData
	ChineseName      string
	ChineseAlias     string
	ChineseBayerName string
	CommonName       string
	CommonAliasName  string
	Cst              string
	CstChinese       string
}

func StarDataByChinese

func StarDataByChinese(name string) (StarData, error)

func StarDataByHR

func StarDataByHR(hr int) (StarData, error)

func (StarData) RaDecByDate

func (s StarData) RaDecByDate(date time.Time) (float64, float64)

type SunPhysicalInfo

type SunPhysicalInfo struct {
	// P 太阳北极位置角,单位度 / position angle of the solar north pole in degrees.
	P float64
	// B0 日面中心太阳纬度,单位度 / heliographic latitude of the disk center in degrees.
	B0 float64
	// L0 日面中心卡林顿经度,单位度 / Carrington heliographic longitude of the disk center in degrees.
	L0 float64
}

SunPhysicalInfo 太阳物理观测参数 / physical observing parameters of the Sun.

func SunPhysical

func SunPhysical(jd float64) SunPhysicalInfo

SunPhysical 太阳物理观测参数 / physical observing parameters of the Sun.

func SunPhysicalN

func SunPhysicalN(jd float64, n int) SunPhysicalInfo

SunPhysicalN 太阳物理观测参数(截断版) / truncated physical observing parameters of the Sun.

type Vector3

type Vector3 [3]float64

三维向量

func OrbitAstrometricGeocentricXYZJ2000

func OrbitAstrometricGeocentricXYZJ2000(jd float64, elements OrbitElements) Vector3

OrbitAstrometricGeocentricXYZJ2000 返回光行时修正后的地心 J2000 平黄道直角坐标,单位 AU。

func OrbitGeocentricXYZ

func OrbitGeocentricXYZ(jd float64, elements OrbitElements) Vector3

OrbitGeocentricXYZ 返回地心历元黄道直角坐标,单位 AU。

func OrbitGeocentricXYZJ2000

func OrbitGeocentricXYZJ2000(jd float64, elements OrbitElements) Vector3

OrbitGeocentricXYZJ2000 返回地心 J2000 平黄道直角坐标,单位 AU。

func OrbitHeliocentricXYZ

func OrbitHeliocentricXYZ(jd float64, elements OrbitElements) Vector3

OrbitHeliocentricXYZ 返回日心历元黄道直角坐标,单位 AU。

func OrbitHeliocentricXYZJ2000

func OrbitHeliocentricXYZJ2000(jd float64, elements OrbitElements) Vector3

OrbitHeliocentricXYZJ2000 返回日心 J2000 平黄道直角坐标,单位 AU。

Jump to

Keyboard shortcuts

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