"a python wrapper around the NREL's 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
results = 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(results.elevref)
# solar declination
print(results.declin)
# shadow band correction factor
print(results.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.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fca0ab9322cb391de6c56bf3b9683be40beb60cb130bc9b3cc0b1308a6445490 |
|
MD5 | 1a730c9d3b0b1f0546c9d4e2d0d14f2d |
|
BLAKE2b-256 | 90862a281c8fe38bbbe69294114452dafe0ab002fbb3ce9ad47f757288463bcd |
Hashes for solpos-0.1.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d32f1897abdf8ca20359ce6ad16bf9d2e1d37cf5a25667c0099fe1abb61dd40b |
|
MD5 | 2470729ba6a7cd46f4b1b86dba3b74b2 |
|
BLAKE2b-256 | e23ed81a275a29a5ce02f9cd7c1e239f5805c1f38ddae46d5b5899d182c55777 |
Hashes for solpos-0.1.0-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edde0811ac60c823cd02df2c14c668c267287ff978be87fc5665d848995ad2ca |
|
MD5 | 4d30cef5a88ec3bcc1a312e88ab0f614 |
|
BLAKE2b-256 | e1066bd4ba1d86e29330ae27285523743f0fd83d7f4c1992ca04b3cbaa3502fb |
Hashes for solpos-0.1.0-cp37-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a9b7a731a02d2ad10fc1823d46456f9ce3337fab881b3a50c0d1c475e42599 |
|
MD5 | c3b71a53a597c51d9804eda86222ed64 |
|
BLAKE2b-256 | 6217d348487d382f6777d0ed7eaa2106e956d93822dcf869d4fde2b0ef67843c |
Hashes for solpos-0.1.0-cp37-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0c63c1141c86d6a750c0027f01a3f59134c5e52e46803592600f256a51f1872 |
|
MD5 | 600fb55495989e9b80ef434580174a13 |
|
BLAKE2b-256 | 24702a50dbf38a96b6e5aa96afb1af8e0a2b77e19880cb0ebb912defe78ad574 |
Hashes for solpos-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a75cb8b73ae75736c6be6a37ccbf896473fa292607fa8e4f9467a47472243682 |
|
MD5 | 5220d82d46c07aebf8c8d7687a5f2921 |
|
BLAKE2b-256 | abb09cdbfdf6b8346af69839baa1b37a35ae182a990e72475f339eb27de4e109 |
Hashes for solpos-0.1.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65b915b67bf5ae293d0d86380e54f6454c7ec7874d92c6931b985e8b4e45c38c |
|
MD5 | 3963b7a53ee013be4080ecc49eb30807 |
|
BLAKE2b-256 | 1b687520ecc78e59bfa64ffce1d76c7421f91ac1aa07c7163b2762bc2f3e95f7 |
Hashes for solpos-0.1.0-cp37-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44ba3938279906274de280c9c8840c5dcae340195e6295cac825b85ab4a091cc |
|
MD5 | 49e60102e6812aadeaf16adb10158128 |
|
BLAKE2b-256 | ab12c2eafb4c25bda4d36250530ea83c1e5690e25dfa8af88b1e7511015beb0d |