积分级数

This commit is contained in:
nuknal
2024-09-29 14:15:01 +08:00
parent ae23831a7f
commit 5fd9b06dca
3 changed files with 8 additions and 1 deletions

View File

@@ -134,6 +134,13 @@ func (r *Registrator) ComputeMetaAndRPC(scene *Scene) (topLeft, bottomRight orb.
scene.Meta.Pitch = aux0.Eular2 * 180 / math.Pi
scene.Meta.Roll = aux0.Eular1 * 180 / math.Pi
ebox0 := r.auxBoxes[r.sceneOffsetInAuxIndex(scene, 0)]
if scene.Type == "PAN" {
scene.Meta.IntegratedLevel = int(ebox0.PIntegrationLevel)
} else {
scene.Meta.IntegratedLevel = int(ebox0.B1IntegrationLevel)
}
_, centerT, _ := r.SceneImageTime(scene)
scene.Meta.SunAzimuth = SunAzimuth(centerT,
scene.Meta.CentreLocation.Longitude,