Skip to main content

CASCADe-jitter: Calibration of trAnsit Spectroscopy using CAusal Data jitter detection module.

Project description

pipeline status

CASCADe-jitter

This package is a sub package of the CASCADe package, developed within the EC Horizons 2020 project Exoplanets A . This package contains all functionality to detect and correct pointing jitter in spectroscopic transit observations.

Installing CASCADe-jitter

The easiest way to install the CASCADe-jitter package is to create an Anaconda environment, download the distribution from PyPi, and install the package in the designated Anaconda environment with the following commands:

conda create --name CASCADe-jitter python=3.9 ipython
conda activate CASCADe-jitter
pip install CASCADe-jitter

This will install all code and scripts you need for the package to work. For updating an existing installation to the latest release, simply use the -U flag with pip:

conda activate CASCADe-jitter
pip install CASCADe-jitter -U

Installing the CASCADe-jitter examples

The CASCADe-jitter package comes with several examples, demonstrating how to find and deterine the position of sources in and to detect pointing jitter in spectroscopic image cubes. If the package is installed from PypPi, the example jupyter notebooks and simulated data need be downloaded from the GitLab repository. To initialize the data download one can use the following bash command in the Anaconda environment:

setup_cascade-jitter.py

or alternatively from within the python interpreter:

from cascade_jitter.initialize import setup_examples
setup_examples()

The additional downloaded data also includes examples and observational data to try out the CASCADe-jitter package, which are explained below.

NOTE: The data files will be downloaded by default to a CASCADeSTORAGE/ directory in the users home directory. If a different location is preferred, please read the section on how to set the CASCADe CASCADE_STORAGE_PATH environment variable first. For details in the environment variables we refer to the documentation of the CASCADe main package.

Installing alternatives for the CASCADe-jitter package

The CASCADe-jitter code can also be downloaded from GitLab directly by either using git or pip. To download and install with a single command using pip, type in a terminal the following command

pip install git+git://gitlab.com/jbouwman/CASCADe-jitter.git@main

which will download the latest version. For other releases replace the main branch with one of the available releases on GitLab. Alternatively, one can first clone the repository and then install, either using the HTTPS protocol:

git clone https://gitlab.com/jbouwman/CASCADe-jitter.git

or clone using SSH:

git clone git@gitlab.com:jbouwman/CASCADe-jitter.git

Both commands will download a copy of the files in a folder named after the project's name. You can then navigate to the directory and start working on it locally. After accessing the root folder in a terminal, type

pip install .

to install the package.

In case one is installing CASCADe-jitter directly from GitLab, and one is using Anaconda, make sure a cascade environment is created and activated before using our package. For convenience, in the CASCADe-jitter main package directory an environment.yml can be found. You can use this yml file to create or update the cascade Anaconda environment. If you not already had created an cascade environment execute the following command:

conda env create -f environment.yml

In case you already have an cascade environment, you can update the necessary packages with the following command (also use this after updating CASCADe-jitter itself):

conda env update -f environment.yml

Make sure the CASCADe-jitter - package is in your path. You can either set a PYTHONPATH environment variable pointing to the location of the CASCADe -filtering package on your system, or when using anaconda with the following command:

conda develop <path_to_the_CASCADe_package_on_your_system>/CASCADe-jitter

Using CASCADe-jitter

The CASCADe-jitter distribution comes with several working examples and test data sets which can be found in the examples directory of the CASCADe-jitter distribution on GitLab, or have been installed locally with the commands outlined above. The example jupyter notebooks explain and demonstrate the basic usage of the filtering modules, and use simulated JWST/MIRI low resolution spectroscopic data as an example how to identify and remove cosmic hits. To run the examples make sure that the conda CASCADe-jitter environment can be found by the jupyter server. This can be achieved with the following command:

python -m ipykernel install --user --name=CASCADe-jitter

after which the notebooks can be viewed and executed with jupyter which can be started with.

jupyter notebook

Documentation

The full documentation can be found online at:


https://jbouwman.gitlab.io/CASCADe-jitter/


Alternatively, the documentation can be found in the docs directory of the CASCADe-jitter GitLab repository. After cloning the git repository, the full documentation can be generated by executing in the in the docs directory the following commands:

make html
make latexpdf

The generated HTML and PDF files will be located in the build/html and build/latex sub-directories of the main documentation directory, respectively.

Documentation on the CASCADe main package can be found at:


https://jbouwman.gitlab.io/CASCADe/


Acknowledgments

The CASCADe-jitter code was developed by Jeroen Bouwman, with contributions from the following collaborators:

Juergen Schreiber (MPIA)

This work was supported by the European Unions Horizon 2020 Research and Innovation Programme, under Grant Agreement N 776403.

Publications

https://ui.adsabs.harvard.edu/abs/2021AJ....161..284M/abstract

https://ui.adsabs.harvard.edu/abs/2021A%26A...646A.168C/abstract

https://ui.adsabs.harvard.edu/abs/2020ASPC..527..179L/abstract

https://exoplanet-talks.org/talk/271

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

cascade_jitter-0.9.7.tar.gz (38.7 kB view details)

Uploaded Source

Built Distribution

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

cascade_jitter-0.9.7-py3-none-any.whl (50.7 kB view details)

Uploaded Python 3

File details

Details for the file cascade_jitter-0.9.7.tar.gz.

File metadata

  • Download URL: cascade_jitter-0.9.7.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for cascade_jitter-0.9.7.tar.gz
Algorithm Hash digest
SHA256 e27f56205ffe9ca78288cb83b4b0437faaac0eb26bfe587c91ae202ff5578b79
MD5 fe843e0b0013b8c3acf2fd81251ec3df
BLAKE2b-256 5a022a717599daf472351f5daf776ce29e7da7901d7e9dc51a89b4e499be4981

See more details on using hashes here.

File details

Details for the file cascade_jitter-0.9.7-py3-none-any.whl.

File metadata

  • Download URL: cascade_jitter-0.9.7-py3-none-any.whl
  • Upload date:
  • Size: 50.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for cascade_jitter-0.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cbdb75810c1997979133049d08df231fa6c5d21d1612f1d905fb77f4d14aedbc
MD5 4f61ffade2a135f797e84daf8943a0b0
BLAKE2b-256 dc5fcc0e7aa79ee95be1a9577d7467cf890cfa5f7ae8623e80b71e69b03e4486

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