Documentation
¶
Index ¶
- Variables
- func Altitude(date time.Time, lon, lat float64) float64
- func AltitudeN(date time.Time, lon, lat float64, n int) float64
- func ApparentBo(date time.Time) float64
- func ApparentBoN(date time.Time, n int) float64
- func ApparentDec(date time.Time) float64
- func ApparentDecN(date time.Time, n int) float64
- func ApparentLo(date time.Time) float64
- func ApparentLoN(date time.Time, n int) float64
- func ApparentMagnitude(date time.Time) float64
- func ApparentMagnitudeN(date time.Time, n int) float64
- func ApparentRa(date time.Time) float64
- func ApparentRaDec(date time.Time) (float64, float64)
- func ApparentRaDecN(date time.Time, n int) (float64, float64)
- func ApparentRaN(date time.Time, n int) float64
- func AscendingNode(date time.Time) float64
- func AscendingNodeN(date time.Time, n int) float64
- func Azimuth(date time.Time, lon, lat float64) float64
- func AzimuthN(date time.Time, lon, lat float64, n int) float64
- func BrightLimbPositionAngle(date time.Time) float64
- func BrightLimbPositionAngleN(date time.Time, n int) float64
- func CulminationTime(date time.Time, lon float64) time.Time
- func CulminationTimeN(date time.Time, lon float64, n int) time.Time
- func DescendingNode(date time.Time) float64
- func DescendingNodeN(date time.Time, n int) float64
- func Diameter(date time.Time) float64
- func DiameterN(date time.Time, n int) float64
- func DownTime(date time.Time, lon, lat, height float64, aero bool) (time.Time, error)deprecated
- func DownTimeN(date time.Time, lon, lat, height float64, aero bool, n int) (time.Time, error)
- func EarthDistance(date time.Time) float64
- func EarthDistanceN(date time.Time, n int) float64
- func HourAngle(date time.Time, lon float64) float64
- func HourAngleN(date time.Time, lon float64, n int) float64
- func IlluminatedFraction(date time.Time) float64
- func IlluminatedFractionN(date time.Time, n int) float64
- func LastConjunction(date time.Time) time.Time
- func LastEasternQuadrature(date time.Time) time.Time
- func LastOpposition(date time.Time) time.Time
- func LastProgradeToRetrograde(date time.Time) time.Time
- func LastRetrogradeToPrograde(date time.Time) time.Time
- func LastWesternQuadrature(date time.Time) time.Time
- func NextConjunction(date time.Time) time.Time
- func NextEasternQuadrature(date time.Time) time.Time
- func NextOpposition(date time.Time) time.Time
- func NextProgradeToRetrograde(date time.Time) time.Time
- func NextRetrogradeToPrograde(date time.Time) time.Time
- func NextWesternQuadrature(date time.Time) time.Time
- func ParallacticAngle(date time.Time, lon, lat float64) float64
- func ParallacticAngleN(date time.Time, lon, lat float64, n int) float64
- func Phase(date time.Time) float64
- func PhaseAngle(date time.Time) float64
- func PhaseAngleN(date time.Time, n int) float64
- func PhaseN(date time.Time, n int) float64
- func RiseTime(date time.Time, lon, lat, height float64, aero bool) (time.Time, error)
- func RiseTimeN(date time.Time, lon, lat, height float64, aero bool, n int) (time.Time, error)
- func Semidiameter(date time.Time) float64
- func SemidiameterN(date time.Time, n int) float64
- func SetTime(date time.Time, lon, lat, height float64, aero bool) (time.Time, error)
- func SetTimeN(date time.Time, lon, lat, height float64, aero bool, n int) (time.Time, error)
- func SunDistance(date time.Time) float64
- func SunDistanceN(date time.Time, n int) float64
- func Zenith(date time.Time, lon, lat float64) float64
- func ZenithN(date time.Time, lon, lat float64, n int) float64
- type PhysicalInfo
Constants ¶
This section is empty.
Variables ¶
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
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 ApparentBo ¶
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
ApparentBoN 视黄纬(截断版) / truncated apparent ecliptic latitude.
func ApparentDec ¶
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
ApparentDecN 视赤纬(截断版) / truncated apparent declination.
func ApparentLo ¶
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
ApparentLoN 视黄经(截断版) / truncated apparent ecliptic longitude.
func ApparentMagnitude ¶
ApparentMagnitude 视星等 / apparent magnitude.
返回天王星在 date 对应绝对时刻的视星等。 Returns the apparent visual magnitude of Uranus at the instant represented by date.
func ApparentMagnitudeN ¶ added in v0.1.0
ApparentMagnitudeN 视星等(截断版) / truncated apparent magnitude.
func ApparentRa ¶
ApparentRa 视赤经 / apparent right ascension.
返回天王星在 date 对应绝对时刻的瞬时视赤经,单位度。 Returns the apparent right ascension of Uranus at the instant represented by date, in degrees.
func ApparentRaDec ¶
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
ApparentRaDecN 视赤经赤纬(截断版) / truncated apparent right ascension and declination.
func ApparentRaN ¶ added in v0.1.0
ApparentRaN 视赤经(截断版) / truncated apparent right ascension.
func AscendingNode ¶ added in v0.1.0
AscendingNode 天王星升交点黄经 / ascending node longitude of Uranus.
func AscendingNodeN ¶ added in v0.1.0
AscendingNodeN 天王星升交点黄经(截断版) / truncated ascending node longitude of Uranus.
func Azimuth ¶
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 BrightLimbPositionAngle ¶ added in v0.1.0
BrightLimbPositionAngle 亮面中心位置角,单位度 / bright limb position angle in degrees.
func BrightLimbPositionAngleN ¶ added in v0.1.0
BrightLimbPositionAngleN 亮面中心位置角(截断版),单位度 / truncated bright limb position angle in degrees.
func CulminationTime ¶
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
CulminationTimeN 中天时间(截断版) / truncated culmination time.
func DescendingNode ¶ added in v0.1.0
DescendingNode 天王星降交点黄经 / descending node longitude of Uranus.
func DescendingNodeN ¶ added in v0.1.0
DescendingNodeN 天王星降交点黄经(截断版) / truncated descending node longitude of Uranus.
func DiameterN ¶ added in v0.1.0
DiameterN 天王星视直径(截断版),单位角秒 / truncated apparent Uranus diameter in arcseconds.
func EarthDistance ¶
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
EarthDistanceN 地球距离(截断版) / truncated Earth distance.
func HourAngle ¶
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
HourAngleN 时角(截断版) / truncated hour angle.
func IlluminatedFraction ¶ added in v0.1.0
IlluminatedFraction 被照亮比例 / illuminated fraction.
func IlluminatedFractionN ¶ added in v0.1.0
IlluminatedFractionN 被照亮比例(截断版) / truncated illuminated fraction.
func LastConjunction ¶
LastConjunction 上一次合日 / previous conjunction with the Sun.
返回 date 当前或之前最近一次与太阳的合日时刻,结果保持 date 的时区。
func LastEasternQuadrature ¶
LastEasternQuadrature 上一次东方照 / previous eastern quadrature.
返回 date 当前或之前最近一次东方照时刻,结果保持 date 的时区。
func LastOpposition ¶
LastOpposition 上一次冲日 / previous opposition.
返回 date 当前或之前最近一次冲日时刻,结果保持 date 的时区。
func LastProgradeToRetrograde ¶
LastProgradeToRetrograde 上一次顺行转逆行留 / previous station from prograde to retrograde.
返回 date 当前或之前最近一次由顺行转为逆行的留时刻,结果保持 date 的时区。
func LastRetrogradeToPrograde ¶
LastRetrogradeToPrograde 上一次逆行转顺行留 / previous station from retrograde to prograde.
返回 date 当前或之前最近一次由逆行转为顺行的留时刻,结果保持 date 的时区。
func LastWesternQuadrature ¶
LastWesternQuadrature 上一次西方照 / previous western quadrature.
返回 date 当前或之前最近一次西方照时刻,结果保持 date 的时区。
func NextConjunction ¶
NextConjunction 下一次合日 / next conjunction with the Sun.
返回 date 当前或之后最近一次与太阳的合日时刻,结果保持 date 的时区。
func NextEasternQuadrature ¶
NextEasternQuadrature 下一次东方照 / next eastern quadrature.
返回 date 当前或之后最近一次东方照时刻,结果保持 date 的时区。
func NextProgradeToRetrograde ¶
NextProgradeToRetrograde 下一次顺行转逆行留 / next station from prograde to retrograde.
返回 date 当前或之后最近一次由顺行转为逆行的留时刻,结果保持 date 的时区。
func NextRetrogradeToPrograde ¶
NextRetrogradeToPrograde 下一次逆行转顺行留 / next station from retrograde to prograde.
返回 date 当前或之后最近一次由逆行转为顺行的留时刻,结果保持 date 的时区。
func NextWesternQuadrature ¶
NextWesternQuadrature 下一次西方照 / next western quadrature.
返回 date 当前或之后最近一次西方照时刻,结果保持 date 的时区。
func ParallacticAngle ¶ added in v0.1.0
ParallacticAngle 天王星视差角(天顶方向角) / Uranus parallactic angle.
func ParallacticAngleN ¶ added in v0.1.0
ParallacticAngleN 截断项天王星视差角(天顶方向角) / truncated Uranus parallactic angle.
func PhaseAngle ¶ added in v0.1.0
PhaseAngle 相位角,单位度 / phase angle in degrees.
func PhaseAngleN ¶ added in v0.1.0
PhaseAngleN 相位角(截断版),单位度 / truncated phase angle in degrees.
func RiseTime ¶
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 Semidiameter ¶ added in v0.1.0
Semidiameter 天王星视半径,单位角秒 / apparent Uranus semidiameter in arcseconds.
func SemidiameterN ¶ added in v0.1.0
SemidiameterN 天王星视半径(截断版),单位角秒 / truncated apparent Uranus semidiameter in arcseconds.
func SetTime ¶
SetTime 落下时间 / set time.
参数与 RiseTime 相同,返回给定当地日期内的落下时刻。 Uses the same inputs as RiseTime and returns the set time on the corresponding local civil day.
func SunDistance ¶
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
SunDistanceN 太阳距离(截断版) / truncated Sun 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.