diff --git a/pkg/producer/aux.go b/pkg/producer/aux.go index 964f2dd..db2bb55 100644 --- a/pkg/producer/aux.go +++ b/pkg/producer/aux.go @@ -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, diff --git a/pkg/rrc/moment_matching.go b/pkg/rrc/moment_matching.go index c00cbce..f8c9f05 100644 --- a/pkg/rrc/moment_matching.go +++ b/pkg/rrc/moment_matching.go @@ -8,7 +8,6 @@ import ( ) // Destriping multisensor imagery with moment matching [Gadallah, 2000] -// 基于探元直方图匹配的CBERS01星CCD数据相对辐射校正方法 [潘志强, 2005] func DoMomentMatching(originalImg gocv.Mat) { probes := originalImg.Cols() log.Printf("do moment matching for %d probes, %d rows", probes, originalImg.Rows()) diff --git a/pkg/rrc/rrc.go b/pkg/rrc/rrc.go index 9154f4d..4abedd1 100644 --- a/pkg/rrc/rrc.go +++ b/pkg/rrc/rrc.go @@ -49,6 +49,7 @@ func (rrc *RRC) Statistical(dsPAN, dsMSS string) error { func (rrc *RRC) Close() {} +// 基于探元直方图匹配的CBERS01星CCD数据相对辐射校正方法 [潘志强, 2005] // 统计探元灰度的累积概率密度 func (rrc *RRC) StatisticalPAN(dsfile string) error { utils.PrintMemStats()