Package pygeodesy :: Module datum :: Class Datum
[frames] | no frames]

Class Datum

 object --+        
          |        
 bases.Base --+    
              |    
 object --+   |    
          |   |    
bases.Named --+    
              |    
         _Based --+
                  |
                 Datum

Ellipsoid and transform parameters for an earth model.

Instance Methods
 
__init__(self, ellipsoid, transform=None, name='')
New datum.
 
__eq__(self, other)
Compare this and an other datum.
 
toStr(self, **unused)
Return this datum as a string.

Inherited from _Based: __ne__

Inherited from bases.Base: __repr__, __str__, classname, others, toStr2, topsub

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

Properties
  ellipsoid
Get this datum's ellipsoid (Ellipsoid).
  isellipsoidal
Check whether this datum is ellipsoidal (bool).
  isspherical
Check whether this datum is spherical (bool).
  transform
Get this datum's transform (Transform).

Inherited from bases.Named: name

Inherited from object: __class__

Method Details

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

 

New datum.

Parameters:
  • ellipsoid - The ellipsoid (Ellipsoid).
  • transform - The transform (Transform).
  • name - Optional, unique name (string).
Raises:
  • NameError - If datum name already exists.
  • TypeError - If ellipsoid is not an Ellipsoid or transform is not a Transform.
Overrides: object.__init__

__eq__(self, other)
(Equality operator)

 

Compare this and an other datum.

Parameters:
  • other - The other datum (Datum).
Returns:
True if equal (bool)

toStr(self, **unused)

 

Return this datum as a string.

Parameters:
  • args - Optional, positional arguments.
Returns:
Datum attributes (string).
Overrides: bases.Base.toStr

Property Details

ellipsoid

Get this datum's ellipsoid (Ellipsoid).

Get Method:
ellipsoid(self) - Get this datum's ellipsoid (Ellipsoid).

isellipsoidal

Check whether this datum is ellipsoidal (bool).

Get Method:
isellipsoidal(self) - Check whether this datum is ellipsoidal (bool).

isspherical

Check whether this datum is spherical (bool).

Get Method:
isspherical(self) - Check whether this datum is spherical (bool).

transform

Get this datum's transform (Transform).

Get Method:
transform(self) - Get this datum's transform (Transform).