No project description provided
Project description
tesscube is a package designed to help you obtain TESS data by cutting it out of the FFI cubes at the Barbara A. Mikulski Archive for Space Telescopes (MAST).
tesscube works with data that is available in the cloud, and will return TESS data in formats similar to the NASA TESS official mission products. You do not need any login credentials to use tesscube, and can use this tool by pip installing either on your local machine or in the cloud.
Quickstart
The easiest way to install tesscube and all of its dependencies is to use the pip command.
To install tesscube, run the following command in a terminal window:
$ python -m pip install tesscube --upgrade
The --upgrade flag is optional, but recommended if you already have tesscube installed and want to upgrade to the latest version.
Depending on the specific Python environment, you may need to replace python with the correct Python interpreter, e.g., python3.
Load an FFI cube
You can work with an FFI cube by loading it using a sector, camera, and CCD number.
from tesscube import TESSCube
cube = TESSCube(sector=1, camera=1, ccd=4)
Obtain an FFI Using tesscube
You can obtain an FFI image by indexing into a cube
from tesscube import TESSCube
cube = TESSCube(sector=1, camera=1, ccd=4)
ffi = cube[300]
This will return an astropy.fits.HDUList
Obtain a TPF
You can obtain a TPF in two ways, either you can either pass a pixel position
from tesscube import TESSCube
from astropy.coordinates import SkyCoord
corner = (1282, 1750)
cube = TESSCube(sector=1, camera=1, ccd=4)
tpf = cube.get_tpf(corner, shape=(10, 11))
Or you can pass an astropy SkyCoord object containing the RA and Dec of the target
from tesscube import TESSCube
from astropy.coordinates import SkyCoord
coord = SkyCoord.from_name("AU Mic")
cube = TESSCube(sector=1, camera=1, ccd=4)
tpf = cube.get_tpf(coord, shape=(10, 11))
Alternatively, you can index into the cube like so:
from tesscube import TESSCube
cube = TESSCube(sector=1, camera=1, ccd=4)
tpf = cube[:, 401:410, 503:510]
Both will return an astropy.fits.HDUList, with a file format similar to the official mission products.
Obtain a lower time resolution TPF
You can obtain a lower time resolution by either passing in a frame_bin parameter, which will downsample the resultant TPF,
from tesscube import TESSCube
from astropy.coordinates import SkyCoord
corner = (1282, 1750)
cube = TESSCube(sector=1, camera=1, ccd=4)
tpf = cube.get_tpf(corner, shape=(10, 11), frame_bin=10)
Or you can slice the cube, which will return a downsampled TPF
from tesscube import TESSCube
cube = TESSCube(sector=1, camera=1, ccd=4)
tpf = cube[::10, 401:410, 503:510]
Both will return an astropy.fits.HDUList, with a file format similar to the official mission products, with the time resolution reduced by a factor of 10.
Contributing
tesscube is an open-source, community driven package. We welcome users to contribute and develop new features for lksearch.
For further information, please see the Lightkurve Community guidelines.
Citing
If you find tesscube useful in your research, please cite it and give us a GitHub star!
If you use Lightkurve for work or research presented in a publication, we request the following acknowledgment or citation:
This research made use of Lightkurve, a Python package for Kepler and TESS data analysis (Lightkurve Collaboration, 2018).
See full citation instuctions, including dependencies, in the Lightkurve documentation.
Contact
tesscube is an open source community project created by the TESS Science Support Center. The best way to contact us is to open an issue or to e-mail tesshelp@bigbang.gsfc.nasa.gov.
- Please include a self-contained example that fully demonstrates your problem or question.
Changelog:
Initial v1.0.0 release of tesscube.
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
File details
Details for the file tesscube-1.0.2.dev0.tar.gz
.
File metadata
- Download URL: tesscube-1.0.2.dev0.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.13 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d0a0f14f999c6e3f1ab7598babaca8f936bb59fd2b2da0479e7ba898d670ba1 |
|
MD5 | a40b3ba1ee5e828439774f899c8759a0 |
|
BLAKE2b-256 | e194d8eac3c93d549e681f6a262f99767326d296af4438bdf1349c5e8bd89c19 |
File details
Details for the file tesscube-1.0.2.dev0-py3-none-any.whl
.
File metadata
- Download URL: tesscube-1.0.2.dev0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.13 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b732fb8b36e573ad5e74b643dda4760f77bcf6c3dc6fb70cfe3834a681a211f1 |
|
MD5 | 4111145b2f74473eb54e76785da58216 |
|
BLAKE2b-256 | 2319f1d2e9b72989e9d333d3435affe3a8c6d0e7c72be194ff55b6be72a93c83 |