Package pygeodesy :: Module datums :: 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
__init__(self, ellipsoid, transform=None, name='') New Datum. |
__eq__(self, other) Compare this and an other datum. |
ecef(self, Ecef=None) Return ECEF converter. |
toStr(self, **unused) Return this datum as a string. |
Inherited from `named._NamedEnumItem`: `__ne__`, `unregister` Inherited from `named._NamedBase`: `__repr__`, `__str__`, `others`, `toRepr` Inherited from `named._Named`: `_DOT_`, `attrs`, `classof`, `copy`, `rename`, `toStr2` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| ellipsoid Get this datum's ellipsoid (Ellipsoid or Ellipsoid2).
| exactTM Get the `ExactTM` projection (ExactTransverseMercator).
| isEllipsoidal Check whether this datum is ellipsoidal (`bool`).
| isOblate Check whether this datum's ellipsoidal is oblate (`bool`).
| isProlate Check whether this datum's ellipsoidal is prolate (`bool`).
| isSpherical Check whether this datum is (near-)spherical (`bool`).
| transform Get this datum's transform (Transform).
Inherited from `named._NamedEnumItem`: `name` Inherited from `named._Named`: `classname`, `classnaming`, `named`, `named2`, `named3`, `named4` Inherited from `object`: `__class__`

Method Details

### __init__ (self, ellipsoid, transform=None, name='') (Constructor) |
New Datum. Arguments: `ellipsoid` - The ellipsoid (Ellipsoid or Ellipsoid2). `transform` - Optional transform (Transform). `name` - Optional, unique name (`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__

### __eq__ (self, other) (Equality operator) |
Compare this and an other datum. Arguments: `other` - The other datum (Datum). Returns: `True` if equal, `False` otherwise.

### ecef (self, Ecef=None) |
Return ECEF converter. Arguments: `Ecef` - ECEF class to use (EcefKarney, EcefVeness or EcefYou). Returns: An ECEF converter for this `datum` (EcefKarney, EcefVeness or EcefYou). Raises: `TypeError` - Invalid `Ecef`.

### toStr (self, **unused) |
Return this datum as a string. Returns: Datum attributes (`str`). Raises: `AssertionError` - Always, see function notOverloaded. Overrides: named._Named.toStr

Property Details

### ellipsoid Get this datum's ellipsoid (Ellipsoid or Ellipsoid2). Get method: _fget(inst) Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst)

### exactTM Get the `ExactTM` projection (ExactTransverseMercator). Get method: _fget(inst) Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst)

### isEllipsoidal Check whether this datum is ellipsoidal (`bool`). Get method: _fget(inst) Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst)

### isOblate Check whether this datum's ellipsoidal is oblate (`bool`). Get method: _fget(inst) Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst)

### isProlate Check whether this datum's ellipsoidal is prolate (`bool`). Get method: _fget(inst) Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst)

### isSpherical Check whether this datum is (near-)spherical (`bool`). Get method: _fget(inst) Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst)

### transform Get this datum's transform (Transform). Get method: _fget(inst) Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst)