|
|
@ -91,6 +91,7 @@ func ApparentRaDec(date time.Time, lon, lat float64) (float64, float64) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// HourAngle 月亮时角
|
|
|
|
// HourAngle 月亮时角
|
|
|
|
|
|
|
|
//
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lat,纬度,北正南负
|
|
|
|
// lat,纬度,北正南负
|
|
|
@ -101,6 +102,7 @@ func HourAngle(date time.Time, lon, lat float64) float64 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Azimuth 月亮方位角
|
|
|
|
// Azimuth 月亮方位角
|
|
|
|
|
|
|
|
//
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lat,纬度,北正南负
|
|
|
|
// lat,纬度,北正南负
|
|
|
@ -111,6 +113,7 @@ func Azimuth(date time.Time, lon, lat float64) float64 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Zenith 月亮高度角
|
|
|
|
// Zenith 月亮高度角
|
|
|
|
|
|
|
|
//
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lat,纬度,北正南负
|
|
|
|
// lat,纬度,北正南负
|
|
|
@ -121,16 +124,21 @@ func Zenith(date time.Time, lon, lat float64) float64 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// CulminationTime 月亮中天时间
|
|
|
|
// CulminationTime 月亮中天时间
|
|
|
|
|
|
|
|
//
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lat,纬度,北正南负
|
|
|
|
// lat,纬度,北正南负
|
|
|
|
func CulminationTime(date time.Time, lon, lat float64) time.Time {
|
|
|
|
func CulminationTime(date time.Time, lon, lat float64) time.Time {
|
|
|
|
|
|
|
|
if date.Hour() > 12 {
|
|
|
|
|
|
|
|
date = date.Add(time.Hour * -12)
|
|
|
|
|
|
|
|
}
|
|
|
|
jde := basic.Date2JDE(date)
|
|
|
|
jde := basic.Date2JDE(date)
|
|
|
|
_, loc := date.Zone()
|
|
|
|
_, loc := date.Zone()
|
|
|
|
return basic.JDE2DateByZone(basic.MoonCulminationTime(jde, lon, lat, float64(loc)/3600.0), date.Location(), true)
|
|
|
|
return basic.JDE2DateByZone(basic.MoonCulminationTime(jde, lon, lat, float64(loc)/3600.0), date.Location(), true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// RiseTime 月亮升起时间
|
|
|
|
// RiseTime 月亮升起时间
|
|
|
|
|
|
|
|
//
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lat,纬度,北正南负
|
|
|
|
// lat,纬度,北正南负
|
|
|
@ -162,6 +170,7 @@ func RiseTime(date time.Time, lon, lat, height float64, aero bool) (time.Time, e
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DownTime 月亮降下时间
|
|
|
|
// DownTime 月亮降下时间
|
|
|
|
|
|
|
|
//
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// date, 世界时(忽略此处时区)
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lon,经度,东正西负
|
|
|
|
// lat,纬度,北正南负
|
|
|
|
// lat,纬度,北正南负
|
|
|
|