pyinterp.geodetic.Spheroid

Contents

pyinterp.geodetic.Spheroid#

class pyinterp.geodetic.Spheroid(parameters: tuple[float, float] | None = None)[source]#

Bases: Spheroid

Represent a World Geodetic System (WGS).

Define an ellipsoid model for geodetic calculations.

Parameters:

parameters

A tuple that defines:

  • the semi-major axis of ellipsoid, in meters.

  • flattening of the ellipsoid.

Note

If no arguments are provided, the constructor initializes a WGS-84 ellipsoid.

Examples

>>> import pyinterp
>>> wgs84 = pyinterp.geodetic.Spheroid()
>>> wgs84
Spheroid(6378137.0, 0.0033528106647474805)
>>> grs80 = pyinterp.geodetic.Spheroid((6378137, 1 / 298.257222101))
>>> grs80
Spheroid(6378137.0, 0.003352810681182319)

Attributes

flattening

Flattening of ellipsoid (\(f=\frac{a-b}{a}\)).

semi_major_axis

Semi-major axis of ellipsoid, in meters (\(a\)).

Special Methods

__repr__()

Return a string representation of the Spheroid instance.

Inherited Methods

authalic_radius(self)

Get the authalic radius.

axis_ratio(self)

Get the axis ratio.

equatorial_circumference(self[, semi_major_axis])

Get the equatorial circumference.

equatorial_radius_of_curvature(self)

Get the equatorial radius of curvature for a meridian.

first_eccentricity_squared(self)

Get the first eccentricity squared.

geocentric_radius(self, lat)

Get the geocentric radius at the given latitude \(\phi\).

linear_eccentricity(self)

Get the linear eccentricity.

mean_radius(self)

Get the mean radius.

polar_radius_of_curvature(self)

Get the polar radius of curvature.

second_eccentricity_squared(self)

Get the second eccentricity squared.

semi_minor_axis(self)

Get the semi-minor axis.

volumetric_radius(self)

Get the volumetric radius.