pyinterp.core.geodetic.Crossover.nearest

Crossover.nearest(self: pyinterp.core.geodetic.Crossover, point: pyinterp.core.geodetic.Point, predicate: float | None = None, strategy: str = 'thomas', wgs: pyinterp.core.geodetic.Spheroid | None = None) tuple[int, int] | None

Find the nearest indices on the two half-orbits from a given point.

Parameters:
  • point – The point to consider.

  • predicate – The distance predicate, in meters.

  • strategy – The distance calculation strategy.

  • wgs – The spheroid used to calculate the distance. If not provided, the WGS-84 spheroid is used.

Returns:

The indices of the nearest points or None if no intersection is found.