pyinterp.geodetic.Coordinates.ecef_to_lla

Coordinates.ecef_to_lla(self: pyinterp.core.geodetic.Coordinates, x: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]'], y: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]'], z: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]'], num_threads: SupportsInt = 0) tuple

Converts Cartesian coordinates to Geographic latitude, longitude, and altitude. Cartesian coordinates should be in meters. The returned latitude and longitude are in degrees, and the altitude will be in meters.

Parameters:
  • x – X-coordinates in meters.

  • y – Y-coordinates in meters.

  • z – Z-coordinates in meters.

  • num_threads – The number of threads to use for the computation. If 0 all CPUs are used. If 1 is given, no parallel computing code is used at all, which is useful for debugging. Defaults to 0.

Returns:

Longitudes, latitudes and altitudes in the coordinate system defined by this instance.

See also

Vermeille, H. (2002). Direct transformation from geocentric to geodetic coordinates. Journal of Geodesy, 76(8), 451–454. DOI: https://doi.org/10.1007/s00190-002-0273-6