暂时使用星下点坐标作为图像左上角坐标

This commit is contained in:
nuknal
2024-05-30 18:11:42 +08:00
parent e4d6b35702
commit 8f2b297a02
25 changed files with 1710 additions and 84 deletions

10
pkg/calculator/const.go Normal file
View File

@@ -0,0 +1,10 @@
package calculator
// WGS84 ellipsoid constants
const (
EarthRadius = 6378137.0 // 地球半径,单位米
a = 6378137.0 // semi-major axis in meters
f = 1 / 298.257223563 // flattening
e2 = 2*f - f*f // square of eccentricity
J2000Epoch = 2451545.0 // Julian date of J2000 epoch
)