earthkit.geo.coord.xyz_to_latlon

earthkit.geo.coord.xyz_to_latlon(x, y, z)

Convert from earth-centred, earth-fixed ([ECEF]) to geodetic coordinates. See [From_ECEF_to_geodetic_coordinates].

Parameters:
  • x (float or ndarray) – x-component of the ECEF coordinates.

  • y (float or ndarray) – y-component of the ECEF coordinates.

  • z (float or ndarray) – z-component of the ECEF coordinates.

Returns:

  • ndarray – Latitude (degrees).

  • ndarray – Longitude (degrees).

It is assumed that the Earth is a sphere of radius 1.