geographic_mean

typhon.geodesy.geographic_mean(lat, lon, h=0, ellipsoid=None)[source]

Calculate mean position for set of coordinates.

Parameters:
  • lat (float or ndarray) – Latitudes in degrees.

  • lon (float or ndarray) – Longitudes in degrees.

  • h (float or ndarray) – Optiional altitude for each coordinate (default is).

  • ellipsoid – A tuple with the form (semimajor axis, eccentricity). Default is ‘WGS84’ from ellipsoidmodels.

Returns:

Mean latitudes and longitudes in degrees.

Return type:

tuple