Skip to main content

applefy: A library to compute detection limits for high contrast imaging of exoplanets

Project description

Applefy: Robust Detection Limits for High-Contrast Imaging

Python 3.8 | 3.9 Documentation Status

This is the documentation of applefy, a Python package for calculating detection limits for exoplanet high contrast imaging (HCI) datasets. applefy provides a number of features and functionalities to improve the accuracy and robustness of contrast curve calculations. It implements the classical approach based on the t-test (compare Mawet et al. 2014) as well as the parametric boostrap test for non-Gaussian residual noise (Bonse et al. 2023).

Applefy has two main features:

  1. Compute contrast curves (see documentation)
  2. Compute contrast grids (see documentation)

Further, this repository contains the code needed to reproduce the results of our paper, available here.


Documentation

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 applefy.

The code was written for Python 3.8 and above

Installation

The code of applefy is available on the PyPI repository as well as on GitHub. We strongly recommend you to use a virtual environment to install the package.

Applefy can only be used together with a data post-processing library for high-contrast imaging data! The following packages are currently supported:

  1. PynPoint

  2. VIP

Installation from PyPI

Just run:

pip install applefy

Installation from GitHub

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

git clone git@github.com:markusbonse/applefy.git ;
cd applefy ;
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 .

Additional Options

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

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

If you install applefy from PiPy you can add them by:

pip install "applefy[option1,option2,...]"

The following options are available:

  1. dev: Adds all dependencies needed to build the documentation page with sphinx.
  2. fast_sort: Installs the library parallel_sort which can speed up the calculation of bootstrap experiments. Since, parallel_sort is a wrapper around the GNU library it is only supported on Linux.
  3. plotting: Installs the libraries seaborn, matplotlib and bokeh which we use in our plots.
  4. vip: Installs applefy with VIP. Note, this option is conflicting with the option pynpoint.
  5. pynpoint: Installs applefy with PynPoint using the PynPoint version available on GitHub. Note, this option is conflicting with the option vip. This option is only available if you install applefy from GitHub.

Demonstration dataset

The tutorials in the user documentation are based on a demonstration dataset (NACO at the VLT). The data is publicly available at Zenodo. The repository contains three files:

  1. 30_data: This is the NACO L' Beta Pic dataset as a hdf5 already. The data was pre-processed with PynPoint.
  2. 70_results: Contains results created by the tutorials of the user documentation. They are only needed if you don't want to compute your own PCA residuals.
  3. laplace_lookup_tables.csv: Are the lookup tables for the LaplaceBootstrapTest.

Reproduce our results

Check out the plot gallery in the applefy documentation.

Authors and Citation

All code was written by Markus J. Bonse, with additional contributions from Timothy Gebhard. Detailed information on the citation can be found here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

applefy-0.1.2.tar.gz (57.8 MB view hashes)

Uploaded Source

Built Distribution

applefy-0.1.2-py3-none-any.whl (57.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page