Skip to main content
Release file added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

K2flix Travis status MIT license

*Create beautiful quicklook movies from the pixel data observed by NASA’s Kepler spacecraft.*

It is good practice to inspect scientific measurements by eye before applying sophisticated data analysis algorithms. K2flix makes it easy to convert the CCD pixel data obtained by NASA’s Kepler space telescope into beautiful movies for human inspection. K2flix takes Kepler’s Target Pixel Files (TPF) as input and turns them into contrast-stretched animated gifs or MPEG-4 movies. These TPF files are publically available from the Kepler archive and the K2 archive.

Example

Asteroids commonly pass in front of Kepler/K2 targets. How many can you spot in this example 2-day animation?

$ k2flix --start 545 --stop 680 --step 1 --fps 12 http://archive.stsci.edu\
/missions/k2/target_pixel_files/c1/201500000/72000/ktwo201572338-c01_lpd-targ.fits.gz

Installation

If you have a working installation of Python on your system, you can install k2flix using pip:

$ pip install git+https://github.com/barentsen/k2flix

Alternatively, you can clone the repository and install from source:

$ git clone https://github.com/barentsen/k2flix.git
$ cd k2flix
$ python setup.py install

K2flix has only been tested under Linux at present. Get in touch if you encounter issues on OS X or Windows.

Using k2flix

Converting a Kepler pixel file to an animated gif:

$ k2flix tpf-file.fits.gz

Converting a Kepler pixel file to an MPEG-4 movie:

$ k2flix -o movie.mp4 tpf-file.fits.gz

K2flix supports reading from web URLs, so you can generate a movie directly from the data archive:

$ k2flix https://archive.stsci.edu/missions/k2/target_pixel_files/c1/201400000/00000/ktwo201400022-c01_lpd-targ.fits.gz

To see all the options, use the --help argument to see the full usage information:

$ k2flix --help
usage: k2flix [-h] [-o filename] [--start IDX] [--stop IDX] [--step STEP]
              [--fps FPS] [--dpi DPI] [--min_percent MIN_PERCENT]
              [--max_percent MAX_PERCENT] [--cmap colormap_name]
              filename [filename ...]

Converts a Target Pixel File (TPF) from NASA's Kepler/K2 spacecraft into a
movie or animated gif.

positional arguments:
  filename              path to one or more Kepler Target Pixel Files (TPF)

optional arguments:
  -h, --help            show this help message and exit
  -o filename           output filename (default: gif with the same name as
                        the input file)
  --start IDX           first frame to show (default: 0)
  --stop IDX            last frame to show (default: -1)
  --step STEP           spacing between frames (default: output 100 frames)
  --fps FPS             frames per second (default: 5)
  --dpi DPI             resolution of the output in dots per K2 pixel
  --min_percent MIN_PERCENT
                        percentile value used to determine the minimum cut
                        level (default: 1.0)
  --max_percent MAX_PERCENT
                        percentile value used to determine the maximum cut
                        level (default: 95.0)
  --cmap colormap_name  matplotlib color map name (default: gray)

Contributing

To report bugs and request features, please use the issue tracker. Code contributions are very welcome.

License

Copyright 2015 Geert Barentsen.

K2flix is free software made available under the MIT License. For details see the LICENSE file.

Metadata

Release files for k2flix 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for k2flix 1.0.0
File Size Uploaded Provenance Actions
k2flix-1.0.0.tar.gz 8.9 kB Without provenance Details for k2flix-1.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for k2flix 1.0.0
File Interpreter ABI Platform Actions
k2flix-1.0.0-py3.4.egg Legacy Egg format - - Details for k2flix-1.0.0-py3.4.egg
k2flix-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for k2flix-1.0.0-py2.py3-none-any.whl

Total release size: 37.6 kB

Release files / k2flix-1.0.0.tar.gz

Download URL k2flix-1.0.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ee1baf125f46ddac238797b60a986c43a99525e23ba7490bc4a9b3fc7cccfda1
BLAKE2b-256 checksum
How to use checksums
b4cf98465ae1b2a2bd59b47681bc52531c81d443c33329fc28d95b0bfa4018a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / k2flix-1.0.0-py3.4.egg

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL k2flix-1.0.0-py3.4.egg
Size 17.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
0819af973e2ac817c2513f9c3e89edd76803ab4a2aef6ebe1386f1ab32100842
BLAKE2b-256 checksum
How to use checksums
791d2920034c614b17ec0a6fabbe333dd6cc9fbe2b6050392079a55084464fa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / k2flix-1.0.0-py2.py3-none-any.whl

Download URL k2flix-1.0.0-py2.py3-none-any.whl
Size 11.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a43bc35907ed8cdcad27d589b1f638ffef390ba76e015efdae9bd06c1fe2d042
BLAKE2b-256 checksum
How to use checksums
0fea5096c6d2be4e0702a81ef8ed5e5d89ee2d3d0d0c2ae76611d8223d1cc87e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for k2flix 1.0.0

Upload timing

Release file added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page