This is the documentation of fours, a Python package for PSF subtraction
with the 4S algorithm for exoplanet high contrast imaging (HCI).
Using the 4S algorithm, we were able to recover the planet AF Lep b in archival
data from 2011. This demonstrates the power of the 4S algorithm for data
post-processing in HCI.
This repository contains the code needed to reproduce the results of our paper (paper in preparation).
A full documentation of the package, including several examples and tutorials can be found on ReadTheDocs.
This short guide will walk you through the required steps to set up and install
fours.
The code of fours is available on the PyPI repository
as well as on
GitHub. We strongly recommend you
to use a virtual environment to install
the package.
Just run:
pip install foursStart by cloning the repository and install fours as a Python package:
git clone git@github.com:markusbonse/fours.git ;
cd fours ;
pip install .In case you intend to modify the package you can install the package in
"edit mode" by using the -e flag:
pip install -e .Depending on the use case fours can be installed with additional options.
If you install fours from GitHub you can add them by:
pip install -e ".[option1,option2,...]"The following options are available:
dev: Adds all dependencies needed to build this documentation page with sphinx.plotting: Installs the libraries seaborn, matplotlib and bokeh which we use in our plots.
If you want to reproduce our results or get some example data to play with you can download the data used in our paper. The data is publicly available:
The data is publicly available at Zenodo. There are two parts of the data available:
30_data: The raw NACO L’ datasets after pre-processing with PynPoint. They are available here.70_results: The intermediate results of the paper. They are available here. Please download and unpack the files. the directory should contain three subdirectories:
Check out the plot gallery
in the fours documentation.
All code was written by Markus J. Bonse. Detailed information on the citation can be found here.