pyinterp.core.geodetic.Coordinates.transform

Coordinates.transform(self: pyinterp.core.geodetic.Coordinates, target: 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

Transforms the positions, provided in degrees and meters, from one WGS system to another.

Parameters
  • target (pyinterp.core.geodetic.System) – WGS target.

  • lon (numpy.ndarray) – Longitudes in degrees.

  • lat (numpy.ndarray) – Latitudes in degrees.

  • alt (numpy.ndarray) – Altitudes 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 new coordinate system.

Return type

tuple