pymgp.crstrans.inqell#

pymgp.crstrans.inqell(ellipsoid='current')[source]#

Semi-major axis, flattening and GM for various ellipsoids.

Parameters:
ellipsoid: str or list of floats, default = ‘current’

Text string with the name of the ellipse or a list [a, 1/f] or [a, 1/f, GM] with the semi-major axis a , inverse flattening 1/f and optionally GM. The current ellipsoid can be set by setell. Default for the current ellips is ‘WGS-84’.

Returns:
a, f, GM: float

Semi-major axis a, flattening f and GM.

See also

setell, xyz2plh, plh2xyz

Examples

>>> a, f, GM = inqell()
>>> print(a,1/f)
6378137.0 298.257223563
>>> a, f, GM = inqell('GRS80')
>>> print(a,1/f)
6378137.0 298.257222101
>>> a, f, _ = inqell([a, 1/f])
>>> print(a,1/f)
6378137.0 298.257222101