ClosureInvariants is a Python package for calculating closure quantities such as closure phases and closure amplitudes using advariants and covariants derived from complex correlation data. These quantities are essential for robust interferometric analysis in radio astronomy and related fields.
The source code is hosted on GitHub: https://github.com/nithyanandan/ClosureInvariants
AstroUtils (https://github.com/nithyanandan/AstroUtils) is a dependency, so ensure it is installed first.
To install ClosureInvariants, first clone the repository:
git clone https://github.com/nithyanandan/ClosureInvariants.git
cd ClosureInvariantsThen install the package using pip:
pip install .Alternatively, for editable development mode:
pip install -e .To run the test suite using pytest, ensure pytest and pytest-cov are installed. For example,
pip install pytest pytest-covor
conda install pytest pytest-cov -c conda-forgeThen run:
pytest --pyargs -vv --cov ClosureInvariantsThis will run all tests and generate a code coverage report.
Example usage of the package is provided in the form of Jupyter notebooks
located in the examples folder.
This project is licensed under the MIT License.
Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.
For questions or support, please contact nithyanandan [dot] t [at] gmail [dot] com or open an issue on GitHub.