Giter Club home page Giter Club logo

dggs's Introduction

Introduction

rHEALPixDGGS is a Python 3.3 package that implements the rHEALPix discrete global grid system (DGGS).

Build Status

Requirements

  • Python >=3.3
  • NumPy >=1.7 Base N-dimensional array package
  • SciPy >=0.12 Fundamental library for scientific computing
  • Matplotlib >=1.2.1 Comprehensive 2D Plotting
  • Pyproj >=1.9.3 Python interface to the PROJ.4 cartographic library
  • Sage >=5.10 (Optional) Comprehensive mathematics package. Needed only for a few optional graphics methods. To use the optional graphics methods, start a Sage notebook session and import/attach the Python module that contains the methods. For examples, see the Sage worksheet rhealpix_dggs/tests/test_rhealpix_dggs.sws.

Installation

rHEALPixDGGS is available for download at Landcare's git repository http://code.scenzgrid.org/index.php/p/scenzgrid-py/ and can be cloned via the command git clone [email protected]:scenzgrid-py.git.

Tests

The files in the rhealpix_dggs/tests directory test the rHEALPixDGGS modules. Running the command python tests/test_<foo>.py from the rhealpix_dggs directory 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!

The .sws files in the tests directory are Sage worksheets. They are not automated tests, but rather supplementary graphical tests. To run these, install Sage, install Pyproj in Sage (download the Pyproj source code, change to the Pyproj directory, start a Sage shell via sage -sh, then type python setup.py build, then python setup.py install; if that doesn't work, try again but first start in superuser mode via sudo su), start up a Sage notebook session, and open the worksheets.

Run python run_all_tests.py from the rhealpix_dggs directory to run all automated tests (but not the Sage tests) and doctest all the modules of rhealpix_dggs.

Documentation

Documentation can be found at:

- ``docs/rhealpix_dggs_preprint.pdf``
Introduction to 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 rhealpix_dggs 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.

dggs's People

Contributors

qxcv avatar yaduart avatar

Watchers

James Cloos avatar XIAOCHUANG YAO avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.