Package pyrdnap :: Module rdnap2018 :: Class RDNAP2018v1
[frames] | no frames]

Class RDNAP2018v1

            object --+            
                     |            
pygeodesy.named._Named --+        
                         |        
pygeodesy.named._NamedBase --+    
                             |    
                    _RDNAPbase --+
                                 |
                                RDNAP2018v1

Transformer implementing RD NAP 2018 variant 1.

Instance Methods
 
__init__(self, a_ellipsoid=None, f=None, raiser=False, **name)
New RDNAP2018v1 or -v2 instance.
 
forward(self, lat, lon, height=0, raiser=None, name='forward')
Convert geodetic GRS80 (ETRS98) (lat, lon) and height to local (RDx, RDy) coordinates and NAPh quasi-geoid-height.
 
reverse(self, RDx, RDy, NAPh=0, raiser=None, **name)
Convert a local (RDx, RDy) point and NAPh height to geodetic GRS80 (ETRS89) (lat, lon, height).
 
similarity(self, inverse=False)
Get the forward or reverse datum transform (Similarity).

Inherited from _RDNAPbase: isinside, rdNAPh, toStr

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

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

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

Properties
  variant

Inherited from _RDNAPbase: forwardDatum, region, reverseDatum

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

Inherited from object: __class__

Method Details

__init__ (self, a_ellipsoid=None, f=None, raiser=False, **name)
(Constructor)

 

New RDNAP2018v1 or -v2 instance.

Arguments:
  • a_ellipsoid - An ellipsoid (Ellipsoid), a datum (Datum) or the ellipsoid's equatorial radius (scalar, conventionally in meter), see f. Default Datums.GRS80.
  • f - The flattening of the ellipsoid (scalar) if a_ellipsoid is specified as scalar, ignored otherwise.
  • raiser - If True raise an RDNAPError for lat-/longitudes outside the RD region (bool).
  • name - Optional name (str).
Raises:
  • RDNAPError - Ellipsoid (or datum) is not oblate (i.e. is spherical or prolate) or the datum's transform is not unity.
Overrides: object.__init__

forward (self, lat, lon, height=0, raiser=None, name='forward')

 

Convert geodetic GRS80 (ETRS98) (lat, lon) and height to local (RDx, RDy) coordinates and NAPh quasi-geoid-height.

Arguments:
  • lat - Latitude (degrees geodetic).
  • lon - Longitude (degrees geodetic).
  • height - Height, optional (meter above geoid) or NAN to ignore NAPh interpolation.
  • raiser - If True raise an RDNAPError if lat or lon is outside the RD region (bool), if False don't, overriding property raiser.
  • name - Optional name='forward' (str).
Returns:
An RDNAP7Tuple(RDx, RDy, NAPh, lat, lon, height, datum) with local RDx, RDy coordinates and NAPh height.
Overrides: _RDNAPbase.forward

reverse (self, RDx, RDy, NAPh=0, raiser=None, **name)

 

Convert a local (RDx, RDy) point and NAPh height to geodetic GRS80 (ETRS89) (lat, lon, height).

Arguments:
  • RDx - Local RD X (meter, conventionally).
  • RDy - Local RD Y (meter, conventionally).
  • NAPh - NAP quasi-geoid-height (meter, conventionally) or NAN to ignore NAPh interpolation.
  • raiser - If True raise an RDNAPError if lat or lon is outside the RD region (bool), if False don't, overriding property raiser.
  • name - Optional name='reverse' (str).
Returns:
An RDNAP7Tuple(RDx, RDy, NAPh, lat, lon, height, datum) with geodetic lat and lon, height and datum GRS80 (ETRS89).

Property Details

variant

Get method:
_fget(inst) - Get the property value, only once and memoize/cache it.
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(*unused) - Silently ignored, always.