辅助数据拟合

This commit is contained in:
nuknal
2024-08-21 15:52:23 +08:00
parent 239d2787e3
commit ca3e91b1d8
10 changed files with 360 additions and 113 deletions

View File

@@ -207,14 +207,9 @@ func (rpc *RPC) calculateLatLonH(row, col int) GroundPoint {
as := rpc.registrator.AuxPlatforms[auxIdx]
t := time.Unix(int64(auxilary.ReferenceTime2000)+int64(as.UTCTimeSec), int64(as.Microsecond)*1000).UTC()
p84 := []float64{as.W84PosX, as.W84PosY, as.W84PosZ}
pECI := []float64{
as.J2000PosX + as.J2000VelX*float64(as.Microsecond)/10e6,
as.J2000PosY + as.J2000VelY*float64(as.Microsecond)/10e6,
as.J2000PosZ + as.J2000VelZ*float64(as.Microsecond)/10e6,
}
Qsat2eci := calculator.Quaternion{W: as.QuatAttstarQ0, X: as.QuatAttstarQ1, Y: as.QuatAttstarQ2, Z: as.QuatAttstarQ3}
groudPoint84, _ := calculator.IntersectionAttitude(Qsat2eci, pECI, p84, t, col)
groudPoint84, _ := calculator.IntersectionAttitude(Qsat2eci, p84, t, col)
elv := dem.Dem1KmLT.Elevation(groudPoint84.Lon, groudPoint84.Lat)
if elv < 0.0 {