Skip to content

Instantly share code, notes, and snippets.

View tiagopereira's full-sized avatar

Tiago M. D. Pereira tiagopereira

View GitHub Profile
DTOR = np.pi / 180. # Degrees to radians
def time2jday(date):
''' Converts date string (in ISO 8601 UTC) to Julian day.'''
# Convert from the string to year, month, day
if 'T' in date:
date, time = date.split('T')
else:
date,time = date.split()
@tiagopereira
tiagopereira / setup.py
Created August 7, 2012 22:33
setup.py file for creating py2app applications making use of Enthought GUI tools with Qt4
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['myprog.py']