pyinterp.geodetic.Coordinates.ecef_to_lla

Coordinates.ecef_to_lla(self: pyinterp.core.geodetic.Coordinates, x: numpy.ndarray[numpy.float64[m, 1]], y: numpy.ndarray[numpy.float64[m, 1]], z: numpy.ndarray[numpy.float64[m, 1]], num_threads: int = 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 (numpy.ndarray) – X-coordinates in meters.

  • y (numpy.ndarray) – Y-coordinates in meters.

  • z (numpy.ndarray) – Z-coordinates in meters.

  • num_threads (int, optional) – 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.

Return type

tuple

See also

Olson, D.K. “Converting earth-Centered, Earth-Fixed Coordinates to Geodetic Coordinates,” IEEE Transactions on Aerospace and Electronic Systems, Vol. 32, No. 1, January 1996, pp. 473-476.