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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file applefy-0.1.2.tar.gz.

File metadata

  • Download URL: applefy-0.1.2.tar.gz
  • Upload date:
  • Size: 57.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for applefy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b28d680f7aaf9bf2e2dd11cb37e74d28be998af21c72794de5996ffb656e34a3
MD5 4100a39606e975636de204438e4ecdf1
BLAKE2b-256 78946c794922acd71f9509689fbe1468da0c47c0be7eba302962dffc48194fe4

See more details on using hashes here.

File details

Details for the file applefy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: applefy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 57.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for applefy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 50b890b7ee94fdcd1927fbe4fe29b5f1ae4b00f2941019f8de334bed83432ccf
MD5 bd1cbe37170b06fae750079a8f25a979
BLAKE2b-256 a2c88645750f120fed9cbb010658ab2b1ae09cdb22547c5645e69b08e5a8122e

See more details on using hashes here.

Supported by

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