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

You can install scope using pip:

pip install scope-astr

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.2b0.tar.gz (53.1 kB view details)

Uploaded Source

Built Distribution

scope_astr-0.4.2b0-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file scope_astr-0.4.2b0.tar.gz.

File metadata

  • Download URL: scope_astr-0.4.2b0.tar.gz
  • Upload date:
  • Size: 53.1 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.2b0.tar.gz
Algorithm Hash digest
SHA256 08f82e4054a0700b6c655f1da760e2efbaaf8b56239ce09dcb0bb23c85cc5006
MD5 62e83f77ac9fbadfc04f88d20262a9e5
BLAKE2b-256 21156ba5128e820273870298fe68f173197d1cab23834c477ed97071a574ea7d

See more details on using hashes here.

File details

Details for the file scope_astr-0.4.2b0-py3-none-any.whl.

File metadata

  • Download URL: scope_astr-0.4.2b0-py3-none-any.whl
  • Upload date:
  • Size: 45.7 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.2b0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d3fd4245e9aa7cd0467f4ed45a9a6f57f9bece893e7fb1cea84a6743b9ee694
MD5 9b509b4c5081a6b6252a60b5b2b85926
BLAKE2b-256 52c57c3b88eeefab78888c524644d0cb041cfe82e79837ffb7b76d9331e09f53

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