Skip to main content

Simulating high-resolution spectroscopy of exoplanet atmospheres.

Project description

scope

Documentation Status License: MIT Code style: black pre-commit CodeQL Tests codecov Maintainability

Simulating cross-correlation of planetary emission.

installation

To install from source, run

python3 -m pip install -U pip
python3 -m pip install -U setuptools setuptools_scm pep517
git clone https://github.com/arjunsavel/scope
cd scope
python3 -m pip install -e .

You'll also need to download some data files. Currently, these data files are about 141 MB large. You can download them (to the correct directory, even!) with the following:

cd src/scope
chmod +x download_data.bash
./download_data.bash

This will create a data directory and plop the relevant files into it.

workflow

The bulk of scope's high-level functionality is contained in scope/run_simulation.py. For a detailed tutorial, see the documentation.

To run a large set of models, edit scope/grid.py to define a parameter grid. This grid is then used to run a set of simulations in scope/run_simulation.py; the command python run_simulation.py n will run a simulation in the defined grid at index n.

The scope.run_simulation.make_data function can be used to simulate a single high-resolution dataset. To simulate detection significances, use scope.run_simulation.calc_log_likelihood.

Running the script requires an exoplanet spectrum, stellar spectrum, and telluric spectrum. Default parameters are currently correspond to the exoplanet WASP-77Ab.

Once completed, scope.run_simulation.calc_log_likelihood will output:

  • simdata file: the simulated flux cube with PCA performed. That is, the principle components with the largest variance have been removed.
  • nopca_simdata file: the simulated flux cube, including all spectral components (exoplanet, star, blaze function, tellurics).
  • A_noplanet file: the simulated flux cube with the lowest-variance principle component removed.
  • lls_ file: the log-likelihood surface for the simulated flux cube, as a Kp--Vsys map.
  • ccfs_ file: the cross-correlation function for the simulated flux cube, as a Kp--Vsys map.

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

scope_astr-0.4.1b1.tar.gz (52.9 kB view details)

Uploaded Source

Built Distribution

scope_astr-0.4.1b1-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

Details for the file scope_astr-0.4.1b1.tar.gz.

File metadata

  • Download URL: scope_astr-0.4.1b1.tar.gz
  • Upload date:
  • Size: 52.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for scope_astr-0.4.1b1.tar.gz
Algorithm Hash digest
SHA256 885fc704b9be986608ea9421789dcb296e4723ab7eb8a2b08506e2675603783e
MD5 b5fef782efd32c8c022b408ee45b07fb
BLAKE2b-256 7ca0f49898bb2beb5217b1a6bb1d21439abcc7c56d278836fd3bf83efd6f75bd

See more details on using hashes here.

File details

Details for the file scope_astr-0.4.1b1-py3-none-any.whl.

File metadata

  • Download URL: scope_astr-0.4.1b1-py3-none-any.whl
  • Upload date:
  • Size: 45.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for scope_astr-0.4.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 b21bc23bb9c193276815f015d67b8d0be9a87b390c90befa43ccbdcea28656cf
MD5 a82271808d101eab28127802dbb7df22
BLAKE2b-256 06c89aa9b9c3062a2a7a450d23cbf40d554219bb090cb0b5b7514e80851c2629

See more details on using hashes here.

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