pyinterp.geodetic.Coordinates.lla_to_ecef¶
- Coordinates.lla_to_ecef(self: pyinterp.core.geodetic.Coordinates, lon: numpy.ndarray[numpy.float64[m, 1]], lat: numpy.ndarray[numpy.float64[m, 1]], alt: numpy.ndarray[numpy.float64[m, 1]], num_threads: int = 0) tuple ¶
Converts Geographic coordinates latitude, longitude, and altitude to Cartesian coordinates. The latitude and longitude should be in degrees and the altitude in meters. The returned ECEF coordinates will be in meters.
- 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: