astro/orbit/magnitude.go

16 lines
573 B
Go
Raw Normal View History

package orbit
import (
"time"
"b612.me/astro/basic"
)
// AsteroidMagnitudeHG 小行星 H-G 模型视星等 / asteroid apparent magnitude using the H-G model.
//
// absoluteMagnitude 为绝对星等 HslopeParameter 为斜率参数 G。
// absoluteMagnitude is the absolute magnitude H, and slopeParameter is the slope parameter G.
func AsteroidMagnitudeHG(date time.Time, elements Elements, absoluteMagnitude, slopeParameter float64) float64 {
return basic.OrbitAsteroidMagnitudeHG(ttJulianDay(date), toBasicElements(elements), absoluteMagnitude, slopeParameter)
}