a python wrapper around NREL SOLPOS 2.0
Project description
solpos
This library wraps NREL's SOLPOS 2.0 and makes it accessible from python.
The SOLPOS code was vendored from: NREL/SolarPILOT which is licensed under a mixed MIT and GPLv3license.
Installation
To install solpos, open an interactive shell and run
pip install solpos
Gettings Started
from solpos import solpos
result = solpos(
year=2022,
month=10,
day=27,
hour=16,
minute=26,
second=0,
timezone=2,
latitude=51.44579,
longitude=7.26274,
)
# solar elevation angle refracted
print(result.elevref)
# solar declination
print(result.declin)
# shadow band correction factor
print(result.sbcf)
13.568160057067871
-12.900684356689453
1.093388319015503
Docs
For a detailed description of all (calculated) attributes see the docs.
References
SolarPILOT
Wagner, M.J. (2018). "SolarPILOT Open-Source Software Project: https://github.com/NREL/SolarPILOT/tree/21a1466398ec22db24a5a838e5133da58e347b83." Accessed (27/10/2022). National Renewable Energy Laboratory, Golden, Colorado.
Astronomical Solar Position
Michalsky, J. 1988. The Astronomical Almanac's algorithm for approximate solar position (1950-2050). Solar Energy 40 (3), 227-235.
Michalsky, J. 1988. ERRATA: The astronomical almanac's algorithm for approximate solar position (1950-2050). Solar Energy 41 (1), 113.
Distance from Sun to Earth
Spencer, J. W. 1971. Fourier series representation of the position of the sun. Search 2 (5), 172. NOTE: This paper gives solar position algorithms as well, but the Michalsky/Almanac algorithm above is more accurate.
Atmospheric Refraction Correction
Zimmerman, John C. 1981. Sun-pointing programs and their accuracy. SAND81-0761, Experimental Systems Operation Division 4721, Sandia National Laboratories, Albuquerque, NM.
Shadow Band Correction Factor
Drummond, A. J. 1956. A contribution to absolute pyrheliometry. Q. J. R. Meteorol.2 Soc. 82, 481-493.
Relative Optical Air Mass
Kasten, F. and Young, A. 1989. Revised optical air mass tables and approximation formula. Applied Optics 28 (22), 4735-4738.
Renormalization of KT (“PRIME”)
Perez, R., P. Ineichen, Seals, R., & Zelenka, A. 1990. Making full use of the clearness index for parameterizing hourly insolation conditions. Solar Energy 45 (2), 111-114.
Solar Position Relative to Earth
Iqbal, M. 1983. An Introduction to Solar Radiation. Academic Press, NY.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for solpos-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02528ada34fb0bcb201a8794851ea41b5964087b4bb820d336fc07f4bfbe2f36 |
|
MD5 | 3f0bac1975b9004c16009b1f676b5273 |
|
BLAKE2b-256 | 2fdbf1a21f98a76d1baa5acffc19d3fe4c4068bcfd4792c83e9905b3f8bb19f6 |
Hashes for solpos-0.1.1-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d955de6f4d4458e901c7cfcd29322733970361342b66be6a39c664c8beb331 |
|
MD5 | c933fd9543e062afb394af9d23db4eb6 |
|
BLAKE2b-256 | 17be7dba8db71ed19b19201c57ddfc5ab63a305634e00ba79945bebb576be62b |
Hashes for solpos-0.1.1-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5024775b7dabd310096b49dd6b16b55153933f7ba0320c1d542ec34b00e45e7f |
|
MD5 | 80adad7a3e5dd3815ccf389f95872954 |
|
BLAKE2b-256 | 63f25f776a39d09fc235e1e44c247473e821a5d0eac0a892efb91f8cc11c98de |
Hashes for solpos-0.1.1-cp37-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23d6386df5469863a6a0c0242ae9ebf9eef60402c777ef5e28b2421c7ba0b494 |
|
MD5 | abf60672fa01511a5d23ccde3882689d |
|
BLAKE2b-256 | 824f8a287523fb33bcb433455c7b5d124d92514e040d45ffe0ac47d75dcfa005 |
Hashes for solpos-0.1.1-cp37-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56d7e5c7b033e5412e2d8c2dee0a273649606525c144cc3eae0b842cd9913739 |
|
MD5 | b9edc7b6987dc813b6cd241595af9d95 |
|
BLAKE2b-256 | 750c7ae19e3421755f0456f6b8cb9d089b81633e433a76eb16d716563a1c1729 |
Hashes for solpos-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f120615c75fdd5c13d93e19aed0fc4b4c2cacc6cadbe13b587e7fe7e30590d6 |
|
MD5 | fbfb832d2aaffc785abdb91d84f6b82a |
|
BLAKE2b-256 | fd63f314d92282b9c91944699e512dc2fa50394855b1500fc00aa8a1fe5d543f |
Hashes for solpos-0.1.1-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e57a3b63a07042082687e5306d7b9c7b1f2a77575108a95c8ab1b6c633b2216 |
|
MD5 | e4338e6cb5bc105fe8be88be9ace16e7 |
|
BLAKE2b-256 | 4cc47146abde4ca5d2c47db1929261cbf11427e06b8967dd4586f250b695244e |
Hashes for solpos-0.1.1-cp37-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d80b44bab78822e7d93f74397a9eceacdf179d8e65d4ea34505c577398f478b3 |
|
MD5 | 688508c84f164dbf569de883a71f0e4f |
|
BLAKE2b-256 | 003d8424293ea2c3d01c50795a98e2a3af376b5d1fd02bfcebebdea1450c9feb |