Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Michael Hirsch scivision

I may be slow to respond.
View GitHub Profile
scivision /
Last active Feb 3, 2021 — forked from drhirsch/
Python example of computing sunrise/sunset using PyEphem
import ephem
import datetime
Boston.lon='-71.0978' =
# %% these parameters are for super-precise estimates, not necessary.
Boston.elevation = 3 # meters
Boston.pressure = 1010 # millibar