astrix.utils module¶
- ecef2geodet(ecef)[source]¶
Use pyproj to convert from WGS84 coordinates to geodetic (Cartesian Earth Centered Earth Fixed (ECEF) to lat, long, alt)
- Parameters:
ecef (np.ndarray) – 3xn array of ECEF x,y,z points in [m]
- Returns:
3xn array of long, lat, alt [m] points
- Return type:
np.ndarray
- ensure_1d(x, backend=None)[source]¶
Ensure the input array is 1-dimensional. Scalars are converted to shape (1,).
- Return type:
Any
- Parameters:
x (Any | float | list[float])
backend (Any | None)
- ensure_2d(x, n=None, backend=None)[source]¶
Ensure the input array is 2-dimensional. If n is given, ensure the second dimensionn has size n.
- Return type:
Any
- Parameters:
x (Any | float | list[float] | list[list[float]])
n (int | None)
backend (Any | None)