pyinterp.geodetic.System

class pyinterp.geodetic.System(parameters: Optional[Tuple[float, float]] = None)[source]

Bases: pyinterp.core.geodetic.System

World Geodetic System (WGS).

__init__(parameters: Optional[Tuple[float, float]] = None)[source]

Constructor.

Parameters

parameters (tuple, optional) –

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.System()
>>> wgs84
System(6378137.0, 0.0033528106647474805)
>>> grs80 = pyinterp.geodetic.System((6378137, 1 / 298.257222101))
>>> grs80
System(6378137.0, 0.003352810681182319)

Methods

System.authalic_radius(self)

Gets the authalic radius.

System.axis_ratio(self)

Gets the axis ratio.

System.equatorial_circumference(self[, ...])

Gets the equatorial circumference.

System.equatorial_radius_of_curvature(self)

Gets the equatorial radius of curvature for a meridian.

System.first_eccentricity_squared(self)

Gets the first eccentricity squared.

System.linear_eccentricity(self)

Gets the linear eccentricity.

System.mean_radius(self)

Gets the mean radius.

System.polar_radius_of_curvature(self)

Gets the polar radius of curvature.

System.second_eccentricity_squared(self)

Gets the second eccentricity squared.

System.semi_minor_axis(self)

Gets the semiminor axis.

System.volumetric_radius(self)

Gets the volumetric radius.

System.__repr__()

Return repr(self).

Attributes

System.flattening

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

System.semi_major_axis

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