{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# How to recover the first TESS planet candidate with *Lightkurve*?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Data from the TESS mission are [available from the data archive at MAST](https://archive.stsci.edu/prepds/tess-data-alerts/). This tutorial demonstrates how the [Lightkurve Python package](http://lightkurve.keplerscience.org) can be used to read in these data and create your own TESS light curves with different aperture masks.\n", "\n", "Below is a quick tutorial on how to get started using *Lightkurve* and TESS data. We'll use the nearby, bright target Pi Mensae (ID 261136679), around which the mission team recently discovered a short period planet candidate on a 6.27 day orbit. See the [pre-print paper by Huang et al (2018)](https://arxiv.org/abs/1809.05967) for more details." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "TESS data is stored in a binary file format which is documented in the [TESS Science Data Products Description Document](https://archive.stsci.edu/missions/tess/doc/EXP-TESS-ARC-ICD-TM-0014.pdf). *Lightkurve* provides a `TessTargetPixelFile` class which allows you to interact with the data easily.\n", "\n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import lightkurve as lk" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "search_result = lk.search_targetpixelfile('Pi Mensae', mission='TESS', sector=1)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "SearchResult containing 1 data products.\n", "\n", "
# | observation | target_name | productFilename | distance |
---|---|---|---|---|
0 | TESS Sector 1 | 261136679 | tess2018206045859-s0001-0000000261136679-0120-s_tp.fits | 0.0 |