Skip to main content

Mosaic Target Pixel Files (TPFs) obtained by NASA's Kepler/K2 missions into CCD-sized images and movies.

Project description

Mosaic Target Pixel Files (TPFs) obtained by NASA’s Kepler/K2 missions into CCD-sized images and movies.

PyPI Travis status MIT license Zenodo DOI

K2mosaic is a command-line tool which allows the postage stamp-sized pixel masks obtained by NASA’s Kepler and K2 missions to be stitched together into CCD-sized mosaics and movies. The principal use is to take a set of Target Pixel Files (TPF) and turn them into more traditional FITS image files – one per CCD channel and per cadence. K2mosaic can also be used to create fancy animations from these mosaics.

The need for this tool arises from the fact that the analysis of certain Kepler/K2 targets, such as clusters and asteroids, is more easily performed on mosaicked data. Moreover such mosaics are useful to reveal the context of single-star observations, e.g. they enable users to check for the presence of instrumental noise or nearby bright objects.


Read the docs and see usage examples at


Created by Geert Barentsen at the NASA Kepler/K2 Guest Observer Office.

If this tool aided your research, please cite it. Please get in touch before submitting your paper so I can request an entry in the Astrophysics Source Code Library (ASCL).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

k2mosaic-3.0.2.tar.gz (335.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page