nirinA / erfa_python

Python wrapper for ERFA library
The Unlicense
6 stars 0 forks source link

=========== erfa_python

This is a Python wrapper for ERFA, Essential Routines for Fundamental Astronomy, a library derived and 'freed' from SOFA, Standards of Fundamental Astronomy.

ERFA : https://github.com/liberfa/erfa

SOFA : http://www.iausofa.org


requirements

to use this wrapper, you need:


obtaining


download tarball


latest version is available from pypi:

https://pypi.python.org/pypi/erfa_python

or from github:

https://github.com/nirinA/erfa_python/releases

clone from github


you can clone the project repository at:

https://github.com/nirinA/erfa_python/

building

    python setup.py build

note for OS X:


https://github.com/nirinA/erfa_python/issues/4


installing

    python setup.py install

testing

a test-suite adapted from t_erfa_c.c is provided. do:

    python erfa_test.py

to validate erfa_python module.

note:


some test fail with older version of gcc (4.5). thanks to @yanwang2012 for this report, see:

https://github.com/nirinA/erfa_python/issues/6


documentation

on-line documentation is available with:

    pydoc erfa

to generate a html version:

    pydoc -w erfa

and, from the interpreter:

   >>> help(erfa)
   >>> help(erfa.<function>)

to be updated

more detailed C-api reference of liberfa is available in doc/api.rst. a html version can be built:

    cd doc   
    mkdir _build  
    sphinx-build . _build

you need sphinx and its dependencies to build the doc.


examples

some examples adapted from SOFA documentation can be found in examples/ directory.


. ex_ast.py


example of Astrometry Tools


. ex_pn.py


example of tools for Earth Attitude


. ex_ts.py


example of Time Scale and Calendar Tools


. ex_ephem.py


basic example of Ephemerids for Sun and Major planets


what's new


. 2010201



. 20170421



. 2016123



. 20160503



. 20150211



. 20141016



. 20140921



. 20140601



. 20140530



. 20140127



. 20131226



. 20131222



. 20130830



. 20130815