Skip to content

Instantly share code, notes, and snippets.

View barentsen's full-sized avatar

Geert Barentsen barentsen

View GitHub Profile
@dfm
dfm / tutorial.ipynb
Last active April 30, 2018 23:01
astropy.stats.TransitPeriodogram tutorial
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barentsen
barentsen / interpret-kepler-quality-flags.py
Last active February 15, 2019 21:42
Convert the 'QUALITY' column in Kepler/K2 target pixel and light curve files into a list of human-readable flag strings.
"""
Example function to convert the 'QUALITY' column in Kepler/K2 target pixel
and lightcurve files into a list of meaningful strings.
"""
# The meaning of the various flags are described in the Kepler Archive Manual
KEPLER_QUALITY_FLAGS = {
"1": "Attitude tweak",
"2": "Safe mode",
"4": "Coarse point",
@shime
shime / _readme.md
Last active November 8, 2020 08:54 — forked from ryin/tmux_local_install.sh
installation script for tmux 1.9a

Having trouble installing the latest stable version of tmux?

I know, official package for your OS/distro is outdated and you just want the newest version of tmux.

Well, this script should save you some time with that.

Prerequisities

  • gcc