4*4*5
This commit is contained in:
@@ -37,7 +37,7 @@ func (it *ImageTime) Extract(aps []*AuxPlatform) {
|
||||
// Interp 内插出成像时刻
|
||||
// 参数: imgrow 图像行号 cross 图像跨度 aps 辅助平台列表
|
||||
// 返回值: 成像时刻(UTC seconds)
|
||||
func (it *ImageTime) Interp(imgrow int, cross int) (float64, float64) {
|
||||
func (it *ImageTime) Interp0(imgrow int, cross int) (float64, float64) {
|
||||
// 内插出成像时刻
|
||||
u := int(imgrow / cross)
|
||||
var u1, u2 *auxT
|
||||
@@ -53,6 +53,14 @@ func (it *ImageTime) Interp(imgrow int, cross int) (float64, float64) {
|
||||
return t, dt
|
||||
}
|
||||
|
||||
func (it *ImageTime) Interp(imgrow int, cross int) (float64, float64) {
|
||||
n := len(it.auxT)
|
||||
rCnt := (it.auxT[n-1].Row-it.auxT[0].Row)*cross + 1
|
||||
dt := (it.auxT[n-1].Tutc - it.auxT[0].Tutc) / float64(rCnt)
|
||||
t := it.auxT[0].Tutc + dt*float64(imgrow)
|
||||
return t, dt
|
||||
}
|
||||
|
||||
func (it *ImageTime) Store(imgtimeFile string) error {
|
||||
f, err := os.Create(imgtimeFile)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user