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
pygeodesy/__main__.py
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
u'''Print L{pygeodesy} version, etc. using C{python -m pygeodesy}.
|
|
5
|
+
'''
|
|
6
|
+
|
|
7
|
+
__all__ = ()
|
|
8
|
+
__version__ = '23.11.24'
|
|
9
|
+
|
|
10
|
+
from os.path import basename, dirname
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _main(): # PYCHOK no cover
|
|
14
|
+
|
|
15
|
+
try:
|
|
16
|
+
from pygeodesy import _isfrozen, pygeodesy_abspath, version
|
|
17
|
+
from pygeodesy.basics import _xgeographiclib, _xnumpy, _xscipy
|
|
18
|
+
from pygeodesy.constants import _floats
|
|
19
|
+
from pygeodesy.interns import _COMMASPACE_, _DEPRECATED_, _pygeodesy_abspath_, \
|
|
20
|
+
_pythonarchine, _SPACE_, _usage, _version_
|
|
21
|
+
from pygeodesy.lazily import _a_l_l_, _all_deprecates, _all_imports, \
|
|
22
|
+
isLazy, printf
|
|
23
|
+
from pygeodesy.streprs import Fmt
|
|
24
|
+
|
|
25
|
+
def _p(name_value):
|
|
26
|
+
return Fmt.DOT(Fmt.EQUAL(*name_value))
|
|
27
|
+
|
|
28
|
+
p = [_p(t) for t in ((_version_, version),
|
|
29
|
+
(_pygeodesy_abspath_, pygeodesy_abspath),
|
|
30
|
+
('isLazy', isLazy),
|
|
31
|
+
('_isfrozen', _isfrozen),
|
|
32
|
+
('_floats', len(_floats)),
|
|
33
|
+
(_a_l_l_, len(_all_imports())),
|
|
34
|
+
(_DEPRECATED_, len(_all_deprecates())))]
|
|
35
|
+
|
|
36
|
+
def _nv(_xpkg, v):
|
|
37
|
+
try:
|
|
38
|
+
pkg = _xpkg(_main)
|
|
39
|
+
except ImportError:
|
|
40
|
+
pkg = None
|
|
41
|
+
if pkg is not None:
|
|
42
|
+
v.append(_SPACE_(pkg.__name__, pkg.__version__))
|
|
43
|
+
|
|
44
|
+
v = _pythonarchine()
|
|
45
|
+
_nv(_xgeographiclib, v)
|
|
46
|
+
_nv(_xnumpy, v)
|
|
47
|
+
_nv(_xscipy, v)
|
|
48
|
+
|
|
49
|
+
x = basename(pygeodesy_abspath)
|
|
50
|
+
printf('%s%s (%s)', x, _COMMASPACE_.join(p), _COMMASPACE_.join(v))
|
|
51
|
+
|
|
52
|
+
except ImportError:
|
|
53
|
+
from pygeodesy.interns import _usage
|
|
54
|
+
from pygeodesy.lazily import printf
|
|
55
|
+
printf(_usage(__file__))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
try:
|
|
59
|
+
_main()
|
|
60
|
+
except ImportError:
|
|
61
|
+
from sys import executable as x
|
|
62
|
+
t = 'usage:', basename(x), '-m', basename(dirname(__file__))
|
|
63
|
+
print(' '.join(t))
|
|
64
|
+
|
|
65
|
+
# **) MIT License
|
|
66
|
+
#
|
|
67
|
+
# Copyright (C) 2016-2024 -- mrJean1 at Gmail -- All Rights Reserved.
|
|
68
|
+
#
|
|
69
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
70
|
+
# copy of this software and associated documentation files (the "Software"),
|
|
71
|
+
# to deal in the Software without restriction, including without limitation
|
|
72
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
73
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
|
74
|
+
# Software is furnished to do so, subject to the following conditions:
|
|
75
|
+
#
|
|
76
|
+
# The above copyright notice and this permission notice shall be included
|
|
77
|
+
# in all copies or substantial portions of the Software.
|
|
78
|
+
#
|
|
79
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
80
|
+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
81
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
82
|
+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
83
|
+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
84
|
+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
85
|
+
# OTHER DEALINGS IN THE SOFTWARE.
|
|
86
|
+
|
|
87
|
+
# % python3.12 -m pygeodesy
|
|
88
|
+
# pygeodesy.version=23.12.2, .pygeodesy_abspath=.../PyGeodesy/pygeodesy, .isLazy=1, ._isfrozen=False, ._floats=82, .__all__=909, .DEPRECATED=94 (Python 3.12.0, 64bit, arm64, geographiclib 2.0)
|
|
89
|
+
|
|
90
|
+
# % python3.11 -m pygeodesy
|
|
91
|
+
# pygeodesy.version=23.12.2, .pygeodesy_abspath=.../PyGeodesy/pygeodesy, .isLazy=1, ._isfrozen=False, ._floats=82, .__all__=909, .DEPRECATED=94 (Python 3.11.5, 64bit, arm64, geographiclib 2.0, numpy 1.24.2, scipy 1.10.1)
|
|
92
|
+
|
|
93
|
+
# % python3.10 -m pygeodesy
|
|
94
|
+
# pygeodesy.version=23.12.2, .pygeodesy_abspath=.../PyGeodesy/pygeodesy, .isLazy=1, ._isfrozen=False, ._floats=82, .__all__=909, .DEPRECATED=94 (Python 3.10.8, 64bit, arm64, geographiclib 2.0, numpy 1.23.3, scipy 1.9.1)
|
|
95
|
+
|
|
96
|
+
# % python3.9 -m pygeodesy
|
|
97
|
+
# pygeodesy.version=23.11.11, .pygeodesy_abspath=.../PyGeodesy/pygeodesy, .isLazy=1, ._isfrozen=False, ._floats=82, .__all__=964 (Python 3.9.6, 64bit, arm64)
|
|
98
|
+
|
|
99
|
+
# % python3.8 -m pygeodesy
|
|
100
|
+
# pygeodesy.version=23.1.6, .pygeodesy_abspath=.../PyGeodesy/pygeodesy, .isLazy=1, ._isfrozen=False, ._floats=81, .__all__=908 (Python 3.8.10, 64bit, arm64_x86_64, geographiclib 1.52, numpy 1.19.2, scipy 1.5.2)
|
|
101
|
+
|
|
102
|
+
# % python2 -m pygeodesy
|
|
103
|
+
# pygeodesy.version=23.1.6, .pygeodesy_abspath=.../PyGeodesy/pygeodesy, .isLazy=None, ._isfrozen=False, ._floats=560, .__all__=908 (Python 2.7.18, 64bit, arm64_x86_64, geographiclib 1.50, numpy 1.16.6, scipy 1.2.2)
|