|
5 | 5 | from .ecef import ecef2enu, geodetic2ecef, ecef2geodetic, enu2uvw |
6 | 6 | from .enu import geodetic2enu, aer2enu, enu2aer |
7 | 7 | from .ellipsoid import Ellipsoid |
| 8 | + |
8 | 9 | try: |
9 | 10 | from .eci import eci2ecef, ecef2eci |
10 | 11 | except ImportError: |
11 | 12 | eci2ecef = ecef2eci = None |
12 | 13 |
|
13 | | -__all__ = ['aer2ecef', 'ecef2aer', 'geodetic2aer', 'aer2geodetic'] |
| 14 | +__all__ = ["aer2ecef", "ecef2aer", "geodetic2aer", "aer2geodetic"] |
14 | 15 |
|
15 | 16 |
|
16 | | -def ecef2aer(x: float, y: float, z: float, |
17 | | - lat0: float, lon0: float, h0: float, |
18 | | - ell: Ellipsoid = None, deg: bool = True) -> Tuple[float, float, float]: |
| 17 | +def ecef2aer( |
| 18 | + x: float, y: float, z: float, lat0: float, lon0: float, h0: float, ell: Ellipsoid = None, deg: bool = True |
| 19 | +) -> Tuple[float, float, float]: |
19 | 20 | """ |
20 | 21 | gives azimuth, elevation and slant range from an Observer to a Point with ECEF coordinates. |
21 | 22 |
|
@@ -55,9 +56,9 @@ def ecef2aer(x: float, y: float, z: float, |
55 | 56 | return enu2aer(xEast, yNorth, zUp, deg=deg) |
56 | 57 |
|
57 | 58 |
|
58 | | -def geodetic2aer(lat: float, lon: float, h: float, |
59 | | - lat0: float, lon0: float, h0: float, |
60 | | - ell: Ellipsoid = None, deg: bool = True) -> Tuple[float, float, float]: |
| 59 | +def geodetic2aer( |
| 60 | + lat: float, lon: float, h: float, lat0: float, lon0: float, h0: float, ell: Ellipsoid = None, deg: bool = True |
| 61 | +) -> Tuple[float, float, float]: |
61 | 62 | """ |
62 | 63 | gives azimuth, elevation and slant range from an Observer to a Point with geodetic coordinates. |
63 | 64 |
|
@@ -96,10 +97,9 @@ def geodetic2aer(lat: float, lon: float, h: float, |
96 | 97 | return enu2aer(e, n, u, deg=deg) |
97 | 98 |
|
98 | 99 |
|
99 | | -def aer2geodetic(az: float, el: float, srange: float, |
100 | | - lat0: float, lon0: float, h0: float, |
101 | | - ell: Ellipsoid = None, |
102 | | - deg: bool = True) -> Tuple[float, float, float]: |
| 100 | +def aer2geodetic( |
| 101 | + az: float, el: float, srange: float, lat0: float, lon0: float, h0: float, ell: Ellipsoid = None, deg: bool = True |
| 102 | +) -> Tuple[float, float, float]: |
103 | 103 | """ |
104 | 104 | gives geodetic coordinates of a point with az, el, range |
105 | 105 | from an observer at lat0, lon0, h0 |
@@ -140,10 +140,9 @@ def aer2geodetic(az: float, el: float, srange: float, |
140 | 140 | return ecef2geodetic(x, y, z, ell=ell, deg=deg) |
141 | 141 |
|
142 | 142 |
|
143 | | -def eci2aer(x: float, y: float, z: float, |
144 | | - lat0: float, lon0: float, h0: float, |
145 | | - t: datetime, |
146 | | - useastropy: bool = True) -> Tuple[float, float, float]: |
| 143 | +def eci2aer( |
| 144 | + x: float, y: float, z: float, lat0: float, lon0: float, h0: float, t: datetime, useastropy: bool = True |
| 145 | +) -> Tuple[float, float, float]: |
147 | 146 | """ |
148 | 147 | takes ECI coordinates of point and gives az, el, slant range from Observer |
149 | 148 |
|
@@ -183,10 +182,18 @@ def eci2aer(x: float, y: float, z: float, |
183 | 182 | return ecef2aer(xecef, yecef, zecef, lat0, lon0, h0) |
184 | 183 |
|
185 | 184 |
|
186 | | -def aer2eci(az: float, el: float, srange: float, |
187 | | - lat0: float, lon0: float, h0: float, t: datetime, |
188 | | - ell=None, deg: bool = True, |
189 | | - useastropy: bool = True) -> Tuple[float, float, float]: |
| 185 | +def aer2eci( |
| 186 | + az: float, |
| 187 | + el: float, |
| 188 | + srange: float, |
| 189 | + lat0: float, |
| 190 | + lon0: float, |
| 191 | + h0: float, |
| 192 | + t: datetime, |
| 193 | + ell=None, |
| 194 | + deg: bool = True, |
| 195 | + useastropy: bool = True, |
| 196 | +) -> Tuple[float, float, float]: |
190 | 197 | """ |
191 | 198 | gives ECI of a point from an observer at az, el, slant range |
192 | 199 |
|
@@ -231,9 +238,9 @@ def aer2eci(az: float, el: float, srange: float, |
231 | 238 | return ecef2eci(x, y, z, t, useastropy=useastropy) |
232 | 239 |
|
233 | 240 |
|
234 | | -def aer2ecef(az: float, el: float, srange: float, |
235 | | - lat0: float, lon0: float, alt0: float, |
236 | | - ell: Ellipsoid = None, deg: bool = True) -> Tuple[float, float, float]: |
| 241 | +def aer2ecef( |
| 242 | + az: float, el: float, srange: float, lat0: float, lon0: float, alt0: float, ell: Ellipsoid = None, deg: bool = True |
| 243 | +) -> Tuple[float, float, float]: |
237 | 244 | """ |
238 | 245 | converts target azimuth, elevation, range from observer at lat0,lon0,alt0 to ECEF coordinates. |
239 | 246 |
|
|
0 commit comments