eph Package

EphGUI Module

calculateEphemerides Module

Ephemeris calculating tool that uses transit data from exoplanets.org and astrometric calculations by PyEphem to tell you what transits you’ll be able to observe from your observatory in the near future.

Exoplanets.org citation: Wright et al.2011 http://arxiv.org/pdf/1012.5676v3.pdf

Core developer: Brett Morris

oscaar.extras.eph.calculateEphemerides.calculateEphemerides(parFile)[source]
INPUTS:

parFile – path to the parameter file

oscaar.extras.eph.calculateEphemerides.gd2jd(*date)[source]

gd2jd.py converts a UT Gregorian date to Julian date.

Usage: gd2jd.py (2009, 02, 25, 01, 59, 59)

To get the current Julian date: import time gd2jd(time.gmtime())

Hours, minutesutes and/or seconds can be omitted – if so, they are assumed to be zero.

Year and month are converted to type INT, but all others can be type FLOAT (standard practice would suggest only the final element of the date should be float)

oscaar.extras.eph.calculateEphemerides.jd2gd(jd, returnString=False)[source]

Task to convert a list of julian dates to gregorian dates description at http://mathforum.org/library/drmath/view/51907.html Original algorithm in Jean Meeus, “Astronomical Formulae for Calculators”

2009-02-15 13:36 IJC: Converted to importable, callable function

Note from author: This script is buggy and reports Julian dates which are off by a day or two, depending on how far back you go. For example, 11 March 1609 converted to JD will be off by two days. 20th and 21st century seem to be fine, though.

Note from Brett Morris: This conversion routine matches up to the “Numerical Recipes” in C version from 2010-2100 CE, so I think we’ll be ok for oscaar’s purposes.

ephemeris Module

Created on Feb 19, 2013

methods for calculating ephemerides

@author: bmmorris

class oscaar.extras.eph.ephemeris.eph(startSem, endSem)[source]

Methods

IDdoubleEclipses(axis, color='k', ls='-')[source]

Identify nights with two well separated transits

IDdoubleTransits(axis, color='k', ls='-')[source]

Identify nights with two well separated transits

IDdoubles(axis, color='k', ls='-')[source]
addStar(name, Tc, pmTc, P, pmP, V, K)[source]
getAllKmags()[source]
getAllVmags()[source]
getKmag(star)[source]
getMidE(star)[source]
getMidT(star)[source]
getVmag(star)[source]
midEclipse(Tc, pmTc, P, pmP, name)[source]
midTransit(Tc, pmTc, P, pmP, name)[source]
plotEclipses(axis, format, alphaSetting, showLabels=False, showMags=False, yOffset=0.0)[source]
plotTransits(axis, format, alphaSetting, scaleSize=False, showLabels=False, showMags=False, yOffset=0.0)[source]
oscaar.extras.eph.ephemeris.gd2jd(*date)[source]

gd2jd.py converts a UT Gregorian date to Julian date.

Usage: gd2jd.py (2009, 02, 25, 01, 59, 59)

To get the current Julian date: import time gd2jd(time.gmtime())

Hours, minutesutes and/or seconds can be omitted – if so, they are assumed to be zero.

Year and month are converted to type INT, but all others can be type FLOAT (standard practice would suggest only the final element of the date should be float)

oscaar.extras.eph.ephemeris.jd2gd(jd, returnString=False)[source]

Task to convert a list of julian dates to gregorian dates description at http://mathforum.org/library/drmath/view/51907.html Original algorithm in Jean Meeus, “Astronomical Formulae for Calculators”

2009-02-15 13:36 IJC: Converted to importable, callable function

Note from author: This script is buggy and reports Julian dates which are off by a day or two, depending on how far back you go. For example, 11 March 1609 converted to JD will be off by two days. 20th and 21st century seem to be fine, though.

runEphemerisGenerator Module

This tool generates custom transit and/or eclipse ephemerides for your observatory and the dates you choose. You can also choose a limiting target star magnitude (V) so that you don’t get a list flooded by targets that are too dim to observe at your with your equipment. Similarly, you can choose a lower limit on the transit depths, so that you’ll generate a calendar of events that you’ll be able to produce observe with decent signal/noise.

The exoplanet data are loaded from exoplanets.org, so please run this script while connected to the internet so that you can have the most up-to-date exoplanet data.

Core developer: Brett Morris (NASA GSFC)