waqasbhatti / astrobase

Python modules for light curve work and variable star astronomy
MIT License
55 stars 12 forks source link

added make_eb_checkplot #5

Closed lgbouma closed 7 years ago

lgbouma commented 7 years ago

make_eb_checkplot: main function to make a variant of checkplot called eb_checkplot. get_periodogram_quantities: given the output of the period search routine, return a set of quantities (best periods, etc) plot_periodogram: given appropriate inputs, plot a periodogram plot_phased_wrapper: plots 3 phased LCs in a row on the 3x3 grid, given the information from the periodicity search (any output from that search -- BLS/SPDM/ANOV -- is compatible).

TODO: to minimize code duplication, get_periodogram_quantities and plot_periodogram can be called in make_checkplot as well (but I didn't want to change that function!)

waqasbhatti commented 7 years ago

Just implemented this functionality in the new checkplot.py (see twolsp_checkplot_png) that breaks out the checkplot stuff into a new module, and refactors the main function into smaller functions like this does.

Makes checkplots like so:

twolsp-checkplot

I'll close this pull request without merging it, but thanks for working on this, and getting me to add this stuff.