pyinterp.geometry.geographic.Coordinates.transform#
- Coordinates.transform(self, target: pyinterp.core.geometry.geographic.Coordinates, 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']]#
Transform positions from one coordinate system to another.
- Parameters:
target – Target coordinate system.
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:
Longitudes, latitudes and altitudes in the new coordinate system.