{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Inspect a Target Pixel File for a Centroid Offset" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this tutorial, we'll see how to use `vetpack` to inspect a Target Pixel File (TPF) for a centroid offset with just a few lines of code." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's start by importing `vetpack` and `lightkurve` (https://docs.lightkurve.org/), the handy package `vetpack` relies on for interacting with Kepler, K2, and TESS data products." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import lightkurve as lk\n", "import vetpack as vp" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For this example, we're going to look at the TESS data on WASP-19, a known hot Jupiter host.\n", "For context, let's quickly grab the TESS Sector 9 light curve and take a look at it." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "SearchResult containing 1 data products.\n", "\n", "
| # | observation | target_name | productFilename | distance |
|---|---|---|---|---|
| 0 | TESS Sector 9 | 35516889 | tess2019058134432-s0009-0000000035516889-0139-s_lc.fits | 0.0 |