/hcipy

A framework for performing optical propagation simulations, meant for high contrast imaging, in Python.

Primary LanguagePythonMIT LicenseMIT

PyPI Status Build Status Build status Coverage Status Documentation Status License

High Contrast Imaging for Python (HCIPy)

HCIPy is an open-source object-oriented framework written in Python for performing end-to-end simulations of high-contrast imaging instruments for astronomy.

The library defines wavefronts and optical elements for defining an optical system, and provides both Fraunhofer and Fresnel diffraction propgators. Polarization is supported using Jones calculus, with polarizers and waveplates included out of the box. It implements atmospheric turbulence using thin infinitely-long phase screens, and can model scintillation using Fresnel propagation between individual layers. Many wavefront sensors are implemented including a Shack-Hartmann and Pyramid wavefront sensor. Implemented coronagraphs include the vortex, Lyot and APP coronagraph.

By including simulation of both adaptive optics and coronagraphy into a single framework, HCIPy allows simulations including feedback from post-coronagraphic focal-plane wavefront sensors to the AO system.

For documentation, see https://hcipy.readthedocs.io.

Installation

HCIPy can be installed from PyPI as usual:

pip install hcipy

To install the latest development version from Github:

git clone https://github.com/ehpor/hcipy
cd hcipy
python setup.py develop

HCIPy can then be updated by running:

git pull

inside the hcipy repository.

Citing

If you use HCIPy for your own research, please include the following acknowledgement in your publication:

This research made use of HCIPy, an open-source object-oriented framework written in Python for performing end-to-end simulations of high-contrast imaging instruments (Por et al. 2018).

The BibTeX citation can be found below:

@inproceedings{por2018hcipy,
   author = {Por, E.~H. and Haffert, S.~Y. and Radhakrishnan, V.~M. and Doelman, D.~S. and Van Kooten, M. and Bos, S.~P.},
   title = "{High Contrast Imaging for Python (HCIPy): an open-source adaptive optics and coronagraph simulator}",
   booktitle = {Adaptive Optics Systems VI},
   year = 2018,
   series = {Proc. {{SPIE}}},
   volume = 10703
}

Documentation

A complete documentation is currently a work in progress. The current documentation can be found at https://hcipy.readthedocs.io. Alternatively, you can build the documentation yourself by executing:

cd doc
make clean
make html

Afterwards, the built documentation should now be visible in doc/_build/html as a static website.

Contributions

If you have something to add, or want something added to HCIPY, please let us know We actively support external contributions to HCIPy, whether small or large. We are working in a feature branching workflow.