pyinterp.geodetic.Point

class pyinterp.geodetic.Point(lon: float = 0, lat: float = 0)[source]

Bases: pyinterp.core.geodetic.Point

Handle a point in an equatorial spherical coordinate system in degrees.

__init__(lon: float = 0, lat: float = 0)[source]

Initialize a new point.

Parameters
  • lon (float, optional) – Longitude in degrees of the point.

  • lat (float, optional) – Latitude in degrees of the point.

Methods

Point.distance(self, other[, strategy, wgs])

Calculate the distance between the two points.

Point.read_wkt(wkt)

Parses OGC Well-Known Text (WKT) into a Point.

Point.wkt(self)

Gets the OGC Well-Known Text (WKT) representation of this instance.

Attributes

Point.lat

Latitude coordinate in degrees.

Point.lon

Longitude coordinate in degrees.