-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
__init__.py
103 lines (90 loc) · 2.38 KB
/
__init__.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
"""
PyMap3D provides coordinate transforms and geodesy functions with a similar API
to the Matlab Mapping Toolbox, but was of course independently derived.
For all functions, the default units are:
distance : float
METERS
angles : float
DEGREES
time : datetime.datetime
UTC time of observation
These functions may be used with any planetary body, provided the appropriate
reference ellipsoid is defined. The default ellipsoid is WGS-84
deg : bool = True means degrees. False = radians.
Most functions accept NumPy arrays of any shape, as well as compatible data types
including AstroPy, Pandas and Xarray that have Numpy-like data properties.
For clarity, we omit all these types in the docs, and just specify the scalar type.
Other languages
---------------
Companion packages exist for:
* Matlab / GNU Octave: [Matmap3D](https://github.com/geospace-code/matmap3d)
* Fortran: [Maptran3D](https://github.com/geospace-code/maptran3d)
"""
__version__ = "3.0.0"
from .aer import aer2ecef, aer2geodetic, ecef2aer, geodetic2aer
from .ecef import (
ecef2enu,
ecef2enuv,
ecef2geodetic,
eci2geodetic,
enu2ecef,
enu2uvw,
geodetic2ecef,
geodetic2eci,
uvw2enu,
)
from .ellipsoid import Ellipsoid
from .enu import aer2enu, enu2aer, enu2geodetic, geodetic2enu
from .ned import (
aer2ned,
ecef2ned,
ecef2nedv,
geodetic2ned,
ned2aer,
ned2ecef,
ned2geodetic,
)
from .sidereal import datetime2sidereal, greenwichsrt
from .spherical import geodetic2spherical, spherical2geodetic
from .timeconv import str2dt
__all__ = [
"aer2ecef",
"aer2geodetic",
"ecef2aer",
"geodetic2aer",
"ecef2enu",
"ecef2enuv",
"ecef2geodetic",
"eci2geodetic",
"enu2ecef",
"enu2uvw",
"geodetic2ecef",
"geodetic2eci",
"uvw2enu",
"Ellipsoid",
"aer2enu",
"enu2aer",
"enu2geodetic",
"geodetic2enu",
"aer2ned",
"ecef2ned",
"ecef2nedv",
"geodetic2ned",
"ned2aer",
"ned2ecef",
"ned2geodetic",
"datetime2sidereal",
"greenwichsrt",
"geodetic2spherical",
"spherical2geodetic",
"str2dt",
"azel2radec",
"radec2azel",
]
try:
from .aer import aer2eci, eci2aer
from .azelradec import azel2radec, radec2azel
from .eci import ecef2eci, eci2ecef
__all__ += ["aer2eci", "eci2aer", "ecef2eci", "eci2ecef"]
except ImportError:
from .vallado import azel2radec, radec2azel