Skip to content

Instantly share code, notes, and snippets.

View stephtdouglas's full-sized avatar

Stephanie Douglas stephtdouglas

View GitHub Profile
@johnarban
johnarban / WCSAxes Example.ipynb
Last active June 17, 2021 14:14
Worked example plotting data with WCS defined axes
Loading
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",
@thriveth
thriveth / CBcolors.py
Created January 22, 2014 14:52
A color blind/friendly color cycle for Matplotlib line plots. Might want to shuffle it around a bit more,but already not it gives kinda good contrasts between subsequent colors, and shows reasonably well in colorblind filters (though not in pure monochrome).
CB_color_cycle = ['#377eb8', '#ff7f00', '#4daf4a',
'#f781bf', '#a65628', '#984ea3',
'#999999', '#e41a1c', '#dede00']