pygeodesy :: datums :: Datum :: Class Datum
[frames] | no frames]

Class Datum

  object --+            
           |            
named._Named --+        
               |        
named._NamedBase --+    
                   |    
named._NamedEnumItem --+
                       |
                      Datum

Ellipsoid and transform parameters for an earth model.

Instance Methods
 
__eq__(self, other)
Compare this and an other datum.
 
__hash__(self)
hash(x)
 
__init__(self, ellipsoid, transform=None, **name)
New Datum.
 
__matmul__(self, point)
Convert an ellipsoidal point to this datum.
 
ecef(self, Ecef=None)
Return ECEF converter.
 
toStr(self, sep=', ', **name)
Return this datum as a string.

Inherited from named._NamedEnumItem: unregister

Inherited from named._NamedBase: __repr__, __str__, others, toRepr

Inherited from named._Named: __format__, __imatmul__, __rmatmul__, attrs, classof, copy, dup, methodname, rename, renamed, toStr2

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties
  ellipsoid
  exactTM
  isEllipsoidal
  isOblate
  isProlate
  isSpherical
  transform

Inherited from named._NamedEnumItem: name

Inherited from named._Named: classname, classnaming, iteration, named, named2, named3, named4, sizeof, typename

Inherited from object: __class__

Method Details

__eq__(self, other)
(Equality operator)

 

Compare this and an other datum.

Parameters:
  • other - The other datum (Datum).
Returns:
True if equal, False otherwise.

__hash__(self)
(Hashing function)

 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__init__(self, ellipsoid, transform=None, **name)
(Constructor)

 

New Datum.

Parameters:
  • ellipsoid - The ellipsoid (Ellipsoid or Ellipsoid2).
  • transform - Optional transform (Transform).
  • name - Optional, unique name=NN (str).
Raises:
  • NameError - Datum with that name already exists.
  • TypeError - If ellipsoid is not an Ellipsoid nor Ellipsoid2 or transform is not a Transform.
Overrides: object.__init__

__matmul__(self, point)

 

Convert an ellipsoidal point to this datum.

Raises:
  • TypeError - Invalid point.
Overrides: named._Named.__matmul__

ecef(self, Ecef=None)

 

Return ECEF converter.

Parameters:
  • Ecef - ECEF class to use, default EcefKarney.
Returns:
An ECEF converter for this datum.
Raises:
  • TypeError - Invalid Ecef.

See Also: Module pygeodesy.ecef.

toStr(self, sep=', ', **name)

 

Return this datum as a string.

Parameters:
  • sep - Separator to join (str).
  • name - Optional, override name=NN (str) or None to exclude this datum's name.
Returns:
Datum attributes (str).
Overrides: named._Named.toStr

Property Details

ellipsoid

Get Method:
unreachable._fget(inst) - Get and cache/memoize the property value.
Set Method:
unreachable._fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
unreachable._fdel(inst) - Zap the cached/memoized property value.

exactTM

Get Method:
unreachable._fget(inst) - Get and cache/memoize the property value.
Set Method:
unreachable._fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
unreachable._fdel(inst) - Zap the cached/memoized property value.

isEllipsoidal

Get Method:
unreachable.isEllipsoidal(self) - Check whether this datum is ellipsoidal (bool).
Set Method:
unreachable._fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
unreachable._fdel(inst) - Zap the cached/memoized property value.

isOblate

Get Method:
unreachable.isOblate(self) - Check whether this datum's ellipsoidal is oblate (bool).
Set Method:
unreachable._fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
unreachable._fdel(inst) - Zap the cached/memoized property value.

isProlate

Get Method:
unreachable.isProlate(self) - Check whether this datum's ellipsoidal is prolate (bool).
Set Method:
unreachable._fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
unreachable._fdel(inst) - Zap the cached/memoized property value.

isSpherical

Get Method:
unreachable.isSpherical(self) - Check whether this datum is (near-)spherical (bool).
Set Method:
unreachable._fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
unreachable._fdel(inst) - Zap the cached/memoized property value.

transform

Get Method:
unreachable._fget(inst) - Get and cache/memoize the property value.
Set Method:
unreachable._fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
unreachable._fdel(inst) - Zap the cached/memoized property value.