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

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

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%