Skip to content

This is a short piece of code that uses PyGame and PyLab to let users draw an occulting object, and watch the resulting transit.

Notifications You must be signed in to change notification settings

djwhiteastro/Draw-A-Transit

This branch is 3 commits ahead of, 1 commit behind hposborn/Draw-A-Transit:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
hposborn
Oct 21, 2015
9636743 · Oct 21, 2015

History

5 Commits
Oct 21, 2015
Oct 21, 2015
Oct 21, 2015
Oct 21, 2015

Repository files navigation

Draw-A-Transit

This uses pygame (http://pygame.org) and matplotlib to let a user draw a limb-darkened star and a dark object, which is then moved in front of the star, producing a transit lightcurve and transit animation. An example assymetric lightcurve (from WTF star KIC08462852, http://arxiv.org/abs/1509.03622) is provided, prompting users to try to make the object fit the data. The lightcurve and occulting body shape is then saved to file.

An example of the resulting lightcurve is shown in DealWithIt.gif

Requisite modules: numpy, matplotlib, pygame. os

About

This is a short piece of code that uses PyGame and PyLab to let users draw an occulting object, and watch the resulting transit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%