pyinterp.geometry.geographic.Coordinates.lla_to_ecef

pyinterp.geometry.geographic.Coordinates.lla_to_ecef#

Coordinates.lla_to_ecef(self, lon: numpy.ndarray[dtype=float64, shape=(*), writable=False], lat: numpy.ndarray[dtype=float64, shape=(*), writable=False], alt: numpy.ndarray[dtype=float64, shape=(*), writable=False], num_threads: int = 0) tuple[numpy.ndarray[dtype=float64, shape=(*), order='C'], numpy.ndarray[dtype=float64, shape=(*), order='C'], numpy.ndarray[dtype=float64, shape=(*), order='C']]#

Convert geographic coordinates to Cartesian ECEF coordinates.

Parameters:
  • lon – Longitudes in degrees.

  • lat – Latitudes in degrees.

  • alt – Altitudes 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:

X, Y and Z ECEF coordinates in meters.

Return type:

tuple