Skip to main content

An implementation of the rHEALPix discrete global grid system

Project description

rHEALPixDGGS is a Python package that implements the rHEALPix Discrete Global Grid System (DGGS).

Release Notes

This package was originally authored in 2013 and has had only minor code updates since then.

0.5.4 - current

Code unchanged from 0.5.3 other than updating to Python 3.11

Refer to file CHANGES.rst for a more detailed history of changes.

Requirements

  • requirements.txt - all the module requirements for operation
  • requirements.dev.txt - packages needed for developing this package

Installation

This package is available on PyPI, the Python Package Index from where it can be installed as follows:

pip install rhealpixdggs

rHEALPixDGGS is also available for download from the github repository https://github.com/manaakiwhenua/rhealpixdggs-py from where the latest version can be cloned.

Tests

The files in the tests directory test the rHEALPixDGGS modules. These files are plain unittest files (the Python testing framework contained within the standard distribution). Tests for examples in documents need the doctest module installed (see requirements.dev.txt).

Two UNIX shell scripts are included in this repository to run all unit and doc tests:

  • run_doctests.sh

  • run_unittests.sh

Running the command python tests/test_<foo>.py performs a sequence of automated tests of <foo>.py.

For example, tests/test_distortion.py automatically tests distortion.py.

If you update a module, then update its test file to test the changes you made!

Test early, test often, test automatically!

There are a couple of files in the main package directory that can be used to run all tests, starting run_....

Documentation

Documentation can be found at:

  • The rHEALPix Discrete Global Grid System - The rHEALPix Discrete Global Grid System

  • docs/build/latex/rHEALPixDGGS.pdf - The rHEALPixDGGS manual

  • docs/build/html/index.html - The rHEALPixDGGS manual in HTML format

The latter two documents are generated automatically from the source code of the rhealpixdggs package modules. To automatically build these yourself, install the Python package Sphinx (but do not run sphinx-quickstart, because the make file Makefile and the configuration file docs/source/conf.py already exist) and then from the docs directory run the command make latexpdf to make the PDF documentation or make html to make the HTML documentation. For the PDF documentation, you might also need to install LaTeX.

The source and build directories contain all the Sphinx source and build files, respectively.

License

This code is licensed under the GNU Lesser General Public License v3.0,. See the file LICENSE for a copy of the deed.

Contact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rHEALPixDGGS-0.5.4.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

rHEALPixDGGS-0.5.4-py3-none-any.whl (47.4 kB view details)

Uploaded Python 3

File details

Details for the file rHEALPixDGGS-0.5.4.tar.gz.

File metadata

  • Download URL: rHEALPixDGGS-0.5.4.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for rHEALPixDGGS-0.5.4.tar.gz
Algorithm Hash digest
SHA256 57712493da6643df33f89b793c24f4248260c9db4eb08c7dd3a32e2950464ffe
MD5 c222907e01856e9b24fe556ac831154d
BLAKE2b-256 d3f86c2347db2132476cca36a66b8e6a9dddd3f2e08731148b7403473f49f0a4

See more details on using hashes here.

File details

Details for the file rHEALPixDGGS-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: rHEALPixDGGS-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 47.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for rHEALPixDGGS-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5a8191fe5d4586d3965ab0a4d93735ff304f88db267d4af1010a7a14f870da48
MD5 9b89ebb0bccf6f23cbead0377928d7c7
BLAKE2b-256 f02e69f33e4abec0111c0cc861bd446d5a65f028cd0952638493fcb10701530c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page