pymgp.crstrans.setell#

pymgp.crstrans.setell(ellipsoid=None)[source]#

Set current ellipsoid.

Parameters:
ellipsoidNone or str or list of floats, default = None

If None returns the name of the current ellipsoid, if str set the current ellipsoid to one given in str, if list of floats [a, 1/f] or [a, 1/f, GM] set a user specified ellipsoid with semi-major axis a , inverse flattening 1/f and optionally GM. The current ellipsoid is by default ‘WGS-84’.

Returns:
current_ellipsoidstr

Name of the current ellipsoid.

See also

inqell

Examples

>>> setell()
Current ellipsoid: WGS84
'WGS84'
>>> setell('GRS80')
'GRS80'