Skip to main content

A Pincipal Component Pipeline based on Damiano et al. 2019

Project description

pcassie

Documentation Status codecov image

You can install pcassie with: pip install pcassie

Code based on M. Damiano, G. Micela, and G. Tinetti (2019). A Principal Component Analysis-based Method to Analyze High-resolution Spectroscopic Data on Exoplanets

Originally developed for CRIRES+ data. Pipeline run time depends on the resolution and number of spectra and detectors in your dataset. For a dataset of 31 spectra and 14 detectors from CRIRES+, sampling to the optimal PCA components in the time-domain space takes 5-7 minutes.

The code is structured as follows. All programs are .py files in the 'pcassie' folder. pipeline.py compiles the nessecary functions into one 'pipeline' function. The pipeline function optionally recalibrates the pixel-wavelength relation of the data spectrum to a telluric model from EsoSky (Noll et al. 2012, Jones et al. 2013), then will perform PCA subtraction on the data (from pca_subtraction.py) and cross-correlation with a user input simulated spectrum (from ccf.py). Typically you would like to sample PCA components for the optimal reduction; this can be accomplished via 'sample_full_pca_components', which runs 'pipeline' and removes the first and last components until the peak of the signal-to-noise matrix (refer to Damiano et al. (2019) for details) is maximized. For the development of this codebase, I used MultiRex (Duque-Castaño et al. 2024), a straightforward implementation of TauRex (Al-Refaie et al. 2019). There are additional functions to inject the data with the simulated spectrum and perform a Welch's T-test in ccf.py.

Helpful Documents in order of relevance

Damiano (2018), Sec. 3.2, 5.3, 5.4, 5.5, 5.6. From space to ground (thesis)

Duque-Castaño et al. (2024). Machine-assisted classification of potential biosignatures in Earth-like exoplanets using low signal-to-noise ratio transmission spectra (MultiRex)

Kipping & Benneke (2025). Exoplaneteers Keep Overestimating Sigma Significances

Generally Helpful Links

NASA Exoplanet Archive, helpful for exoplanetary parameters.

ESO Exposure Time Calculator, helpful for identifying detectors on ESO instruments most affected by tellurics.

ESO SkyCalc, helpful to get a telluric model.

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

pcassie-0.1.7.tar.gz (139.8 kB view details)

Uploaded Source

File details

Details for the file pcassie-0.1.7.tar.gz.

File metadata

  • Download URL: pcassie-0.1.7.tar.gz
  • Upload date:
  • Size: 139.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pcassie-0.1.7.tar.gz
Algorithm Hash digest
SHA256 68d47fc21fda71d502c45ff77f7ac4524749f64e024dac7bbc40de55fce56a10
MD5 98450f8a5ea24f80827a34862cb9569a
BLAKE2b-256 d02a70cc63515d9f8b474ae59d180079f137c3aa812c88ae305d92f2486e70fc

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