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.
Metadata
Release files for solpos 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| solpos-0.1.2.tar.gz | 22.5 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| solpos-0.1.2-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
| solpos-0.1.2-cp37-abi3-win_amd64.whl | CPython 3.7 | abi3 | Windows x86-64 | Details |
| solpos-0.1.2-cp37-abi3-win32.whl | CPython 3.7 | abi3 | Windows x86-32 | Details |
| solpos-0.1.2-cp37-abi3-musllinux_1_1_x86_64.whl | CPython 3.7 | abi3 | Linux musl 1.1+ x86-64 | Details |
| solpos-0.1.2-cp37-abi3-musllinux_1_1_aarch64.whl | CPython 3.7 | abi3 | Linux musl 1.1+ ARM64 | Details |
| solpos-0.1.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.7 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| solpos-0.1.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.7 | abi3 | Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 | Details |
| solpos-0.1.2-cp37-abi3-macosx_10_9_x86_64.whl | CPython 3.7 | abi3 | macOS 10.9+ x86-64 | Details |
Total release size: 200.9 kB
Release files / solpos-0.1.2.tar.gz
| Download URL | solpos-0.1.2.tar.gz |
|---|---|
| Size | 22.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1553d974a100a5601006ef2d7d64cd434b971d2edca8ced0524cb0ca39ed80f
|
|
BLAKE2b-256 checksum How to use checksums |
e3f0f1133a8cc387d6b869f2cca240f7e88e3314cbb68e7665ebd8a0587bed9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / solpos-0.1.2-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | solpos-0.1.2-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 14.1 kB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4eadf18a48d4d8cad1abf566fc3d79b8948174fede3fcdcdf4cc6b8162300308
|
|
BLAKE2b-256 checksum How to use checksums |
a0fbc4b62c6508afac8de39dacd6ca7eef93b4c48a280ae9abad46c5bd9dfaed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / solpos-0.1.2-cp37-abi3-win_amd64.whl
| Download URL | solpos-0.1.2-cp37-abi3-win_amd64.whl |
|---|---|
| Size | 17.0 kB |
| Tags | CPython 3.7 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
da7eb90e6bf245196e0f62168bbef7d64913fdd101e629a600fad49b5c61a8a4
|
|
BLAKE2b-256 checksum How to use checksums |
f21638da4b55f860b36a5b4ffefbc4c2db2a11b3b5314b8ccf0dadad369bdb65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / solpos-0.1.2-cp37-abi3-win32.whl
| Download URL | solpos-0.1.2-cp37-abi3-win32.whl |
|---|---|
| Size | 15.7 kB |
| Tags | CPython 3.7 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
b6e00b9ddf401be00decc8879f0ffbd9574592c6c4dfee7f5e416f828693a3b5
|
|
BLAKE2b-256 checksum How to use checksums |
25f6b13ccc2a5c1ba8de2099694274b5f33e38917b510418cb8c6285647a9653
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / solpos-0.1.2-cp37-abi3-musllinux_1_1_x86_64.whl
| Download URL | solpos-0.1.2-cp37-abi3-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 29.7 kB |
| Tags | CPython 3.7 Linux musl 1.1+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
72e058f91a8b0a3ed23aaec857c4ad23f9c67b4bfcaed301439159f52980fe94
|
|
BLAKE2b-256 checksum How to use checksums |
d3ca9793c46d672048a8e7bc346fdd807905810a52d23fceb02f21cc849c32b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / solpos-0.1.2-cp37-abi3-musllinux_1_1_aarch64.whl
| Download URL | solpos-0.1.2-cp37-abi3-musllinux_1_1_aarch64.whl |
|---|---|
| Size | 30.0 kB |
| Tags | CPython 3.7 Linux musl 1.1+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
45187b06b2a46b7fcd6ffaf3f8bc78dfa3cae0a79f7903cbf8fabdb7d67beb03
|
|
BLAKE2b-256 checksum How to use checksums |
c2bfcd4d785fa063d17f39d4902116f0fdf1aa7c7c79edee9785a435481ffb5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / solpos-0.1.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | solpos-0.1.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 29.1 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
3bc5837b64d807d992c359d24c1b425b249337c79cd8ab1007e18395180218f0
|
|
BLAKE2b-256 checksum How to use checksums |
54346aaaf1b86f45958f9c73b485f4ab9a76da1070251d56b541f5f8078fdeea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / solpos-0.1.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | solpos-0.1.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 28.4 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
472846f9a052be4a8285e1532a198040b91da8c7961a8b7a6a76c391afe58329
|
|
BLAKE2b-256 checksum How to use checksums |
2a765711101086ea83b33a7d66a280b9c5b0fc65ea6a0ae1994b60d39e57f658
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / solpos-0.1.2-cp37-abi3-macosx_10_9_x86_64.whl
| Download URL | solpos-0.1.2-cp37-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 14.2 kB |
| Tags | CPython 3.7 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
257220002742f14c4c686c8622fbcd2138f0dc0ce77556171f2ae799ab6d94f0
|
|
BLAKE2b-256 checksum How to use checksums |
ddc338f996458b82d8c813d9baf396226cc053b71ffcc9a842e0b97548ba4c04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|