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

Class _AzimuthalBase

  object --+        
           |        
named._Named --+    
               |    
named._NamedBase --+
                   |
                  _AzimuthalBase
Known Subclasses:

(INTERNAL) Base class for azimuthal projections.

Azimuthal projections are centered at an arbitrary position on the sphere or ellipsoid. For a point in projected space (x, y), the geodesic distance from the center position is hypot(x, y) and the azimuth off tru North of the geodesic from the center point is atan2(x, y) (note (x, y), not (y, x)!).

The .forward and .reverse methods both return the azimuth of the geodesic at (x, y) and the scale in the azimuthal direction which, together with the basic properties of the projection, serve to specify completely the local affine transformation between geographic and projected coordinates.

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 (major) radius, semi-axis (meter).
  majoradius
Get the geodesic's equatorial (major) radius, semi-axis (meter).
  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

Inherited from object: __class__

Method Details

__init__ (self, lat0, lon0, datum=None, name='')
(Constructor)

 

New azimuthal projection.

Arguments:
  • lat0 - Latitude of center point (degrees90).
  • lon0 - Longitude of center point (degrees180).
  • datum - Optional datum (Datum) or the radius of the spherical earth (meter).
  • name - Optional name for the projection (str).
Raises:
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:

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:
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 (major) radius, semi-axis (meter).

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

majoradius

Get the geodesic's equatorial (major) radius, semi-axis (meter).

Get method:
equatoradius(self) - Get the geodesic's equatorial (major) radius, semi-axis (meter).
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.