pygeodesy 24.3.24__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- PyGeodesy-24.3.24.dist-info/METADATA +272 -0
- PyGeodesy-24.3.24.dist-info/RECORD +115 -0
- PyGeodesy-24.3.24.dist-info/WHEEL +6 -0
- PyGeodesy-24.3.24.dist-info/top_level.txt +1 -0
- pygeodesy/LICENSE +21 -0
- pygeodesy/__init__.py +615 -0
- pygeodesy/__main__.py +103 -0
- pygeodesy/albers.py +867 -0
- pygeodesy/auxilats/_CX_4.py +218 -0
- pygeodesy/auxilats/_CX_6.py +314 -0
- pygeodesy/auxilats/_CX_8.py +475 -0
- pygeodesy/auxilats/__init__.py +54 -0
- pygeodesy/auxilats/__main__.py +86 -0
- pygeodesy/auxilats/auxAngle.py +548 -0
- pygeodesy/auxilats/auxDLat.py +302 -0
- pygeodesy/auxilats/auxDST.py +296 -0
- pygeodesy/auxilats/auxLat.py +848 -0
- pygeodesy/auxilats/auxily.py +272 -0
- pygeodesy/azimuthal.py +1150 -0
- pygeodesy/basics.py +892 -0
- pygeodesy/booleans.py +2031 -0
- pygeodesy/cartesianBase.py +1062 -0
- pygeodesy/clipy.py +704 -0
- pygeodesy/constants.py +516 -0
- pygeodesy/css.py +660 -0
- pygeodesy/datums.py +752 -0
- pygeodesy/deprecated/__init__.py +61 -0
- pygeodesy/deprecated/bases.py +40 -0
- pygeodesy/deprecated/classes.py +262 -0
- pygeodesy/deprecated/consterns.py +54 -0
- pygeodesy/deprecated/datum.py +40 -0
- pygeodesy/deprecated/functions.py +375 -0
- pygeodesy/deprecated/nvector.py +48 -0
- pygeodesy/deprecated/rhumbBase.py +32 -0
- pygeodesy/deprecated/rhumbaux.py +33 -0
- pygeodesy/deprecated/rhumbsolve.py +33 -0
- pygeodesy/deprecated/rhumbx.py +33 -0
- pygeodesy/dms.py +986 -0
- pygeodesy/ecef.py +1348 -0
- pygeodesy/elevations.py +279 -0
- pygeodesy/ellipsoidalBase.py +1224 -0
- pygeodesy/ellipsoidalBaseDI.py +913 -0
- pygeodesy/ellipsoidalExact.py +343 -0
- pygeodesy/ellipsoidalGeodSolve.py +343 -0
- pygeodesy/ellipsoidalKarney.py +403 -0
- pygeodesy/ellipsoidalNvector.py +685 -0
- pygeodesy/ellipsoidalVincenty.py +590 -0
- pygeodesy/ellipsoids.py +2476 -0
- pygeodesy/elliptic.py +1198 -0
- pygeodesy/epsg.py +243 -0
- pygeodesy/errors.py +804 -0
- pygeodesy/etm.py +1190 -0
- pygeodesy/fmath.py +1013 -0
- pygeodesy/formy.py +1818 -0
- pygeodesy/frechet.py +865 -0
- pygeodesy/fstats.py +760 -0
- pygeodesy/fsums.py +1898 -0
- pygeodesy/gars.py +358 -0
- pygeodesy/geodesicw.py +581 -0
- pygeodesy/geodesicx/_C4_24.py +1699 -0
- pygeodesy/geodesicx/_C4_27.py +2395 -0
- pygeodesy/geodesicx/_C4_30.py +3301 -0
- pygeodesy/geodesicx/__init__.py +48 -0
- pygeodesy/geodesicx/__main__.py +91 -0
- pygeodesy/geodesicx/gx.py +1382 -0
- pygeodesy/geodesicx/gxarea.py +535 -0
- pygeodesy/geodesicx/gxbases.py +154 -0
- pygeodesy/geodesicx/gxline.py +669 -0
- pygeodesy/geodsolve.py +426 -0
- pygeodesy/geohash.py +914 -0
- pygeodesy/geoids.py +1884 -0
- pygeodesy/hausdorff.py +892 -0
- pygeodesy/heights.py +1155 -0
- pygeodesy/interns.py +687 -0
- pygeodesy/iters.py +545 -0
- pygeodesy/karney.py +919 -0
- pygeodesy/ktm.py +633 -0
- pygeodesy/latlonBase.py +1766 -0
- pygeodesy/lazily.py +960 -0
- pygeodesy/lcc.py +684 -0
- pygeodesy/ltp.py +1107 -0
- pygeodesy/ltpTuples.py +1563 -0
- pygeodesy/mgrs.py +721 -0
- pygeodesy/named.py +1324 -0
- pygeodesy/namedTuples.py +683 -0
- pygeodesy/nvectorBase.py +695 -0
- pygeodesy/osgr.py +781 -0
- pygeodesy/points.py +1686 -0
- pygeodesy/props.py +628 -0
- pygeodesy/resections.py +1048 -0
- pygeodesy/rhumb/__init__.py +46 -0
- pygeodesy/rhumb/aux_.py +397 -0
- pygeodesy/rhumb/bases.py +1148 -0
- pygeodesy/rhumb/ekx.py +563 -0
- pygeodesy/rhumb/solve.py +572 -0
- pygeodesy/simplify.py +647 -0
- pygeodesy/solveBase.py +472 -0
- pygeodesy/sphericalBase.py +724 -0
- pygeodesy/sphericalNvector.py +1264 -0
- pygeodesy/sphericalTrigonometry.py +1447 -0
- pygeodesy/streprs.py +627 -0
- pygeodesy/trf.py +2079 -0
- pygeodesy/triaxials.py +1484 -0
- pygeodesy/units.py +969 -0
- pygeodesy/unitsBase.py +349 -0
- pygeodesy/ups.py +538 -0
- pygeodesy/utily.py +1231 -0
- pygeodesy/utm.py +762 -0
- pygeodesy/utmups.py +318 -0
- pygeodesy/utmupsBase.py +517 -0
- pygeodesy/vector2d.py +785 -0
- pygeodesy/vector3d.py +968 -0
- pygeodesy/vector3dBase.py +1049 -0
- pygeodesy/webmercator.py +383 -0
- pygeodesy/wgrs.py +439 -0
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
u'''Coeficients for C{_AUXLATITUDE_ORDER} 8 from I{Karney}'s C++ class U{AuxLatitude
|
|
5
|
+
<https://GeographicLib.SourceForge.io/C++/doc/classGeographicLib_1_1AuxLatitude.html>}
|
|
6
|
+
trancoded to a double, uniquified Python C{dict[auxout][auxin]}.
|
|
7
|
+
|
|
8
|
+
Copyright (C) Charles Karney (2022-2023) Karney@Alum.MIT.edu> and licensed under the
|
|
9
|
+
MIT/X11 License. For more information, see <https:#GeographicLib.SourceForge.io>.
|
|
10
|
+
'''
|
|
11
|
+
# make sure int/int division yields float quotient
|
|
12
|
+
from __future__ import division as _; del _ # PYCHOK semicolon
|
|
13
|
+
|
|
14
|
+
from pygeodesy.auxilats.auxily import Aux, _Ufloats
|
|
15
|
+
from pygeodesy.constants import _0_0, _0_125, _0_25, _0_5, _1_0, _N_1_0, _1_5, \
|
|
16
|
+
_2_0, _N_2_0, _4_0, _6_0, _8_0, _16_0, _32_0
|
|
17
|
+
|
|
18
|
+
__all__ = ()
|
|
19
|
+
__version__ = '23.08.19'
|
|
20
|
+
|
|
21
|
+
_f, _u = float, _Ufloats()
|
|
22
|
+
_coeffs_8 = _u._Coeffs(8, { # GEOGRAPHICLIB_AUXLATITUDE_ORDER == 8
|
|
23
|
+
Aux.PHI: {
|
|
24
|
+
# C[phi,phi] skipped
|
|
25
|
+
Aux.BETA: _u( # C[phi,beta]; even coeffs only
|
|
26
|
+
_0_0, _0_0, _0_0, _1_0,
|
|
27
|
+
_0_0, _0_0, _0_0, _0_5,
|
|
28
|
+
_0_0, _0_0, 1 / _f(3),
|
|
29
|
+
_0_0, _0_0, _0_25,
|
|
30
|
+
_0_0, 1 / _f(5),
|
|
31
|
+
_0_0, 1 / _f(6),
|
|
32
|
+
1 / _f(7),
|
|
33
|
+
_0_125,),
|
|
34
|
+
Aux.THETA: _u( # C[phi,theta]; even coeffs only
|
|
35
|
+
_N_2_0, _2_0, _N_2_0, _2_0,
|
|
36
|
+
-_8_0, _6_0, -_4_0, _2_0,
|
|
37
|
+
_16_0, -_8_0, 8 / _f(3),
|
|
38
|
+
40, -_16_0, _4_0,
|
|
39
|
+
-_32_0, 32 / _f(5),
|
|
40
|
+
-64, 32 / _f(3),
|
|
41
|
+
128 / _f(7),
|
|
42
|
+
_32_0,),
|
|
43
|
+
Aux.MU: _u( # C[phi,mu]; even coeffs only
|
|
44
|
+
-6607 / _f(24576), 269 / _f(512), -27 / _f(32), _1_5,
|
|
45
|
+
-155113 / _f(122880), 6759 / _f(4096), -55 / _f(32), 21 / _f(16),
|
|
46
|
+
87963 / _f(20480), -417 / _f(128), 151 / _f(96),
|
|
47
|
+
2514467 / _f(245760), -15543 / _f(2560), 1097 / _f(512),
|
|
48
|
+
-69119 / _f(6144), 8011 / _f(2560),
|
|
49
|
+
-5962461 / _f(286720), 293393 / _f(61440),
|
|
50
|
+
6459601 / _f(860160),
|
|
51
|
+
332287993 / _f(27525120),),
|
|
52
|
+
Aux.CHI: _u( # C[phi,chi]
|
|
53
|
+
189416 / _f(99225), 16822 / _f(4725), -2854 / _f(675), 26 / _f(45),
|
|
54
|
+
116 / _f(45), _N_2_0, -2 / _f(3), _2_0,
|
|
55
|
+
141514 / _f(8505), -31256 / _f(1575), 2323 / _f(945), 2704 / _f(315),
|
|
56
|
+
-227 / _f(45), -8 / _f(5), 7 / _f(3),
|
|
57
|
+
-2363828 / _f(31185), 98738 / _f(14175), 73814 / _f(2835),
|
|
58
|
+
-1262 / _f(105), -136 / _f(35), 56 / _f(15),
|
|
59
|
+
14416399 / _f(935550), 11763988 / _f(155925), -399572 / _f(14175),
|
|
60
|
+
-332 / _f(35), 4279 / _f(630),
|
|
61
|
+
258316372 / _f(1216215), -2046082 / _f(31185), -144838 / _f(6237),
|
|
62
|
+
4174 / _f(315),
|
|
63
|
+
-2155215124 / _f(14189175), -115444544 / _f(2027025),
|
|
64
|
+
601676 / _f(22275),
|
|
65
|
+
-170079376 / _f(1216215), 38341552 / _f(675675),
|
|
66
|
+
1383243703 / _f(11351340),),
|
|
67
|
+
Aux.XI: _u( # C[phi,xi]
|
|
68
|
+
-1683291094 / _f(37574026875), 22947844 / _f(1915538625),
|
|
69
|
+
28112932 / _f(212837625), 60136 / _f(467775), -2582 / _f(14175),
|
|
70
|
+
-16 / _f(35), 4 / _f(45), 4 / _f(3),
|
|
71
|
+
-14351220203 / _f(488462349375), 1228352 / _f(3007125),
|
|
72
|
+
251310128 / _f(638512875), -21016 / _f(51975), -11966 / _f(14175),
|
|
73
|
+
152 / _f(945), 46 / _f(45),
|
|
74
|
+
505559334506 / _f(488462349375), 138128272 / _f(147349125),
|
|
75
|
+
-8797648 / _f(10945935), -94388 / _f(66825), 3802 / _f(14175),
|
|
76
|
+
3044 / _f(2835),
|
|
77
|
+
973080708361 / _f(488462349375), -45079184 / _f(29469825),
|
|
78
|
+
-1472637812 / _f(638512875), 41072 / _f(93555), 6059 / _f(4725),
|
|
79
|
+
-1385645336626 / _f(488462349375), -550000184 / _f(147349125),
|
|
80
|
+
455935736 / _f(638512875), 768272 / _f(467775),
|
|
81
|
+
-2939205114427 / _f(488462349375), 443810768 / _f(383107725),
|
|
82
|
+
4210684958 / _f(1915538625),
|
|
83
|
+
101885255158 / _f(54273594375), 387227992 / _f(127702575),
|
|
84
|
+
1392441148867 / _f(325641566250),)
|
|
85
|
+
},
|
|
86
|
+
Aux.BETA: {
|
|
87
|
+
Aux.PHI: _u( # C[beta,phi]; even coeffs only
|
|
88
|
+
_0_0, _0_0, _0_0, _N_1_0,
|
|
89
|
+
_0_0, _0_0, _0_0, _0_5,
|
|
90
|
+
_0_0, _0_0, -1 / _f(3),
|
|
91
|
+
_0_0, _0_0, _0_25,
|
|
92
|
+
_0_0, -1 / _f(5),
|
|
93
|
+
_0_0, 1 / _f(6),
|
|
94
|
+
-1 / _f(7),
|
|
95
|
+
_0_125,),
|
|
96
|
+
# C[beta,beta] skipped
|
|
97
|
+
Aux.THETA: _u( # C[beta,theta]; even coeffs only
|
|
98
|
+
_0_0, _0_0, _0_0, _1_0,
|
|
99
|
+
_0_0, _0_0, _0_0, _0_5,
|
|
100
|
+
_0_0, _0_0, 1 / _f(3),
|
|
101
|
+
_0_0, _0_0, _0_25,
|
|
102
|
+
_0_0, 1 / _f(5),
|
|
103
|
+
_0_0, 1 / _f(6),
|
|
104
|
+
1 / _f(7),
|
|
105
|
+
_0_125,),
|
|
106
|
+
Aux.MU: _u( # C[beta,mu]; even coeffs only
|
|
107
|
+
-4879 / _f(73728), 205 / _f(1536), -9 / _f(32), _0_5,
|
|
108
|
+
-86171 / _f(368640), 1335 / _f(4096), -37 / _f(96), 5 / _f(16),
|
|
109
|
+
2901 / _f(4096), -75 / _f(128), 29 / _f(96),
|
|
110
|
+
1082857 / _f(737280), -2391 / _f(2560), 539 / _f(1536),
|
|
111
|
+
-28223 / _f(18432), 3467 / _f(7680),
|
|
112
|
+
-733437 / _f(286720), 38081 / _f(61440),
|
|
113
|
+
459485 / _f(516096),
|
|
114
|
+
109167851 / _f(82575360),),
|
|
115
|
+
Aux.CHI: _u( # C[beta,chi]
|
|
116
|
+
-25666 / _f(99225), 4769 / _f(4725), -3118 / _f(4725), -1 / _f(3),
|
|
117
|
+
38 / _f(45), -1 / _f(3), -2 / _f(3), _1_0,
|
|
118
|
+
193931 / _f(42525), -14404 / _f(4725), -247 / _f(270), 50 / _f(21),
|
|
119
|
+
-7 / _f(9), -14 / _f(15), 5 / _f(6),
|
|
120
|
+
-1709614 / _f(155925), -36521 / _f(14175), 17564 / _f(2835), -5 / _f(3),
|
|
121
|
+
-34 / _f(21), 16 / _f(15),
|
|
122
|
+
-637699 / _f(85050), 2454416 / _f(155925), -49877 / _f(14175),
|
|
123
|
+
-28 / _f(9), 2069 / _f(1260),
|
|
124
|
+
48124558 / _f(1216215), -20989 / _f(2835), -28244 / _f(4455),
|
|
125
|
+
883 / _f(315),
|
|
126
|
+
-16969807 / _f(1091475), -2471888 / _f(184275), 797222 / _f(155925),
|
|
127
|
+
-1238578 / _f(42525), 2199332 / _f(225225),
|
|
128
|
+
87600385 / _f(4540536),),
|
|
129
|
+
Aux.XI: _u( # C[beta,xi]
|
|
130
|
+
-5946082372 / _f(488462349375), 9708931 / _f(1915538625),
|
|
131
|
+
7947332 / _f(212837625), 11824 / _f(467775), -1082 / _f(14175),
|
|
132
|
+
-46 / _f(315), 4 / _f(45), 1 / _f(3),
|
|
133
|
+
190673521 / _f(69780335625), 164328266 / _f(1915538625),
|
|
134
|
+
39946703 / _f(638512875), -16672 / _f(155925), -338 / _f(2025),
|
|
135
|
+
68 / _f(945), 17 / _f(90),
|
|
136
|
+
86402898356 / _f(488462349375), 236067184 / _f(1915538625),
|
|
137
|
+
-255454 / _f(1563705), -101069 / _f(467775), 1102 / _f(14175),
|
|
138
|
+
461 / _f(2835),
|
|
139
|
+
110123070361 / _f(488462349375), -98401826 / _f(383107725),
|
|
140
|
+
-189032762 / _f(638512875), 1786 / _f(18711), 3161 / _f(18900),
|
|
141
|
+
-200020620676 / _f(488462349375), -802887278 / _f(1915538625),
|
|
142
|
+
80274086 / _f(638512875), 88868 / _f(467775),
|
|
143
|
+
-296107325077 / _f(488462349375), 66263486 / _f(383107725),
|
|
144
|
+
880980241 / _f(3831077250),
|
|
145
|
+
4433064236 / _f(18091198125), 37151038 / _f(127702575),
|
|
146
|
+
495248998393 / _f(1302566265000),)
|
|
147
|
+
},
|
|
148
|
+
Aux.THETA: {
|
|
149
|
+
Aux.PHI: _u( # C[theta,phi]; even coeffs only
|
|
150
|
+
_2_0, _N_2_0, _2_0, _N_2_0,
|
|
151
|
+
-_8_0, _6_0, -_4_0, _2_0,
|
|
152
|
+
-_16_0, _8_0, -8 / _f(3),
|
|
153
|
+
40, -_16_0, _4_0,
|
|
154
|
+
_32_0, -32 / _f(5),
|
|
155
|
+
-64, 32 / _f(3),
|
|
156
|
+
-128 / _f(7),
|
|
157
|
+
_32_0,),
|
|
158
|
+
Aux.BETA: _u( # C[theta,beta]; even coeffs only
|
|
159
|
+
_0_0, _0_0, _0_0, _N_1_0,
|
|
160
|
+
_0_0, _0_0, _0_0, _0_5,
|
|
161
|
+
_0_0, _0_0, -1 / _f(3),
|
|
162
|
+
_0_0, _0_0, _0_25,
|
|
163
|
+
_0_0, -1 / _f(5),
|
|
164
|
+
_0_0, 1 / _f(6),
|
|
165
|
+
-1 / _f(7),
|
|
166
|
+
_0_125,),
|
|
167
|
+
# C[theta,theta] skipped
|
|
168
|
+
Aux.MU: _u( # C[theta,mu]; even coeffs only
|
|
169
|
+
-14321 / _f(73728), 499 / _f(1536), -23 / _f(32), -1 / _f(2),
|
|
170
|
+
-201467 / _f(368640), 6565 / _f(12288), -5 / _f(96), 5 / _f(16),
|
|
171
|
+
2939 / _f(4096), -77 / _f(128), 1 / _f(32),
|
|
172
|
+
1155049 / _f(737280), -4037 / _f(7680), 283 / _f(1536),
|
|
173
|
+
-19465 / _f(18432), 1301 / _f(7680),
|
|
174
|
+
-442269 / _f(286720), 17089 / _f(61440),
|
|
175
|
+
198115 / _f(516096),
|
|
176
|
+
48689387 / _f(82575360),),
|
|
177
|
+
Aux.CHI: _u( # C[theta,chi]
|
|
178
|
+
64424 / _f(99225), 76 / _f(225), -3658 / _f(4725), 2 / _f(9), 4 / _f(9),
|
|
179
|
+
-2 / _f(3), -2 / _f(3), _0_0,
|
|
180
|
+
2146 / _f(1215), -2728 / _f(945), 61 / _f(135), 68 / _f(45),
|
|
181
|
+
-23 / _f(45), -4 / _f(15), 1 / _f(3),
|
|
182
|
+
-95948 / _f(10395), 428 / _f(945), 9446 / _f(2835), -46 / _f(35),
|
|
183
|
+
-24 / _f(35), 2 / _f(5),
|
|
184
|
+
29741 / _f(85050), 4472 / _f(525), -34712 / _f(14175), -80 / _f(63),
|
|
185
|
+
83 / _f(126),
|
|
186
|
+
280108 / _f(13365), -17432 / _f(3465), -2362 / _f(891), 52 / _f(45),
|
|
187
|
+
-48965632 / _f(4729725), -548752 / _f(96525), 335882 / _f(155925),
|
|
188
|
+
-197456 / _f(15795), 51368 / _f(12285),
|
|
189
|
+
1461335 / _f(174636),),
|
|
190
|
+
Aux.XI: _u( # C[theta,xi]
|
|
191
|
+
-230886326 / _f(6343666875), -189115382 / _f(1915538625),
|
|
192
|
+
216932 / _f(2627625), 109042 / _f(467775), -2102 / _f(14175),
|
|
193
|
+
-158 / _f(315), 4 / _f(45), -2 / _f(3),
|
|
194
|
+
-11696145869 / _f(69780335625), 288456008 / _f(1915538625),
|
|
195
|
+
117952358 / _f(638512875), -7256 / _f(155925), 934 / _f(14175),
|
|
196
|
+
-16 / _f(945), 16 / _f(45),
|
|
197
|
+
91546732346 / _f(488462349375), 478700902 / _f(1915538625),
|
|
198
|
+
-7391576 / _f(54729675), -25286 / _f(66825), 922 / _f(14175),
|
|
199
|
+
-232 / _f(2835),
|
|
200
|
+
218929662961 / _f(488462349375), -67330724 / _f(383107725),
|
|
201
|
+
-67048172 / _f(638512875), 268 / _f(18711), 719 / _f(4725),
|
|
202
|
+
-129039188386 / _f(488462349375), -117954842 / _f(273648375),
|
|
203
|
+
46774256 / _f(638512875), 14354 / _f(467775),
|
|
204
|
+
-178084928947 / _f(488462349375), 2114368 / _f(34827975),
|
|
205
|
+
253129538 / _f(1915538625),
|
|
206
|
+
6489189398 / _f(54273594375), 13805944 / _f(127702575),
|
|
207
|
+
59983985827 / _f(325641566250),)
|
|
208
|
+
},
|
|
209
|
+
Aux.MU: {
|
|
210
|
+
Aux.PHI: _u( # C[mu,phi]; even coeffs only
|
|
211
|
+
57 / _f(2048), -3 / _f(32), 9 / _f(16), -3 / _f(2),
|
|
212
|
+
-105 / _f(4096), 135 / _f(2048), -15 / _f(32), 15 / _f(16),
|
|
213
|
+
-105 / _f(2048), 105 / _f(256), -35 / _f(48),
|
|
214
|
+
693 / _f(16384), -189 / _f(512), 315 / _f(512),
|
|
215
|
+
693 / _f(2048), -693 / _f(1280),
|
|
216
|
+
-1287 / _f(4096), 1001 / _f(2048),
|
|
217
|
+
-6435 / _f(14336),
|
|
218
|
+
109395 / _f(262144),),
|
|
219
|
+
Aux.BETA: _u( # C[mu,beta]; even coeffs only
|
|
220
|
+
19 / _f(2048), -1 / _f(32), 3 / _f(16), -1 / _f(2),
|
|
221
|
+
7 / _f(4096), -9 / _f(2048), 1 / _f(32), -1 / _f(16),
|
|
222
|
+
-3 / _f(2048), 3 / _f(256), -1 / _f(48),
|
|
223
|
+
-11 / _f(16384), 3 / _f(512), -5 / _f(512),
|
|
224
|
+
7 / _f(2048), -7 / _f(1280),
|
|
225
|
+
9 / _f(4096), -7 / _f(2048),
|
|
226
|
+
-33 / _f(14336),
|
|
227
|
+
-429 / _f(262144),),
|
|
228
|
+
Aux.THETA: _u( # C[mu,theta]; even coeffs only
|
|
229
|
+
509 / _f(2048), -15 / _f(32), 13 / _f(16), _0_5,
|
|
230
|
+
2599 / _f(4096), -1673 / _f(2048), 33 / _f(32), -1 / _f(16),
|
|
231
|
+
-2989 / _f(2048), 349 / _f(256), -5 / _f(16),
|
|
232
|
+
-43531 / _f(16384), 963 / _f(512), -261 / _f(512),
|
|
233
|
+
5545 / _f(2048), -921 / _f(1280),
|
|
234
|
+
16617 / _f(4096), -6037 / _f(6144),
|
|
235
|
+
-19279 / _f(14336),
|
|
236
|
+
-490925 / _f(262144),),
|
|
237
|
+
# C[mu,mu] skipped
|
|
238
|
+
Aux.CHI: _u( # C[mu,chi]
|
|
239
|
+
-18975107 / _f(50803200), 72161 / _f(387072), 7891 / _f(37800),
|
|
240
|
+
-127 / _f(288), 41 / _f(180), 5 / _f(16), -2 / _f(3), _0_5,
|
|
241
|
+
148003883 / _f(174182400), 13769 / _f(28800), -1983433 / _f(1935360),
|
|
242
|
+
281 / _f(630), 557 / _f(1440), -3 / _f(5), 13 / _f(48),
|
|
243
|
+
79682431 / _f(79833600), -67102379 / _f(29030400), 167603 / _f(181440),
|
|
244
|
+
15061 / _f(26880), -103 / _f(140), 61 / _f(240),
|
|
245
|
+
-40176129013 / _f(7664025600), 97445 / _f(49896),
|
|
246
|
+
6601661 / _f(7257600), -179 / _f(168), 49561 / _f(161280),
|
|
247
|
+
2605413599 / _f(622702080), 14644087 / _f(9123840),
|
|
248
|
+
-3418889 / _f(1995840), 34729 / _f(80640),
|
|
249
|
+
175214326799 / _f(58118860800), -30705481 / _f(10378368),
|
|
250
|
+
212378941 / _f(319334400),
|
|
251
|
+
-16759934899 / _f(3113510400), 1522256789 / _f(1383782400),
|
|
252
|
+
1424729850961 / _f(743921418240),),
|
|
253
|
+
Aux.XI: _u( # C[mu,xi]
|
|
254
|
+
-375027460897 / _f(125046361440000),
|
|
255
|
+
7183403063 / _f(560431872000), 12674323 / _f(851350500),
|
|
256
|
+
-384229 / _f(14968800), -1609 / _f(28350), 121 / _f(1680), 4 / _f(45),
|
|
257
|
+
-1 / _f(6),
|
|
258
|
+
30410873385097 / _f(2000741783040000),
|
|
259
|
+
1117820213 / _f(122594472000), -31621753811 / _f(1307674368000),
|
|
260
|
+
-431 / _f(17325), 16463 / _f(453600), 26 / _f(945), -29 / _f(720),
|
|
261
|
+
151567502183 / _f(17863765920000),
|
|
262
|
+
-116359346641 / _f(3923023104000), -32844781 / _f(1751349600),
|
|
263
|
+
3746047 / _f(119750400), 449 / _f(28350), -1003 / _f(45360),
|
|
264
|
+
-317251099510901 / _f(8002967132160000), -13060303 / _f(766215450),
|
|
265
|
+
10650637121 / _f(326918592000), 629 / _f(53460),
|
|
266
|
+
-40457 / _f(2419200),
|
|
267
|
+
-2105440822861 / _f(125046361440000),
|
|
268
|
+
146875240637 / _f(3923023104000), 205072597 / _f(20432412000),
|
|
269
|
+
-1800439 / _f(119750400),
|
|
270
|
+
91496147778023 / _f(2000741783040000), 228253559 / _f(24518894400),
|
|
271
|
+
-59109051671 / _f(3923023104000),
|
|
272
|
+
126430355893 / _f(13894040160000),
|
|
273
|
+
-4255034947 / _f(261534873600),
|
|
274
|
+
-791820407649841 / _f(42682491371520000),)
|
|
275
|
+
},
|
|
276
|
+
Aux.CHI: {
|
|
277
|
+
Aux.PHI: _u( # C[chi,phi]
|
|
278
|
+
1514 / _f(1323), -8384 / _f(4725), 4642 / _f(4725), 32 / _f(45),
|
|
279
|
+
-82 / _f(45), 4 / _f(3), 2 / _f(3), _N_2_0,
|
|
280
|
+
142607 / _f(42525), -2288 / _f(1575), -1522 / _f(945), 904 / _f(315),
|
|
281
|
+
-13 / _f(9), -16 / _f(15), 5 / _f(3),
|
|
282
|
+
120202 / _f(51975), 44644 / _f(14175), -12686 / _f(2835), 8 / _f(5),
|
|
283
|
+
34 / _f(21), -26 / _f(15),
|
|
284
|
+
-1097407 / _f(187110), 1077964 / _f(155925), -24832 / _f(14175),
|
|
285
|
+
-12 / _f(5), 1237 / _f(630),
|
|
286
|
+
-12870194 / _f(1216215), 1040 / _f(567), 109598 / _f(31185),
|
|
287
|
+
-734 / _f(315),
|
|
288
|
+
-126463 / _f(72765), -941912 / _f(184275), 444337 / _f(155925),
|
|
289
|
+
3463678 / _f(467775), -2405834 / _f(675675),
|
|
290
|
+
256663081 / _f(56756700),),
|
|
291
|
+
Aux.BETA: _u( # C[chi,beta]
|
|
292
|
+
1384 / _f(11025), -34 / _f(4725), -998 / _f(4725), 2 / _f(5),
|
|
293
|
+
-16 / _f(45), _0_0, 2 / _f(3), _N_1_0,
|
|
294
|
+
-12616 / _f(42525), 1268 / _f(4725), -2 / _f(27), -22 / _f(105),
|
|
295
|
+
19 / _f(45), -2 / _f(5), 1 / _f(6),
|
|
296
|
+
1724 / _f(51975), -1858 / _f(14175), 116 / _f(567), -22 / _f(105),
|
|
297
|
+
16 / _f(105), -1 / _f(15),
|
|
298
|
+
115249 / _f(935550), -26836 / _f(155925), 2123 / _f(14175), -8 / _f(105),
|
|
299
|
+
17 / _f(1260),
|
|
300
|
+
140836 / _f(1216215), -424 / _f(6237), 128 / _f(4455), -1 / _f(105),
|
|
301
|
+
210152 / _f(4729725), -31232 / _f(2027025), 149 / _f(311850),
|
|
302
|
+
30208 / _f(6081075), -499 / _f(225225),
|
|
303
|
+
-68251 / _f(113513400),),
|
|
304
|
+
Aux.THETA: _u( # C[chi,theta]
|
|
305
|
+
-1738 / _f(11025), 18 / _f(175), 1042 / _f(4725), -14 / _f(45),
|
|
306
|
+
-2 / _f(9), 2 / _f(3), 2 / _f(3), _0_0,
|
|
307
|
+
23159 / _f(42525), 332 / _f(945), -712 / _f(945), -4 / _f(45),
|
|
308
|
+
43 / _f(45), 4 / _f(15), -1 / _f(3),
|
|
309
|
+
13102 / _f(31185), -1352 / _f(945), 274 / _f(2835), 124 / _f(105),
|
|
310
|
+
2 / _f(105), -2 / _f(5),
|
|
311
|
+
-2414843 / _f(935550), 1528 / _f(4725), 21068 / _f(14175), -16 / _f(105),
|
|
312
|
+
-55 / _f(126),
|
|
313
|
+
60334 / _f(93555), 20704 / _f(10395), -9202 / _f(31185), -22 / _f(45),
|
|
314
|
+
40458083 / _f(14189175), -299444 / _f(675675), -90263 / _f(155925),
|
|
315
|
+
-3818498 / _f(6081075), -8962 / _f(12285),
|
|
316
|
+
-4259027 / _f(4365900),),
|
|
317
|
+
Aux.MU: _u( # C[chi,mu]
|
|
318
|
+
-7944359 / _f(67737600), 5406467 / _f(38707200), -96199 / _f(604800),
|
|
319
|
+
81 / _f(512), 1 / _f(360), -37 / _f(96), 2 / _f(3), -1 / _f(2),
|
|
320
|
+
-24749483 / _f(348364800), -51841 / _f(1209600), 1118711 / _f(3870720),
|
|
321
|
+
-46 / _f(105), 437 / _f(1440), -1 / _f(15), -1 / _f(48),
|
|
322
|
+
6457463 / _f(17740800), -9261899 / _f(58060800), -5569 / _f(90720),
|
|
323
|
+
209 / _f(4480), 37 / _f(840), -17 / _f(480),
|
|
324
|
+
-324154477 / _f(7664025600), -466511 / _f(2494800),
|
|
325
|
+
830251 / _f(7257600), 11 / _f(504), -4397 / _f(161280),
|
|
326
|
+
-22894433 / _f(124540416), 8005831 / _f(63866880), 108847 / _f(3991680),
|
|
327
|
+
-4583 / _f(161280),
|
|
328
|
+
2204645983 / _f(12915302400), 16363163 / _f(518918400),
|
|
329
|
+
-20648693 / _f(638668800),
|
|
330
|
+
497323811 / _f(12454041600), -219941297 / _f(5535129600),
|
|
331
|
+
-191773887257 / _f(3719607091200),),
|
|
332
|
+
# C[chi,chi] skipped
|
|
333
|
+
Aux.XI: _u( # C[chi,xi]
|
|
334
|
+
-17451293242 / _f(488462349375), 308365186 / _f(1915538625),
|
|
335
|
+
-55271278 / _f(212837625), 27128 / _f(93555), -2312 / _f(14175),
|
|
336
|
+
-88 / _f(315), 34 / _f(45), -2 / _f(3),
|
|
337
|
+
-101520127208 / _f(488462349375), 149984636 / _f(1915538625),
|
|
338
|
+
106691108 / _f(638512875), -65864 / _f(155925), 6079 / _f(14175),
|
|
339
|
+
-184 / _f(945), 1 / _f(45),
|
|
340
|
+
10010741462 / _f(37574026875), -99534832 / _f(383107725),
|
|
341
|
+
5921152 / _f(54729675), -14246 / _f(467775), 772 / _f(14175),
|
|
342
|
+
-106 / _f(2835),
|
|
343
|
+
1615002539 / _f(75148053750), -35573728 / _f(273648375),
|
|
344
|
+
75594328 / _f(638512875), -5312 / _f(467775), -167 / _f(9450),
|
|
345
|
+
-3358119706 / _f(488462349375), 130601488 / _f(1915538625),
|
|
346
|
+
2837636 / _f(638512875), -248 / _f(13365),
|
|
347
|
+
46771947158 / _f(488462349375), -3196 / _f(3553875),
|
|
348
|
+
-34761247 / _f(1915538625),
|
|
349
|
+
-18696014 / _f(18091198125), -2530364 / _f(127702575),
|
|
350
|
+
-14744861191 / _f(651283132500),)
|
|
351
|
+
},
|
|
352
|
+
Aux.XI: {
|
|
353
|
+
Aux.PHI: _u( # C[xi,phi]
|
|
354
|
+
-88002076 / _f(13956067125), -86728 / _f(16372125),
|
|
355
|
+
-44732 / _f(2837835), 20824 / _f(467775), 538 / _f(4725), 88 / _f(315),
|
|
356
|
+
-4 / _f(45), -4 / _f(3),
|
|
357
|
+
-2641983469 / _f(488462349375), -895712 / _f(147349125),
|
|
358
|
+
-12467764 / _f(212837625), -37192 / _f(467775), -2482 / _f(14175),
|
|
359
|
+
8 / _f(105), 34 / _f(45),
|
|
360
|
+
8457703444 / _f(488462349375), 240616 / _f(4209975),
|
|
361
|
+
100320856 / _f(1915538625), 54968 / _f(467775), -898 / _f(14175),
|
|
362
|
+
-1532 / _f(2835),
|
|
363
|
+
-4910552477 / _f(97692469875), -4832848 / _f(147349125),
|
|
364
|
+
-5884124 / _f(70945875), 24496 / _f(467775), 6007 / _f(14175),
|
|
365
|
+
9393713176 / _f(488462349375), 816824 / _f(13395375),
|
|
366
|
+
-839792 / _f(19348875), -23356 / _f(66825),
|
|
367
|
+
-4532926649 / _f(97692469875), 1980656 / _f(54729675),
|
|
368
|
+
570284222 / _f(1915538625),
|
|
369
|
+
-14848113968 / _f(488462349375), -496894276 / _f(1915538625),
|
|
370
|
+
224557742191 / _f(976924698750),),
|
|
371
|
+
Aux.BETA: _u( # C[xi,beta]
|
|
372
|
+
29232878 / _f(97692469875), -18484 / _f(4343625), -70496 / _f(8513505),
|
|
373
|
+
2476 / _f(467775), 34 / _f(675), 32 / _f(315), -4 / _f(45), -1 / _f(3),
|
|
374
|
+
-324943819 / _f(488462349375), -4160804 / _f(1915538625),
|
|
375
|
+
53836 / _f(212837625), 3992 / _f(467775), 74 / _f(2025), -4 / _f(315),
|
|
376
|
+
-7 / _f(90),
|
|
377
|
+
-168643106 / _f(488462349375), 237052 / _f(383107725),
|
|
378
|
+
-661844 / _f(1915538625), 7052 / _f(467775), 2 / _f(14175),
|
|
379
|
+
-83 / _f(2835),
|
|
380
|
+
113042383 / _f(97692469875), -2915326 / _f(1915538625),
|
|
381
|
+
1425778 / _f(212837625), 934 / _f(467775), -797 / _f(56700),
|
|
382
|
+
-558526274 / _f(488462349375), 6064888 / _f(1915538625),
|
|
383
|
+
390088 / _f(212837625), -3673 / _f(467775),
|
|
384
|
+
155665021 / _f(97692469875), 41288 / _f(29469825),
|
|
385
|
+
-18623681 / _f(3831077250),
|
|
386
|
+
504234982 / _f(488462349375), -6205669 / _f(1915538625),
|
|
387
|
+
-8913001661 / _f(3907698795000),),
|
|
388
|
+
Aux.THETA: _u( # C[xi,theta]
|
|
389
|
+
182466964 / _f(8881133625), 53702182 / _f(212837625),
|
|
390
|
+
-4286228 / _f(42567525), -193082 / _f(467775), 778 / _f(4725),
|
|
391
|
+
62 / _f(105), -4 / _f(45), 2 / _f(3),
|
|
392
|
+
367082779691 / _f(488462349375), -32500616 / _f(273648375),
|
|
393
|
+
-61623938 / _f(70945875), 92696 / _f(467775), 12338 / _f(14175),
|
|
394
|
+
-32 / _f(315), 4 / _f(45),
|
|
395
|
+
-42668482796 / _f(488462349375), -663111728 / _f(383107725),
|
|
396
|
+
427003576 / _f(1915538625), 612536 / _f(467775), -1618 / _f(14175),
|
|
397
|
+
-524 / _f(2835),
|
|
398
|
+
-327791986997 / _f(97692469875), 421877252 / _f(1915538625),
|
|
399
|
+
427770788 / _f(212837625), -8324 / _f(66825), -5933 / _f(14175),
|
|
400
|
+
74612072536 / _f(488462349375), 6024982024 / _f(1915538625),
|
|
401
|
+
-9153184 / _f(70945875), -320044 / _f(467775),
|
|
402
|
+
489898512247 / _f(97692469875), -46140784 / _f(383107725),
|
|
403
|
+
-1978771378 / _f(1915538625),
|
|
404
|
+
-42056042768 / _f(488462349375), -2926201612 / _f(1915538625),
|
|
405
|
+
-2209250801969 / _f(976924698750),),
|
|
406
|
+
Aux.MU: _u( # C[xi,mu]
|
|
407
|
+
39534358147 / _f(2858202547200),
|
|
408
|
+
-25359310709 / _f(1743565824000), -9292991 / _f(302702400),
|
|
409
|
+
7764059 / _f(239500800), 1297 / _f(18900), -817 / _f(10080), -4 / _f(45),
|
|
410
|
+
1 / _f(6),
|
|
411
|
+
-13216941177599 / _f(571640509440000),
|
|
412
|
+
-14814966289 / _f(245188944000), 36019108271 / _f(871782912000),
|
|
413
|
+
35474 / _f(467775), -29609 / _f(453600), -2 / _f(35), 49 / _f(720),
|
|
414
|
+
-27782109847927 / _f(250092722880000),
|
|
415
|
+
99871724539 / _f(1569209241600), 3026004511 / _f(30648618000),
|
|
416
|
+
-4306823 / _f(59875200), -2917 / _f(56700), 4463 / _f(90720),
|
|
417
|
+
168979300892599 / _f(1600593426432000),
|
|
418
|
+
2123926699 / _f(15324309000), -368661577 / _f(4036032000),
|
|
419
|
+
-102293 / _f(1871100), 331799 / _f(7257600),
|
|
420
|
+
1959350112697 / _f(9618950880000),
|
|
421
|
+
-493031379277 / _f(3923023104000), -875457073 / _f(13621608000),
|
|
422
|
+
11744233 / _f(239500800),
|
|
423
|
+
-145659994071373 / _f(800296713216000),
|
|
424
|
+
-793693009 / _f(9807557760), 453002260127 / _f(7846046208000),
|
|
425
|
+
-53583096419057 / _f(500185445760000),
|
|
426
|
+
103558761539 / _f(1426553856000),
|
|
427
|
+
_f(12272105438887727) / _f(128047474114560000),),
|
|
428
|
+
Aux.CHI: _u( # C[xi,chi]
|
|
429
|
+
-64724382148 / _f(97692469875), 16676974 / _f(30405375),
|
|
430
|
+
2706758 / _f(42567525), -55222 / _f(93555), 2458 / _f(4725),
|
|
431
|
+
46 / _f(315), -34 / _f(45), 2 / _f(3),
|
|
432
|
+
85904355287 / _f(37574026875), 158999572 / _f(1915538625),
|
|
433
|
+
-340492279 / _f(212837625), 516944 / _f(467775), 3413 / _f(14175),
|
|
434
|
+
-256 / _f(315), 19 / _f(45),
|
|
435
|
+
2986003168 / _f(37574026875), -7597644214 / _f(1915538625),
|
|
436
|
+
4430783356 / _f(1915538625), 206834 / _f(467775), -15958 / _f(14175),
|
|
437
|
+
248 / _f(567),
|
|
438
|
+
-375566203 / _f(39037950), 851209552 / _f(174139875),
|
|
439
|
+
62016436 / _f(70945875), -832976 / _f(467775), 16049 / _f(28350),
|
|
440
|
+
5106181018156 / _f(488462349375), 3475643362 / _f(1915538625),
|
|
441
|
+
-651151712 / _f(212837625), 15602 / _f(18711),
|
|
442
|
+
34581190223 / _f(8881133625), -10656173804 / _f(1915538625),
|
|
443
|
+
2561772812 / _f(1915538625),
|
|
444
|
+
-5150169424688 / _f(488462349375), 873037408 / _f(383107725),
|
|
445
|
+
7939103697617 / _f(1953849397500),) # PYCHOK exported
|
|
446
|
+
# C[xi,xi] skipped
|
|
447
|
+
}
|
|
448
|
+
})
|
|
449
|
+
# _ptrs_8 = (0, 0, 20, 40, 60, 96, 132, 152, 152, 172, 192, 228,
|
|
450
|
+
# 264, 284, 304, 304, 324, 360, 396, 416, 436, 456, 456, 492,
|
|
451
|
+
# 528, 564, 600, 636, 672, 672, 708, 744, 780, 816, 852, 888,
|
|
452
|
+
# 888) # PYCHOK exported
|
|
453
|
+
del _f, _u
|
|
454
|
+
|
|
455
|
+
# **) MIT License
|
|
456
|
+
#
|
|
457
|
+
# Copyright (C) 2023-2024 -- mrJean1 at Gmail -- All Rights Reserved.
|
|
458
|
+
#
|
|
459
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
460
|
+
# copy of this software and associated documentation files (the "Software"),
|
|
461
|
+
# to deal in the Software without restriction, including without limitation
|
|
462
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
463
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
|
464
|
+
# Software is furnished to do so, subject to the following conditions:
|
|
465
|
+
#
|
|
466
|
+
# The above copyright notice and this permission notice shall be included
|
|
467
|
+
# in all copies or substantial portions of the Software.
|
|
468
|
+
#
|
|
469
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
470
|
+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
471
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
472
|
+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
473
|
+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
474
|
+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
475
|
+
# OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
u'''Classes L{AuxAngle}, L{AuxDLat}, L{AuxDST} and L{AuxLat} transcoded to Python from I{Karney}'s
|
|
5
|
+
C++ class U{AuxAngle<https://GeographicLib.SourceForge.io/C++/doc/classGeographicLib_1_1AuxAngle.html>},
|
|
6
|
+
U{DAuxLatitude<https://GeographicLib.SourceForge.io/C++/doc/classGeographicLib_1_1DAuxLatitude.html>},
|
|
7
|
+
U{DST<https://GeographicLib.SourceForge.io/C++/doc/classGeographicLib_1_1DST.html>}, repectively
|
|
8
|
+
U{AuxLatitude<https://GeographicLib.SourceForge.io/C++/doc/classGeographicLib_1_1AuxLatitude.html>} all
|
|
9
|
+
in I{GeographicLib version 2.2+}.
|
|
10
|
+
|
|
11
|
+
Copyright (C) U{Charles Karney<mailto:Karney@Alum.MIT.edu>} (2022-2023) and licensed under the MIT/X11
|
|
12
|
+
License. For more information, see the U{GeographicLib<https://GeographicLib.SourceForge.io>} documentation.
|
|
13
|
+
|
|
14
|
+
@note: Class L{AuxDST} requires U{numpy<https://PyPI.org/project/numpy>} to be installed, version 1.16
|
|
15
|
+
or newer.
|
|
16
|
+
|
|
17
|
+
@see: U{Auxiliary latitudes<https:#GeographicLib.SourceForge.io/C++/doc/auxlat.html>} and
|
|
18
|
+
U{On auxiliary latitudes<https:#ArXiv.org/abs/2212.05818>}.
|
|
19
|
+
'''
|
|
20
|
+
|
|
21
|
+
from pygeodesy.auxilats.auxAngle import AuxAngle, AuxBeta, AuxChi, AuxMu, \
|
|
22
|
+
AuxPhi, AuxTheta, AuxXi # PYCHOK exported
|
|
23
|
+
from pygeodesy.auxilats.auxDLat import AuxDLat # PYCHOK exported
|
|
24
|
+
from pygeodesy.auxilats.auxDST import AuxDST # PYCHOK exported
|
|
25
|
+
from pygeodesy.auxilats.auxily import Aux # PYCHOK exported
|
|
26
|
+
from pygeodesy.auxilats.auxLat import AuxLat # PYCHOK exported
|
|
27
|
+
from pygeodesy.lazily import _ALL_OTHER
|
|
28
|
+
|
|
29
|
+
# no modules: auxAngle, auxDLat, auxDST, auxily, auxLat
|
|
30
|
+
__all__ = _ALL_OTHER(Aux, AuxAngle, AuxDLat, AuxDST, AuxLat,
|
|
31
|
+
AuxBeta, AuxChi, AuxMu, AuxPhi, AuxTheta, AuxXi)
|
|
32
|
+
__version__ = '23.12.07'
|
|
33
|
+
|
|
34
|
+
# **) MIT License
|
|
35
|
+
#
|
|
36
|
+
# Copyright (C) 2023-2024 -- mrJean1 at Gmail -- All Rights Reserved.
|
|
37
|
+
#
|
|
38
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
39
|
+
# copy of this software and associated documentation files (the "Software"),
|
|
40
|
+
# to deal in the Software without restriction, including without limitation
|
|
41
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
42
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
|
43
|
+
# Software is furnished to do so, subject to the following conditions:
|
|
44
|
+
#
|
|
45
|
+
# The above copyright notice and this permission notice shall be included
|
|
46
|
+
# in all copies or substantial portions of the Software.
|
|
47
|
+
#
|
|
48
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
49
|
+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
50
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
51
|
+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
52
|
+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
53
|
+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
54
|
+
# OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
u'''Print L{auxilats} version, etc. using C{python -m pygeodesy.auxilats}.
|
|
5
|
+
'''
|
|
6
|
+
|
|
7
|
+
__all__ = ()
|
|
8
|
+
__version__ = '23.08.05'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _CXstats(): # PYCHOK no cover
|
|
12
|
+
'''(INTERNAL) Get the C{CP} stats.
|
|
13
|
+
'''
|
|
14
|
+
from pygeodesy.auxilats import Aux, AuxLat, auxLat
|
|
15
|
+
from pygeodesy.datums import _WGS84
|
|
16
|
+
|
|
17
|
+
A = AuxLat(_WGS84)
|
|
18
|
+
ax = A._coeffs(Aux.XI, Aux.CHI)
|
|
19
|
+
Cx = auxLat._CXcoeffs(A.ALorder)
|
|
20
|
+
pc = '%.1f%%' % (Cx.u * 100.0 / Cx.n)
|
|
21
|
+
return dict(ALorder=A.ALorder, CXlen=Cx.n, CXset=Cx.u, CXset_len=pc, CXx=len(ax))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _main(): # PYCHOK no cover
|
|
25
|
+
|
|
26
|
+
import os.path as os_path
|
|
27
|
+
|
|
28
|
+
try:
|
|
29
|
+
from pygeodesy import auxilats, printf, pygeodesy_abspath
|
|
30
|
+
from pygeodesy.interns import _COMMASPACE_, _DOT_, _pythonarchine, \
|
|
31
|
+
_SPACE_, _usage, _version_
|
|
32
|
+
from pygeodesy.streprs import Fmt
|
|
33
|
+
|
|
34
|
+
def _dot_attr(name, value):
|
|
35
|
+
return Fmt.DOT(Fmt.EQUAL(name, value))
|
|
36
|
+
|
|
37
|
+
s = tuple(sorted(_CXstats().items()))
|
|
38
|
+
p = [_dot_attr(*t) for t in (((_version_, auxilats.__version__),) + s)]
|
|
39
|
+
|
|
40
|
+
def _name_version(pkg):
|
|
41
|
+
return _SPACE_(pkg.__name__, pkg.__version__)
|
|
42
|
+
|
|
43
|
+
v = _pythonarchine()
|
|
44
|
+
try:
|
|
45
|
+
import geographiclib
|
|
46
|
+
v.append(_name_version(geographiclib))
|
|
47
|
+
except ImportError:
|
|
48
|
+
pass
|
|
49
|
+
|
|
50
|
+
a = auxilats.__name__
|
|
51
|
+
x = os_path.basename(pygeodesy_abspath)
|
|
52
|
+
if not a.startswith(x):
|
|
53
|
+
a = _DOT_(x, a)
|
|
54
|
+
printf('%s%s (%s)', a, _COMMASPACE_.join(p), _COMMASPACE_.join(v))
|
|
55
|
+
|
|
56
|
+
except ImportError:
|
|
57
|
+
raise
|
|
58
|
+
printf(_usage(__file__))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
_main()
|
|
62
|
+
|
|
63
|
+
# **) MIT License
|
|
64
|
+
#
|
|
65
|
+
# Copyright (C) 2023-2024 -- mrJean1 at Gmail -- All Rights Reserved.
|
|
66
|
+
#
|
|
67
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
68
|
+
# copy of this software and associated documentation files (the "Software"),
|
|
69
|
+
# to deal in the Software without restriction, including without limitation
|
|
70
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
71
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
|
72
|
+
# Software is furnished to do so, subject to the following conditions:
|
|
73
|
+
#
|
|
74
|
+
# The above copyright notice and this permission notice shall be included
|
|
75
|
+
# in all copies or substantial portions of the Software.
|
|
76
|
+
#
|
|
77
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
78
|
+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
79
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
80
|
+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
81
|
+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
82
|
+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
83
|
+
# OTHER DEALINGS IN THE SOFTWARE.
|
|
84
|
+
|
|
85
|
+
# % python3 -m pygeodesy.geodesicx
|
|
86
|
+
# pygeodesy.geodesicx.version=21.05.30, .C4Order=None, .C4len=5425, .C4set=5107, .C4set100=94, .C4x=465 (Python 3.9.5, 64bit, geographiclib 1.52)
|