github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

pingswept / pysolar

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 6
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (6)
  • Wiki (4)
  • Graphs
  • Tag: 0.3.0RC2

click here to add a description

click here to add a homepage

  • Branches (1)
    • master
  • Tags (6)
    • 0.4.1
    • 0.4.0
    • 0.3.0RC2
    • 0.3.0RC1
    • 0.3.0
    • 0.2.1
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

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. — Read more

  cancel

http://pysolar.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Updated validation data. 
pingswept (author)
Sun Jan 11 17:39:44 -0800 2009
commit  4dab89b4b417c455af877549f162e4fe2c40b6b4
tree    6add55a602104f92fae79da75bf9d795263b98ad
parent  f828ce01954571a4908c867148578079334752d9
pysolar /
name age
history
message
file COPYING Sat Mar 01 15:36:54 -0800 2008 Initial import from SVN tag 0.2.0 [Brandon Stafford]
file README.markdown Loading commit data...
file constants.py Sat Mar 08 17:06:06 -0800 2008 Broke code out into smaller files. Updated copy... [Brandon Stafford]
file julian.py Fri May 23 05:49:49 -0700 2008 julian.py: added missing parens [pingswept]
file poly.py Sat Mar 08 17:06:06 -0800 2008 Broke code out into smaller files. Updated copy... [Brandon Stafford]
directory pysolar.org/
file pysolar_v_usno.csv Sun Jan 11 17:39:44 -0800 2009 Updated validation data. [pingswept]
file query_usno.py Sun Jan 11 17:34:39 -0800 2009 Added corrections from Sean Taylor to GetParall... [pingswept]
file radiation.py Sun Mar 16 13:14:10 -0700 2008 Fixed some broken stuff in radiation.py. Advanc... [pingswept]
file shade.py Sat Mar 01 15:36:54 -0800 2008 Initial import from SVN tag 0.2.0 [Brandon Stafford]
file shade_test.py Sat Mar 01 15:36:54 -0800 2008 Initial import from SVN tag 0.2.0 [Brandon Stafford]
file simulate.py
file solar.py Sun Jan 11 17:34:39 -0800 2009 Added corrections from Sean Taylor to GetParall... [pingswept]
file testsolar.py Sun Jan 11 17:34:39 -0800 2009 Added corrections from Sean Taylor to GetParall... [pingswept]
file usno_data_6259.txt Sat Jul 19 18:41:04 -0700 2008 query_usno.py: added code to validate Pysolar a... [pingswept]
file usno_data_short_test.txt Sat Jul 19 18:41:04 -0700 2008 query_usno.py: added code to validate Pysolar a... [pingswept]
README.markdown

Pysolar performs calculations useful for the development of photovoltaic systems. Rough steps for use, until either forever or I have time to write more documentation:

  1. Install python.
  2. Get to a prompt that looks like: >>>
  3. import solar

  4. import datetime

  5. d = datetime.datetime.utcnow()

  6. lat = 42.0

  7. long = -71.0

  8. solar.GetAltitude(lat, long, d)

  9. solar.GetAzimuth(lat, long, d)

For better examples of usage, check http://pysolar.sourceforge.net/#examples

At this point, Pysolar has basic functionality, but it is relatively untested. I did validate it against the data in a paper by Reda and Andreas; it agrees to 4 significant figures, but that's just one data point.

If you use Pysolar, please let me know how accurate it is. It's difficult to measure sun location with great precision, but I'd love to hear reports of "Yeah, it worked to within a degree over the course of an afternoon in Spain."

Brandon Stafford first_name @ pingswept org

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server