General purpose utilities, particularly useful for astronomy calculations. It includes mathematical, non-mathematical, geometrical, sky model, and miscellaneous routines.
Note that currently this package supports Python 3.6+, but should also support Python 2.7+.
The only non-python dependencies required are openmpi and xterm. These can usually be installed via a distro
package manager (for Arch Linux, the package names are exactly openmpi and xterm).
openmpi can also be installed in the environment using the mpi4py package.
If using the Anaconda/Miniconda python distribution, many of the packages may be installed using conda.
It is best to first create a new env:
conda create -n YOURENV python=2
Then install conda packages:
conda install mpi4py progressbar psutil pyyaml h5py scikit-image
- NOTE: at this time, you must install
scikit-imagevia conda, or else it will - try to install packages that are incompatible
Finally, either install AstroUtils directly:
pip install git+https://github.com/nithyanandan/AstroUtils.git
or clone it into a directory and from inside that directory issue the command:
pip install .
If you have pytest installed, the tests can be run using
pytest --pyargs astroutils
Typical usage often looks like this:
from astroutils import DSP_modules
from astroutils import geometry
If you use AstroUtils for your research, please acknowledge and cite it using the bibtex entry from https://doi.org/10.5281/zenodo.3831861