Xara
a python package for eXtreme Angular Resolution Astronomy
Install / Use
/learn @fmartinache/XaraREADME
XARA: a python package for eXtreme Angular Resolution Astronomy
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.
Tutorial/documentation
A documentation featuring several tutorial examples and a fair amount of howto explanation is available here: https://frantzmartinache.eu/xara_doc/
Acknowledgement
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).
Installation
Xara can be installed from PyPI as xara-astro:
pip install xara-astro
For development
To install Xara for development, first clone this repository:
git clone https://github.com/fmartinache/xara.git
It 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 xara
or
python -m venv venv
source venv/bin/activate
Then, 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 pytest
We 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 install
It will then run automatically after every commit.
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
