Metadata-Version: 2.1
Name: fours
Version: 0.0.3
Summary: Data post-processing for high-contrast imaging with the 4S Algorithm.
Home-page: https://github.com/markusbonse/fours.git
Author: Markus Bonse
Author-email: mbonse@phys.ethz.ch
License: MIT License
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: seaborn
Requires-Dist: numpy
Requires-Dist: tqdm
Requires-Dist: photutils
Requires-Dist: matplotlib
Requires-Dist: scikit-learn
Requires-Dist: scikit-image
Requires-Dist: torch
Requires-Dist: h5py
Requires-Dist: astropy
Requires-Dist: tensorboard
Requires-Dist: pandas
Provides-Extra: dev
Requires-Dist: furo >=2022.12.7 ; extra == 'dev'
Requires-Dist: sphinx-rtd-theme ==1.1.1 ; extra == 'dev'
Requires-Dist: sphinx <6,>=2.1 ; extra == 'dev'
Requires-Dist: myst-parser ~=0.18.1 ; extra == 'dev'
Requires-Dist: nbsphinx >=0.8.9 ; extra == 'dev'
Requires-Dist: sphinx-copybutton ~=0.5.1 ; extra == 'dev'
Requires-Dist: sphinx-gallery <=0.10 ; extra == 'dev'
Requires-Dist: twine ~=4.0.2 ; extra == 'dev'
Requires-Dist: IPython ~=8.8.0 ; extra == 'dev'
Requires-Dist: ipywidgets ~=8.0.4 ; extra == 'dev'
Requires-Dist: jupyter-contrib-nbextensions ~=0.7.0 ; extra == 'dev'
Requires-Dist: sphinx-autodoc-typehints >1.6 ; extra == 'dev'
Provides-Extra: plotting
Requires-Dist: seaborn ~=0.12.1 ; extra == 'plotting'
Requires-Dist: matplotlib >=3.4.3 ; extra == 'plotting'
Requires-Dist: bokeh >=3.0.3 ; extra == 'plotting'

# Use the 4S (Signal Safe Speckle Subtraction) for High-Contrast Imaging
![Python 3.8 | 3.9](https://img.shields.io/badge/python-3.8_|_3.9-blue)
[![Documentation Status](https://readthedocs.org/projects/fours/badge/?version=latest)](https://fours.readthedocs.io/en/latest/?badge=latest)
---

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**).

---

## Documentation
A full documentation of the package, including several examples and tutorials 
can be found [on ReadTheDocs](https://fours.readthedocs.io).

This short guide will walk you through the required steps to set up and install
`fours`.

## Installation

The code of `fours` is available on the [PyPI repository](https://pypi.org/project/fours/)
as well as on 
[GitHub](https://github.com/markusbonse/fours). We *strongly* recommend you 
to use a [virtual environment](https://virtualenv.pypa.io/en/latest/) to install
the package.

### Installation from PyPI

**Note**: The package is currently in the process of being uploaded to PyPI.

### Installation from GitHub

Start by cloning the repository and install `fours` as a Python package:

```bash
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:

```bash
pip install -e .
```

### Additional Options

Depending on the use case `fours` can be installed with additional options. 
If you install `fours` from GitHub you can add them by:

```bash
pip install -e ".[option1,option2,...]"
```

The following options are available:
1. `dev`: Adds all dependencies needed to build this documentation page with
[sphinx](https://www.sphinx-doc.org/en/master/).
3. `plotting`: Installs the libraries [seaborn](https://seaborn.pydata.org), 
[matplotlib](https://matplotlib.org) and 
[bokeh](https://docs.bokeh.org/en/latest/)
which we use in our plots.

## Demonstration dataset
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 at **COMING SOON**.

The repository contains three files:

1. `30_data`: These are the NACO L'-band datasets as hdf5 files. 
The data was pre-processed with [PynPoint](https://pynpoint.readthedocs.io/en/latest/).
2. `70_results`: Contains the intermediate results of our paper. If you don't 
have access to a high-performance computing cluster you can use these files.

## Reproduce our results
Check out the [plot gallery](https://fours.readthedocs.io/en/latest/04_use_the_fours/01_general.html)
in the ``fours`` documentation.

## Authors and Citation
All code was written by Markus J. Bonse.
Detailed information on the citation can be found [here](https://fours.readthedocs.io/en/latest/05_citation.html).
