|
49 | 49 |
|
50 | 50 |
|
51 | 51 | def geodetic2ecef( |
52 | | - lat: float | ndarray, |
53 | | - lon: float | ndarray, |
54 | | - alt: float | ndarray, |
| 52 | + lat: ndarray, |
| 53 | + lon: ndarray, |
| 54 | + alt: ndarray, |
55 | 55 | ell: Ellipsoid = None, |
56 | 56 | deg: bool = True, |
57 | | -) -> tuple[float | ndarray, float | ndarray, float | ndarray]: |
| 57 | +) -> tuple[ndarray, ndarray, ndarray]: |
58 | 58 | """ |
59 | 59 | point transformation from Geodetic of specified ellipsoid (default WGS-84) to ECEF |
60 | 60 |
|
@@ -103,12 +103,12 @@ def geodetic2ecef( |
103 | 103 |
|
104 | 104 |
|
105 | 105 | def ecef2geodetic( |
106 | | - x: float | ndarray, |
107 | | - y: float | ndarray, |
108 | | - z: float | ndarray, |
| 106 | + x: ndarray, |
| 107 | + y: ndarray, |
| 108 | + z: ndarray, |
109 | 109 | ell: Ellipsoid = None, |
110 | 110 | deg: bool = True, |
111 | | -) -> tuple[float | ndarray, float | ndarray, float | ndarray]: |
| 111 | +) -> tuple[ndarray, ndarray, ndarray]: |
112 | 112 | """ |
113 | 113 | convert ECEF (meters) to geodetic coordinates |
114 | 114 |
|
@@ -248,9 +248,9 @@ def ecef2enu( |
248 | 248 | x: ndarray, |
249 | 249 | y: ndarray, |
250 | 250 | z: ndarray, |
251 | | - lat0: float, |
252 | | - lon0: float, |
253 | | - h0: float, |
| 251 | + lat0: ndarray, |
| 252 | + lon0: ndarray, |
| 253 | + h0: ndarray, |
254 | 254 | ell: Ellipsoid = None, |
255 | 255 | deg: bool = True, |
256 | 256 | ) -> tuple[ndarray, ndarray, ndarray]: |
@@ -292,13 +292,13 @@ def ecef2enu( |
292 | 292 |
|
293 | 293 |
|
294 | 294 | def enu2uvw( |
295 | | - east: float, |
296 | | - north: float, |
297 | | - up: float, |
298 | | - lat0: float, |
299 | | - lon0: float, |
| 295 | + east: ndarray, |
| 296 | + north: ndarray, |
| 297 | + up: ndarray, |
| 298 | + lat0: ndarray, |
| 299 | + lon0: ndarray, |
300 | 300 | deg: bool = True, |
301 | | -) -> tuple[float, float, float]: |
| 301 | +) -> tuple[ndarray, ndarray, ndarray]: |
302 | 302 | """ |
303 | 303 | Parameters |
304 | 304 | ---------- |
@@ -332,7 +332,7 @@ def enu2uvw( |
332 | 332 |
|
333 | 333 |
|
334 | 334 | def uvw2enu( |
335 | | - u: float, v: float, w: float, lat0: float, lon0: float, deg: bool = True |
| 335 | + u: ndarray, v: ndarray, w: ndarray, lat0: ndarray, lon0: ndarray, deg: bool = True |
336 | 336 | ) -> tuple[ndarray, ndarray, ndarray]: |
337 | 337 | """ |
338 | 338 | Parameters |
@@ -374,7 +374,7 @@ def eci2geodetic( |
374 | 374 | *, |
375 | 375 | deg: bool = True, |
376 | 376 | use_astropy: bool = True |
377 | | -) -> tuple[float | ndarray, float | ndarray, float | ndarray]: |
| 377 | +) -> tuple[ndarray, ndarray, ndarray]: |
378 | 378 | """ |
379 | 379 | convert Earth Centered Internal ECI to geodetic coordinates |
380 | 380 |
|
@@ -417,9 +417,9 @@ def eci2geodetic( |
417 | 417 |
|
418 | 418 |
|
419 | 419 | def geodetic2eci( |
420 | | - lat: float | ndarray, |
421 | | - lon: float | ndarray, |
422 | | - alt: float | ndarray, |
| 420 | + lat: ndarray, |
| 421 | + lon: ndarray, |
| 422 | + alt: ndarray, |
423 | 423 | t: datetime, |
424 | 424 | ell: Ellipsoid = None, |
425 | 425 | *, |
@@ -468,15 +468,15 @@ def geodetic2eci( |
468 | 468 |
|
469 | 469 |
|
470 | 470 | def enu2ecef( |
471 | | - e1: float, |
472 | | - n1: float, |
473 | | - u1: float, |
474 | | - lat0: float, |
475 | | - lon0: float, |
476 | | - h0: float, |
| 471 | + e1: ndarray, |
| 472 | + n1: ndarray, |
| 473 | + u1: ndarray, |
| 474 | + lat0: ndarray, |
| 475 | + lon0: ndarray, |
| 476 | + h0: ndarray, |
477 | 477 | ell: Ellipsoid = None, |
478 | 478 | deg: bool = True, |
479 | | -) -> tuple[float, float, float]: |
| 479 | +) -> tuple[ndarray, ndarray, ndarray]: |
480 | 480 | """ |
481 | 481 | ENU to ECEF |
482 | 482 |
|
|
0 commit comments