XARA is a python module that was initially designed to create, extract and manipulate Fourier-phase out of diffraction-dominated astronomical images, using the theory introduced by several journal papers:
- Martinache (2010), ApJ, 724, 464
- Martinache (2013), PASP, 125, 422
- Martinache et al (2020), A&A, 636, A72
Over the years, the package has been used by several graduate students, motivated by obsevring projects using a wide range of instruments (ground based adaptive optics assisted cameras as well as space borne instruments). The same students have often made their own fork of the project.
A documentation featuring several tutorial examples and a fair amount of howto explanation is available here: https://frantzmartinache.eu/xara_doc/
From 2016 to 2022, the development of XARA was supported by the ERC KERNEL project is a development carried out in the context of the KERNEL project. KERNEL has received funding from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation program (grant agreement CoG - 683029).
Xara can be installed from PyPI as xara-astro:
pip install xara-astroTo install Xara for development, first clone this repository:
git clone https://github.com/fmartinache/xara.gitIt is generally a good idea to install each package in a separate virtual environment. You can create one with
conda create -n xara python
conda activate xaraor
python -m venv venv
source venv/bin/activateThen, install Xara in editable mode, and with the test dependencies.
python -m pip install -U -e ".[test]"You can then run the tests with
python -m pytestWe use pre-commit to format the code before pushing it to the repository.
You can install pre-commit with pip install pre-commit and set it up with
pre-commit installIt will then run automatically after every commit.