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)

geodet2ecef(geodet)[source]

Use pyproj to convert from WGS84 coordinates to x,y,z points (long, lat, alt to Cartesian Earth Centered Earth Fixed(ECEF))

Parameters:

geodet (np.ndarray) – 3xn array of long, lat, alt [m] points

Returns:

3xn array of ECEF x,y,z points in [m]

Return type:

np.ndarray

is_increasing(x, backend=None)[source]

Check if the input array is strictly increasing along the first axis.

Return type:

bool

Parameters:
  • x (Any)

  • backend (Any | None)