方位角和高度角

This commit is contained in:
nuknal
2024-09-26 16:58:42 +08:00
parent 648387af98
commit 3b77d5a850
5 changed files with 74 additions and 17 deletions

View File

@@ -140,6 +140,25 @@ func (r *Registrator) SetSceneBoundary(scene *Scene) (topLeft, bottomRight orb.P
scene.Meta.Pitch = aux0.Eular2 * 180 / math.Pi
scene.Meta.Roll = aux0.Eular1 * 180 / math.Pi
_, centerT, _ := r.SceneImageTime(scene)
scene.Meta.SunAzimuth = SunAzimuth(centerT,
scene.Meta.CentreLocation.Longitude,
scene.Meta.CentreLocation.Latitude)
scene.Meta.SunElevation = SunZenith(centerT,
scene.Meta.CentreLocation.Longitude,
scene.Meta.CentreLocation.Latitude)
scene.Meta.SatAzimuth = SatAzimuth(
scene.Meta.CentreLocation.Longitude,
scene.Meta.CentreLocation.Latitude,
scene.Meta.SatPosY,
scene.Meta.SatPosX)
scene.Meta.SatElevation = SatZenith(
scene.Meta.CentreLocation.Longitude,
scene.Meta.CentreLocation.Latitude,
scene.Meta.SatPosY,
scene.Meta.SatPosX)
// 计算RPC
rpc := NewRPC(r, scene)
if err := rpc.RPC(); err != nil {