Skip to main content

PyRDNAP

A pure Python implementation of the 2018 v220627 version of the Netherlands' RD (RijksDriehoeksmeting) and NAP (Normaal Amsterdams Peil) systems to convert between GRS80 (ETRS89) geodetic lat-, longitudes and ellipsoidal height and local RD coordinates and orthometric height using bilinear interpolation of quasi-geoid NAPh heights.

PyRDNAP includes two transformer classes RDNAP2018v1 and RDNAP2018v2 implementing variant 1 respectively variant 2 of the RDNAPTRANS(tm)2018 v220627 specification. Each class provides a forward method to convert a geodetic lat-, longitude and ellipsoidal height to local RDx, RDy and orthometric height and a reverse method to convert local to geodetic coordinates and orthometric to ellipsoidal height.

Quasi-geoid NAPh height is interpolated only for locations within the RD region. Heights outside that region are NAN unless raising an RDNAPError is specified.

For further details see the documentation and the main module.

Note

The results of both pyrdnap transformer classes RDNAP2018v1 and RDNAP2018v2 have been formally validated and PyRDNAP has been certified to carry the trademark RDNAPTRANS(tm).

Installation

To install pyrdnap, type python[3] -m pip install pyrdnap or python[3] -m easy_install pyrdnap in a terminal or command window.

Alternatively, download pyrdnap-yy.m.d.tar.gz from PyPI or GitHub, unzip the downloaded file, cd to directory pyrdnap-yy.m.d and type python[3] setup.py install.

To run the pyrdnap tests, type python[3] test/run.py or type python[3] test/unitTestSuite.py before or after installation.

Dependencies

Installation of Python package pygeodesy is required, version 26.8.18 or newer. Type python[3] -m pip install -r requirements.txt to install.

Documentation

In addition to the pyrdnap package, the pyrdnap distribution file contain the tests, the test results (on macOS only) and the complete documentation generated by Epydoc using command line: epydoc --html --no-private --no-source --name=pyrdnap --url=... -v pyrdnap.

Tests

The tests ran with Python 3.14.7, 2.7.18 and with PyPy 7.3.17 (Python 3.10.14), all with pygeodesy 26.5.26 and on macOS 26.5.2 Tahoe in 64-bit. The results of those tests are included in the distribution file.

Python 3.14.7 and PyPy 7.3.17 run on Apple M4 (arm64), natively. Python 2.7.18 runs on Intel (x86_64) or Intel emulation ("arm64_x86_64", see function pyrdnap.machine).

Test coverage has been measured with coverage 7.14.0 using Python 3.14.7. The complete coverage report in HTML and a PDF summary are included in the distribution file.

The tests also ran with Python 3.14.7 on Windows 2019Server and with Python 3.13.3 on Windows 11, both in 64-bit only.

Notes

All Python source code has been statically checked with Ruff using Python 3.13.12 and with PyChecker, PyFlakes, PyCodeStyle (formerly Pep8) and McCabe using Python 2.7.18, both in 64-bit on macOS 26.5.2 Tahoe only.

Last updated: Aug 18, 2026.

License

Copyright (C) 2026-2026 -- mrJean1 at Gmail -- All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

https://Img.Shields.io/pypi/pyversions/pyrdnap.svg?label=Python https://Img.Shields.io/pypi/v/pyrdnap.svg?label=PyPI https://Img.Shields.io/appveyor/ci/mrJean1/PyRDNAP.svg?branch=master&label=AppVeyor https://Img.Shields.io/badge/coverage-96%25-brightgreen https://Img.Shields.io/pypi/wheel/pyrdnap.svg https://Img.Shields.io/pypi/l/pyrdnap.svg https://img.shields.io/pypi/dm/pyrdnap

Metadata

Release files for pyrdnap 26.8.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrdnap 26.8.18
File Size Uploaded
pyrdnap-26.8.18.tar.gz 5.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyrdnap 26.8.18
File Interpreter ABI Platform
pyrdnap-26.8.18-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 8.5 MB

Release files / pyrdnap-26.8.18.tar.gz

Download URL pyrdnap-26.8.18.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
6846833d359810f400718cc5b45888cd03edb6d0d6cda3bea2f2a406c6f424da
BLAKE2b-256 checksum
How to use checksums
aaecf8838f8c54310e85f1e8b881b60aef92a72e469fbf6d3215be6305216ac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / pyrdnap-26.8.18-py2.py3-none-any.whl

Download URL pyrdnap-26.8.18-py2.py3-none-any.whl
Size 3.0 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
04797fdef54bd75db93310d0e0365472d3149deeba7689fad01b8e60d6792d3b
BLAKE2b-256 checksum
How to use checksums
f8bed61a60dff213fd676f664e6a13eb8e64a7d03d3ea58867188fff97105df6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release history Release notifications | RSS feed

This release

26.8.18 This release

2 release files

26.7.9

2 release files

26.6.9

2 release files

26.5.9

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page