2026-08-06 12:00:56 +08:00
|
|
|
package moon
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
"b612.me/astro/basic"
|
|
|
|
|
)
|
|
|
|
|
|
2026-10-15 23:54:15 +08:00
|
|
|
// FindPlanetOccultations 搜索固定地点的有限盘面行星月掩 / finite-disk planetary occultations at a fixed site.
|
|
|
|
|
func (module *Moon) FindPlanetOccultations(start, end time.Time, planet OccultationPlanet, longitude, latitude, height float64,
|
2026-08-06 12:00:56 +08:00
|
|
|
options OccultationSearchOptions) ([]PlanetOccultationInfo, error) {
|
2026-10-15 23:54:15 +08:00
|
|
|
return basic.FindPlanetOccultationsWithInstance(start, end, planet, longitude, latitude, height, module.occultationOptions(options), module.inst)
|
2026-08-06 12:00:56 +08:00
|
|
|
}
|
|
|
|
|
|
2026-10-15 23:54:15 +08:00
|
|
|
// FindBestPlanetOccultations 返回窗口内每次有限盘面行星月掩的全球海平面几何掩甚点 / global greatest points of planetary occultations in a window.
|
|
|
|
|
func (module *Moon) FindBestPlanetOccultations(start, end time.Time, planet OccultationPlanet,
|
2026-08-06 12:00:56 +08:00
|
|
|
options OccultationSearchOptions) ([]PlanetOccultationInfo, error) {
|
2026-10-15 23:54:15 +08:00
|
|
|
return basic.FindBestPlanetOccultationsWithInstance(start, end, planet, module.occultationOptions(options), module.inst)
|
2026-08-06 12:00:56 +08:00
|
|
|
}
|