uranus

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERR_URANUS_NEVER_RISE = errors.New("ERROR:极夜,天王星今日永远在地平线下!")
	ERR_URANUS_NEVER_SET  = errors.New("ERROR:极昼,天王星今日永远在地平线上!")
	// ERR_URANUS_NEVER_DOWN deprecated: -- use ERR_URANUS_NEVER_SET instead
	ERR_URANUS_NEVER_DOWN = ERR_URANUS_NEVER_SET
)

Functions

func Altitude added in v0.1.0

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

Altitude 高度角 / altitude.

date 表示观测时刻,会读取其时区参与地方时计算;lon 为观测者经度,东正西负;lat 为观测者纬度,北正南负。返回值单位度。 date is the observing instant and its zone offset participates in local-time calculations. lon is east-positive longitude, lat is north-positive latitude, and the result is in degrees.

func AltitudeN added in v0.1.0

func AltitudeN(date time.Time, lon, lat float64, n int) float64

AltitudeN 高度角(截断版) / truncated altitude angle.

func ApparentBo

func ApparentBo(date time.Time) float64

ApparentBo 视黄纬 / apparent ecliptic latitude.

返回天王星在 date 对应绝对时刻的瞬时视黄纬,单位度。 Returns the apparent ecliptic latitude of Uranus at the instant represented by date, in degrees.

func ApparentBoN added in v0.1.0

func ApparentBoN(date time.Time, n int) float64

ApparentBoN 视黄纬(截断版) / truncated apparent ecliptic latitude.

func ApparentDec

func ApparentDec(date time.Time) float64

ApparentDec 视赤纬 / apparent declination.

返回天王星在 date 对应绝对时刻的瞬时视赤纬,单位度。 Returns the apparent declination of Uranus at the instant represented by date, in degrees.

func ApparentDecN added in v0.1.0

func ApparentDecN(date time.Time, n int) float64

ApparentDecN 视赤纬(截断版) / truncated apparent declination.

func ApparentLo

func ApparentLo(date time.Time) float64

ApparentLo 视黄经 / apparent ecliptic longitude.

返回天王星在 date 对应绝对时刻的瞬时视黄经,单位度。 Returns the apparent ecliptic longitude of Uranus at the instant represented by date, in degrees.

func ApparentLoN added in v0.1.0

func ApparentLoN(date time.Time, n int) float64

ApparentLoN 视黄经(截断版) / truncated apparent ecliptic longitude.

func ApparentMagnitude

func ApparentMagnitude(date time.Time) float64

ApparentMagnitude 视星等 / apparent magnitude.

返回天王星在 date 对应绝对时刻的视星等。 Returns the apparent visual magnitude of Uranus at the instant represented by date.

func ApparentMagnitudeN added in v0.1.0

func ApparentMagnitudeN(date time.Time, n int) float64

ApparentMagnitudeN 视星等(截断版) / truncated apparent magnitude.

func ApparentRa

func ApparentRa(date time.Time) float64

ApparentRa 视赤经 / apparent right ascension.

返回天王星在 date 对应绝对时刻的瞬时视赤经,单位度。 Returns the apparent right ascension of Uranus at the instant represented by date, in degrees.

func ApparentRaDec

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

ApparentRaDec 视赤经、视赤纬 / apparent right ascension and declination.

返回天王星在 date 对应绝对时刻的瞬时视赤经与视赤纬,单位度。 Returns the apparent right ascension and declination of Uranus at the instant represented by date, in degrees.

func ApparentRaDecN added in v0.1.0

func ApparentRaDecN(date time.Time, n int) (float64, float64)

ApparentRaDecN 视赤经赤纬(截断版) / truncated apparent right ascension and declination.

func ApparentRaN added in v0.1.0

func ApparentRaN(date time.Time, n int) float64

ApparentRaN 视赤经(截断版) / truncated apparent right ascension.

func AscendingNode added in v0.1.0

func AscendingNode(date time.Time) float64

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

func AscendingNodeN added in v0.1.0

func AscendingNodeN(date time.Time, n int) float64

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

func Azimuth

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

Azimuth 方位角 / azimuth.

date 表示观测时刻,会读取其时区参与地方时计算;lon 为观测者经度,东正西负;lat 为观测者纬度,北正南负。返回值按正北为 0°、向东增加。 date is the observing instant and its zone offset participates in local-time calculations. lon is east-positive longitude, lat is north-positive latitude, and azimuth is measured from north toward east.

func AzimuthN added in v0.1.0

func AzimuthN(date time.Time, lon, lat float64, n int) float64

AzimuthN 方位角(截断版) / truncated azimuth angle.

func BrightLimbPositionAngle added in v0.1.0

func BrightLimbPositionAngle(date time.Time) float64

BrightLimbPositionAngle 亮面中心位置角,单位度 / bright limb position angle in degrees.

func BrightLimbPositionAngleN added in v0.1.0

func BrightLimbPositionAngleN(date time.Time, n int) float64

BrightLimbPositionAngleN 亮面中心位置角(截断版),单位度 / truncated bright limb position angle in degrees.

func CulminationTime

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

CulminationTime 中天时刻 / culmination time.

date 取其所在时区的当地日期,返回值保持相同时区;lon 为观测者经度,东正西负。 date is interpreted on its local civil day and the result keeps the same time zone. lon is east-positive longitude.

func CulminationTimeN added in v0.1.0

func CulminationTimeN(date time.Time, lon float64, n int) time.Time

CulminationTimeN 中天时间(截断版) / truncated culmination time.

func DescendingNode added in v0.1.0

func DescendingNode(date time.Time) float64

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

func DescendingNodeN added in v0.1.0

func DescendingNodeN(date time.Time, n int) float64

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

func Diameter added in v0.1.0

func Diameter(date time.Time) float64

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

func DiameterN added in v0.1.0

func DiameterN(date time.Time, n int) float64

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

func DownTime deprecated

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

DownTime 落下时间别名 / deprecated set-time alias.

Deprecated: use SetTime instead.

参数与 SetTime 相同,仅为兼容旧接口保留。 Same as SetTime and kept only for backward compatibility.

func DownTimeN added in v0.1.0

func DownTimeN(date time.Time, lon, lat, height float64, aero bool, n int) (time.Time, error)

DownTimeN 落下时间别名(截断版) / truncated down-time alias.

func EarthDistance

func EarthDistance(date time.Time) float64

EarthDistance 地心距离 / Earth distance.

返回天王星在 date 对应绝对时刻到地球的距离,单位 AU。 Returns the distance from Uranus to Earth at the instant represented by date, in astronomical units.

func EarthDistanceN added in v0.1.0

func EarthDistanceN(date time.Time, n int) float64

EarthDistanceN 地球距离(截断版) / truncated Earth distance.

func HourAngle

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

HourAngle 时角 / hour angle.

date 表示观测时刻,会读取其时区参与地方时计算;lon 为观测者经度,东正西负。返回值单位度。 date is the observing instant and its zone offset participates in local-time calculations. lon is east-positive longitude and the returned hour angle is in degrees.

func HourAngleN added in v0.1.0

func HourAngleN(date time.Time, lon float64, n int) float64

HourAngleN 时角(截断版) / truncated hour angle.

func IlluminatedFraction added in v0.1.0

func IlluminatedFraction(date time.Time) float64

IlluminatedFraction 被照亮比例 / illuminated fraction.

func IlluminatedFractionN added in v0.1.0

func IlluminatedFractionN(date time.Time, n int) float64

IlluminatedFractionN 被照亮比例(截断版) / truncated illuminated fraction.

func LastConjunction

func LastConjunction(date time.Time) time.Time

LastConjunction 上一次合日 / previous conjunction with the Sun.

返回 date 之前最近一次与太阳的合日时刻,结果保持 date 的时区。 Returns the most recent conjunction with the Sun relative to date, keeping date's time zone.

func LastEasternQuadrature

func LastEasternQuadrature(date time.Time) time.Time

LastEasternQuadrature 上一次东方照 / previous eastern quadrature.

返回 date 之前最近一次东方照时刻,结果保持 date 的时区。 Returns the most recent eastern quadrature relative to date, keeping date's time zone.

func LastOpposition

func LastOpposition(date time.Time) time.Time

LastOpposition 上一次冲日 / previous opposition.

返回 date 之前最近一次冲日时刻,结果保持 date 的时区。 Returns the most recent opposition relative to date, keeping date's time zone.

func LastProgradeToRetrograde

func LastProgradeToRetrograde(date time.Time) time.Time

LastProgradeToRetrograde 上一次顺行转逆行留 / previous station from prograde to retrograde.

返回 date 之前最近一次由顺行转为逆行的留时刻,结果保持 date 的时区。 Returns the most recent stationary point where motion changes from prograde to retrograde relative to date, keeping date's time zone.

func LastRetrogradeToPrograde

func LastRetrogradeToPrograde(date time.Time) time.Time

LastRetrogradeToPrograde 上一次逆行转顺行留 / previous station from retrograde to prograde.

返回 date 之前最近一次由逆行转为顺行的留时刻,结果保持 date 的时区。 Returns the most recent stationary point where motion changes from retrograde to prograde relative to date, keeping date's time zone.

func LastWesternQuadrature

func LastWesternQuadrature(date time.Time) time.Time

LastWesternQuadrature 上一次西方照 / previous western quadrature.

返回 date 之前最近一次西方照时刻,结果保持 date 的时区。 Returns the most recent western quadrature relative to date, keeping date's time zone.

func NextConjunction

func NextConjunction(date time.Time) time.Time

NextConjunction 下一次合日 / next conjunction with the Sun.

返回 date 之后最近一次与太阳的合日时刻,结果保持 date 的时区。 Returns the next conjunction with the Sun relative to date, keeping date's time zone.

func NextEasternQuadrature

func NextEasternQuadrature(date time.Time) time.Time

NextEasternQuadrature 下一次东方照 / next eastern quadrature.

返回 date 之后最近一次东方照时刻,结果保持 date 的时区。 Returns the next eastern quadrature relative to date, keeping date's time zone.

func NextOpposition

func NextOpposition(date time.Time) time.Time

NextOpposition 下一次冲日 / next opposition.

返回 date 之后最近一次冲日时刻,结果保持 date 的时区。 Returns the next opposition relative to date, keeping date's time zone.

func NextProgradeToRetrograde

func NextProgradeToRetrograde(date time.Time) time.Time

NextProgradeToRetrograde 下一次顺行转逆行留 / next station from prograde to retrograde.

返回 date 之后最近一次由顺行转为逆行的留时刻,结果保持 date 的时区。 Returns the next stationary point where motion changes from prograde to retrograde relative to date, keeping date's time zone.

func NextRetrogradeToPrograde

func NextRetrogradeToPrograde(date time.Time) time.Time

NextRetrogradeToPrograde 下一次逆行转顺行留 / next station from retrograde to prograde.

返回 date 之后最近一次由逆行转为顺行的留时刻,结果保持 date 的时区。 Returns the next stationary point where motion changes from retrograde to prograde relative to date, keeping date's time zone.

func NextWesternQuadrature

func NextWesternQuadrature(date time.Time) time.Time

NextWesternQuadrature 下一次西方照 / next western quadrature.

返回 date 之后最近一次西方照时刻,结果保持 date 的时区。 Returns the next western quadrature relative to date, keeping date's time zone.

func ParallacticAngle added in v0.1.0

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

ParallacticAngle 天王星视差角(天顶方向角) / Uranus parallactic angle.

func ParallacticAngleN added in v0.1.0

func ParallacticAngleN(date time.Time, lon, lat float64, n int) float64

ParallacticAngleN 截断项天王星视差角(天顶方向角) / truncated Uranus parallactic angle.

func Phase added in v0.1.0

func Phase(date time.Time) float64

Phase 相位,被照亮比例 / phase, illuminated fraction.

func PhaseAngle added in v0.1.0

func PhaseAngle(date time.Time) float64

PhaseAngle 相位角,单位度 / phase angle in degrees.

func PhaseAngleN added in v0.1.0

func PhaseAngleN(date time.Time, n int) float64

PhaseAngleN 相位角(截断版),单位度 / truncated phase angle in degrees.

func PhaseN added in v0.1.0

func PhaseN(date time.Time, n int) float64

PhaseN 相位(截断版),被照亮比例 / truncated phase, illuminated fraction.

func RiseTime

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

RiseTime 升起时间 / rise time.

date 取其所在时区的当地日期,返回值保持相同时区;lon 为东正西负经度,lat 为北正南负纬度;height 为观测点海拔高度(米);aero 为 true 时加入标准大气折射。 date is interpreted on its local civil day and the result keeps the same time zone. lon is east-positive longitude, lat is north-positive latitude, height is observer elevation in meters, and aero enables standard atmospheric refraction.

func RiseTimeN added in v0.1.0

func RiseTimeN(date time.Time, lon, lat, height float64, aero bool, n int) (time.Time, error)

RiseTimeN 升起时间(截断版) / truncated rise time.

func Semidiameter added in v0.1.0

func Semidiameter(date time.Time) float64

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

func SemidiameterN added in v0.1.0

func SemidiameterN(date time.Time, n int) float64

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

func SetTime

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

SetTime 落下时间 / set time.

参数与 RiseTime 相同,返回给定当地日期内的落下时刻。 Uses the same inputs as RiseTime and returns the set time on the corresponding local civil day.

func SetTimeN added in v0.1.0

func SetTimeN(date time.Time, lon, lat, height float64, aero bool, n int) (time.Time, error)

SetTimeN 落下时间(截断版) / truncated set time.

func SunDistance

func SunDistance(date time.Time) float64

SunDistance 日心距离 / Sun distance.

返回天王星在 date 对应绝对时刻到太阳的距离,单位 AU。 Returns the distance from Uranus to the Sun at the instant represented by date, in astronomical units.

func SunDistanceN added in v0.1.0

func SunDistanceN(date time.Time, n int) float64

SunDistanceN 太阳距离(截断版) / truncated Sun distance.

func Zenith

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

Zenith 天顶距 / zenith distance.

参数与 Altitude 相同,返回值为对应时刻的天顶距,单位度。 Uses the same inputs as Altitude and returns the zenith distance in degrees.

func ZenithN added in v0.1.0

func ZenithN(date time.Time, lon, lat float64, n int) float64

ZenithN 天顶距(截断版) / truncated zenith distance.

Types

type PhysicalInfo added in v0.1.0

type PhysicalInfo struct {
	// SubEarthLongitude 子地经度,单位度;采用 Uranus 当前 IAU/Horizons 东经为正约定。
	SubEarthLongitude float64
	// SubEarthLatitude 子地纬度,单位度。
	SubEarthLatitude float64
	// SubSolarLongitude 子日经度,单位度;采用 Uranus 当前 IAU/Horizons 东经为正约定。
	SubSolarLongitude float64
	// SubSolarLatitude 子日纬度,单位度。
	SubSolarLatitude float64
	// NorthPolePositionAngle 天王星北极位置角,单位度。
	NorthPolePositionAngle float64
}

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

func Physical added in v0.1.0

func Physical(date time.Time) PhysicalInfo

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

func PhysicalN added in v0.1.0

func PhysicalN(date time.Time, n int) PhysicalInfo

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

func PhysicalSystemIII added in v0.1.0

func PhysicalSystemIII(date time.Time) PhysicalInfo

PhysicalSystemIII 天王星 System III 物理观测参数 / Uranus System III physical observing parameters.

func PhysicalSystemIIIN added in v0.1.0

func PhysicalSystemIIIN(date time.Time, n int) PhysicalInfo

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

Jump to

Keyboard shortcuts

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