TPF Viewer#
Display a Target Pixel File (TPF) as a 2-D image that is linked to the time axis of any loaded light curves.
Overview#
The TPF viewer renders
each cadence of a KeplerTargetPixelFile or
TessTargetPixelFile as a 2-D pixel image. The displayed
cadence is controlled by the shared time slice indicator that is kept in sync
with the Flux vs Time viewer.
A TPF viewer is created automatically when a TPF is loaded. Additional TPF viewers can be added via the TPF entry in the Viewer Creator controls, which is only shown when TPF data is present in the app.
UI Access#
API Access#
import jdaviz as jd
import lcviz
from lightkurve import search_targetpixelfile
tpf = search_targetpixelfile("KIC 001429092",
mission="Kepler",
cadence="long",
quarter=10).download()
jd.load(tpf, format="TPF")
jd.show()
# Access the TPF viewer
iv = jd.viewers['TPF']
# Create an additional TPF viewer via the viewer creator
vc = jd.new_viewers['TPF']
new_viewer = vc()
See also
CubeViewAPI documentation for the TPF viewer.
- Photometric Extraction
The Photometric Extraction plugin for extracting light curves from a TPF.