方位角和高度角

This commit is contained in:
nuknal
2024-09-27 09:04:01 +08:00
parent 3b77d5a850
commit ae23831a7f
2 changed files with 3 additions and 9 deletions

View File

@@ -168,7 +168,7 @@ func (r *Registrator) OutputL1A(panScenes []*Scene, mssScenes []*Scene) error {
filename := fmt.Sprintf("%s_L1A.tiff", scene.SceneId)
scene.Tiff = filepath.Join(dir, filename)
scene.Meta = r.makeProductMeta(scene)
r.SetSceneBoundary(scene)
r.ComputeMetaAndRPC(scene)
err := utils.SavePanToGDALGTiff(scene.Mat[0],
scene.Meta.Corners.UpperLeft.Longitude,
@@ -215,7 +215,7 @@ func (r *Registrator) OutputL1A(panScenes []*Scene, mssScenes []*Scene) error {
filename := fmt.Sprintf("%s_L1A.tiff", scene.SceneId)
scene.Tiff = filepath.Join(dir, filename)
scene.Meta = r.makeProductMeta(scene)
r.SetSceneBoundary(scene)
r.ComputeMetaAndRPC(scene)
rgbirImage, _ := r.MergeMSSToBGRNIR(scene.Mat)
defer rgbirImage.Close()