-
Notifications
You must be signed in to change notification settings - Fork 0
/
geodetic_elipsoids.py
61 lines (49 loc) · 1.13 KB
/
geodetic_elipsoids.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
def WGS84():
'''
This function returns the following parameters defining the
reference elipsoid WGS84:
a = semimajor axis [m]
f = flattening
output:
a, f
'''
a = 6378137.0
f = 1/298.257223563
return a, f
def SAD69():
'''
This function returns the following parameters defining the
reference elipsoid SAD69:
a = semimajor axis [m]
f = flattening
output:
a, f
'''
a = 6378160.0
f = 1.0/298.25
return a, f
def Hayford1924():
'''
This function returns the following parameters defining the
International (Hayford's) reference elipsoid of 1924:
a = semimajor axis [m]
f = flattening
output:
a, f
'''
a = 6378388.0
f = 1.0/297.0
return a, f
def SAD69_WGS84():
'''
Transformation parameters from local geodetic system
SAD69 to WGS84.
output
dx: float - origin translation along the x-axis (in meters).
dy: float - origin translation along the y-axis (in meters).
dz: float - origin translation along the z-axis (in meters).
'''
dx = -57.
dy = 1.
dz = -41.
return dx, dy, dz