Shadow imaging of transiting objects
Project description
README
This version of EightBitTransit
is an MIT-licensed python code redesigned to make use of GPU parallelization with Numba:
- Can calculate the light curve of any pixelated image transiting a star;
- Can invert a light curve to recover the "shadow image" that produced it.
Installation
To install EightBitTransit, download this directory, navigate to it, and run:
pip install .
Dependencies
- Numpy
- Scipy
- Numba
- imageio
- itertools
- matplotlib
Optionally (for the example notebook):
- jupyterlab
Examples
See ./examples/examples-gpu.ipynb
for examples of both the forward and inverse shadow imaging problem, including for dip 5 of Boyajian's Star. This code reproduces figure 12 of Sandford & Kipping 2018 (https://arxiv.org/abs/1812.01618).
Note on memory
Repeated TransitingImage() calls can cause python to run out of memory in certain cases (thanks to textadactyl for pointing this out!)--when you are done with a TransitingImage object, deallocate it explicitly, i.e.:
ti = TransitingImage(...)
some operations on ti, etc.
ti = None
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for EightBitTransit-2.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e15ae005d31e7a505e5bbb53df7117edbb38f616f0e222ec94a6c88281bbffa2 |
|
MD5 | 1188b603c19ad8a2ea2992f414a6ef5a |
|
BLAKE2b-256 | d59bf4518972a879f9cc0becb508eff7fead93f453176bbd80e730745d433e08 |