Pysolar logo

Pysolar is a collection of Python libraries for simulating the irradiation of any point on earth by the sun. It includes code for extremely precise ephemeris calculations, and more

Pysolar has two parts:


Pysolar used to be hosted at Sourceforge, but since March 2008, it's been hosted at Github. Releases 0.2.0 and previous are still available on Sourceforge, but you should not use them for anything new-- all versions before 0.4.1 have known, albeit minor, bugs.

Release 0.4.3 (If you're not sure, download this one.)

Release 0.4.2

Release 0.4.1

Release 0.4.0

Release 0.3.0

Release 0.3.0RC2

Release 0.3.0RC1

Release 0.2.1

Release 0.2.0

Release 0.1.0


Pysolar requires Python, which comes preinstalled on most Unix machines, including Apple's OS X. You can check to see if you have it installed on a Unix machine by typing python at a command prompt. If the result is something like
Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
you have Python. (You can escape from the Python prompt with Ctrl-D.)

If the result is more like
bash: python: command not found
you probably don't have Python.

If you need to, you can download Python fromthe download page.

Examples of usage

Several examples of how to use pysolar can be found onthe examples pageon Github.