Skip to main content

Solar Performance and Design library

Project description

solpy
-------
Solpy is a python library to model solar system power performance similar to PVWatts or NREL's System Advisor Model(SAM). I initially started writing this while working in Bangladesh as fairly crude calculator to go from a fisheye panorama to a csv of vectors for shading calculations, however there were several pieces that were added to make it a bit more useful for both analyis and design.
Daniel Thomas did work adding the Tang evacuated glass tube model. Pyephem was added for solar positioning. There is also a simple module for reading TMY3 data. This tool is rudimentary, but functional.

This is primarily a research and analysis tool and there is no guarantee on the calculations.

Features
--------
-Liu & Jordan diffuse irradiance model
-Perez et al. diffuse irradiance model
-Sandia Inverter model
-NEC voltage drop caculations

Files
-----
-enphase.py - Enphase API wrapper
-epw.py - EPW weather data
-expedite.py - calculate information needed for the expedited permit process
-fisheye.py - fisheye image to shading vectors
-forecast.py - forecast.io API wrapper
-noaa.py - NOAA weather data API wrapper
-pv.py - system performance prediction
-pvcli - cli interface to pv modeling--
-tmy3.py - read tmy3 data
-vd.py - voltage drop

Usage
-----
PV systems are descibed with json. For example:

{"system_name":"System Name",
"zipcode":"17601",
"tilt":34,
"azimuth":180,
"phase":1,
"voltage":240,
"array":[
{"inverter":"SMA America: SB6000US 240V",
"panel":"Mage Solar : Powertec Plus 250-6 MNCS",
"series":14,
"parallel":2}
]
}

If that json was in a file called template.json, the command to model it would be;

pvcli -f template.json

Ipython
-------
This is the sort of project that lends itself nicely to ipython. Since discovering that project I've tried to make things flow naturally in that enviroment. I really like the inline graphics of the qtconsole.

$ipython qtconsole --colors=Linux --pylab=inline

![example](http://char1es.net/ipython_pv_example.png)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solpy-0.2.1.tar.gz (1.3 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page