Skip to main content

An Automated Pipeline for the Selection of Transmission Spectroscopy Candidates

Project description

PREFACE

Prioritization and Ranking of Exoplanets For Astronomical Characterization and Exploration (PREFACE) is a Python package for selection of promising exoplanet transmission spectroscopy observations based on their expected scientific return and observational feasibility.


Installation

Install the latest stable release from PyPI:

pip install preface-spearnet

Usage

Using preface consists of four steps:

  1. Configure the observing instrument with TelescopeConfigurations.
  2. Define the observing window and output options with OutputConfigurations.
  3. Optionally configure moonlight modelling and multiprocessing with MoonlightNoiseConfigurations and MultiprocessingConfigurations.
  4. Execute the complete pipeline with run_preface().

Input validation is performed automatically before pipeline execution.

Full documentation (configuration reference, PREFACE workflow and output descriptions, and API) is available at preface.readthedocs.io.

Example

import datetime as dt
from preface import run_preface
from preface.configs import (
    TelescopeConfigurations,
    OutputConfigurations,
    MoonlightNoiseConfigurations,
    MultiprocessingConfigurations,
)

ObsStart = dt.datetime(2025, 10, 1)
ObsEnd = dt.datetime(2026, 1, 1)
OutputFolder = r"C:\PREFACE_Output"

TelescopeConfigs = TelescopeConfigurations(
    instrument="TNT ULTRASPEC",
    filter_name="r",
    run_mode="Half_Well",
    toggle_sky_noise=True,
    toggle_defocus=False
)

OutputConfigs = OutputConfigurations(
    observation_start=ObsStart,
    observation_end=ObsEnd,
    output_folder=OutputFolder,
    metric_mode="Rank",
    viable_cumulative_cut=0.90,
    toggle_graph_outputs=True,
    event_weight_graph_threshold=0.75
)

MoonlightConfigs = MoonlightNoiseConfigurations(
    toggle_moonlight_noise=True,
    scattering_aod=0.2,
    absorption_aod=0.3,
    asymmetry_factor=0.6,
    moonlight_amplification_factor=10
)

MultiprocessingConfigs = MultiprocessingConfigurations(
    toggle_multiprocessing=True,
    cores_to_leave_out=2
)

run_preface(
    TelescopeConfigurations=TelescopeConfigs,
    OutputConfigurations=OutputConfigs,
    MoonlightNoiseConfigurations=MoonlightConfigs,
    MultiprocessingConfigurations=MultiprocessingConfigs
)

Authors

Jake Staberg Morgan (Original author)

Chatdanai Sawangwong (Current maintainer)
email: chatdanai.saw@gmail.com

Supachai Awiphan
email: supachai@narit.or.th

Orarik Tasuya
email: orarik@narit.or.th

Napaporn A-thano
email: napaporn@narit.or.th

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

preface_spearnet-2.0.0b5.tar.gz (11.1 MB view details)

Uploaded Source

Built Distribution

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

preface_spearnet-2.0.0b5-py3-none-any.whl (11.3 MB view details)

Uploaded Python 3

File details

Details for the file preface_spearnet-2.0.0b5.tar.gz.

File metadata

  • Download URL: preface_spearnet-2.0.0b5.tar.gz
  • Upload date:
  • Size: 11.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for preface_spearnet-2.0.0b5.tar.gz
Algorithm Hash digest
SHA256 bb5bd33b82f3c5dbb2ba8226f898c55ef1fe880824db57eddc589427aa69a7c7
MD5 ca31dc660e67de15d9d6f54c07bb0b90
BLAKE2b-256 7b98223ba76013407c2482da5a7550d6af88008f6a4b2d40a163b44698d4202d

See more details on using hashes here.

File details

Details for the file preface_spearnet-2.0.0b5-py3-none-any.whl.

File metadata

File hashes

Hashes for preface_spearnet-2.0.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 192eee73d473be6fae9cb11e1e966b6fefe75bc9274e67172ad75b068bbf2ba2
MD5 0f1dda780ea7be9fbe606b99e79f425b
BLAKE2b-256 852fc07f7b21b89565019943879b0180f60339be027cb5858cbbe8a93d2a7bf0

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