Package pygeodesy :: Module azimuthal :: Class _AzimuthalBase |
[frames] | no frames]

# Class _AzimuthalBase

      object --+
               |
    named._Named --+
                   |
    named._NamedBase --+
                       |
                      _AzimuthalBase

Known Subclasses:
  - Equidistant
  - , _AzimuthalBaseKarney
  - , Gnomonic
  - , LambertEqualArea
  - , Orthographic
  - , Stereographic

(INTERNAL) Base class for azimuthal projections.

See Also: Karney's C++ class AzimuthalEquidistant or EquidistantKarney or Gnomonic or GnomonicKarney.

Instance Methods
__init__(self, lat0, lon0, datum=None, name=`'````'`) New azimuthal projection. |
reset(self, lat0, lon0) Set or reset the center point of this azimuthal projection. |
toRepr(self, prec=6, **unused) Return a string representation of this projection. |
toStr(self, prec=6, sep=`'``` `'`, **unused) Return a string representation of this projection. |
Inherited from `named._NamedBase`: `__repr__`, `__str__`, `others` Inherited from `named._Named`: `_dot_`, `attrs`, `classof`, `copy`, `toStr2` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| datum Get the datum (Datum).
| equatoradius Get the geodesic's equatorial radius, semi-axis (`meter`).
| majoradius DEPRECATED, use `equatoradius`.
| iteration Get the iteration number (`int` or `None` if not available/applicable).
| flattening Get the geodesic's flattening (`float`).
| lat0 Get the center latitude (`degrees90`).
| latlon0 Get the center lat- and longitude (LatLon2Tuple`(lat, lon)`) in (`degrees90`, `degrees180`).
| lon0 Get the center longitude (`degrees180`).
| radius Get this projection's mean radius of curvature (`meter`).
Inherited from `named._Named`: `classname`, `classnaming`, `name`, `named`, `named2`, `named3`, `named4` Inherited from `object`: `__class__`

Method Details

### __init__ (self, lat0, lon0, datum=None, name=`'````'`) (Constructor) |
New azimuthal projection. Arguments: `lat0` - Latitude of the center point (`degrees90`). `lon0` - Longitude of the center point (`degrees180`). `datum` - Optional datum or ellipsoid (Datum, Ellipsoid, Ellipsoid2 or a_f2Tuple) or scalar earth radius (`meter`). `name` - Optional name for the projection (`str`). Raises: `AzimuthalError` - Invalid `lat0`, `lon0` or spherical `datum`. `TypeError` - Invalid `datum`. Overrides: object.__init__

### reset (self, lat0, lon0) |
Set or reset the center point of this azimuthal projection. Arguments: `lat0` - Center point latitude (`degrees90`). `lon0` - Center point longitude (`degrees180`). Raises: `AzimuthalError` - Invalid `lat0` or `lon0`.

### toRepr (self, prec=6, **unused) |
Return a string representation of this projection. Arguments: `prec` - Optional number of decimals, unstripped (`int`). Returns: This projection as `"<classname>(lat0, lon0, ...)"` (`str`). Overrides: named._Named.toRepr

### toStr (self, prec=6, sep=`'``` `'`, **unused) |
Return a string representation of this projection. Arguments: `prec` - Optional number of decimal, unstripped (`int`). `sep` - Optional separator to join (`str`). Returns: This projection as `"lat0 lon0"` (`str`). Raises: `AssertionError` - Always, see function notOverloaded. Overrides: named._Named.toStr

Property Details

### datum Get the datum (Datum). Get method: datum(self) - Get the datum (Datum). Set method: immutable(inst, value) - Throws an `AttributeError`, always.

### equatoradius Get the geodesic's equatorial radius, semi-axis (`meter`). Get method: equatoradius(self) - Get the geodesic's equatorial radius, semi-axis (`meter`). Set method: immutable(inst, value) - Throws an `AttributeError`, always.

### majoradius DEPRECATED, use `equatoradius`. Get method: equatoradius(self) - Get the geodesic's equatorial radius, semi-axis (`meter`). Set method: immutable(inst, value) - Throws an `AttributeError`, always.

### iteration Get the iteration number (`int` or `None` if not available/applicable). Get method: iteration(self) - Get the iteration number (`int` or `None` if not available/applicable). Set method: immutable(inst, value) - Throws an `AttributeError`, always.

### flattening Get the geodesic's flattening (`float`). Get method: flattening(self) - Get the geodesic's flattening (`float`). Set method: immutable(inst, value) - Throws an `AttributeError`, always.

### lat0 Get the center latitude (`degrees90`). Get method: lat0(self) - Get the center latitude (`degrees90`). Set method: immutable(inst, value) - Throws an `AttributeError`, always.

### latlon0 Get the center lat- and longitude (LatLon2Tuple`(lat, lon)`) in (`degrees90`, `degrees180`). Get method: latlon0(self) - Get the center lat- and longitude (LatLon2Tuple`(lat, lon)`) in (`degrees90`, `degrees180`). Set method: latlon0(self, latlon0) - Set the center lat- and longitude (`LatLon`, LatLon2Tuple or LatLon4Tuple).

### lon0 Get the center longitude (`degrees180`). Get method: lon0(self) - Get the center longitude (`degrees180`). Set method: immutable(inst, value) - Throws an `AttributeError`, always.

### radius Get this projection's mean radius of curvature (`meter`). Get method: radius(self) - Get this projection's mean radius of curvature (`meter`). Set method: immutable(inst, value) - Throws an `AttributeError`, always.