Skip to main content

a python wrapper around NREL SOLPOS 2.0

Project description

ci wheels docs pre-commit.ci status

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


Download files

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

Source Distribution

solpos-0.1.2.tar.gz (22.5 kB view hashes)

Uploaded Source

Built Distributions

solpos-0.1.2-cp38-abi3-macosx_11_0_arm64.whl (14.1 kB view hashes)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

solpos-0.1.2-cp37-abi3-win_amd64.whl (17.0 kB view hashes)

Uploaded CPython 3.7+ Windows x86-64

solpos-0.1.2-cp37-abi3-win32.whl (15.7 kB view hashes)

Uploaded CPython 3.7+ Windows x86

solpos-0.1.2-cp37-abi3-musllinux_1_1_x86_64.whl (29.7 kB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.1+ x86-64

solpos-0.1.2-cp37-abi3-musllinux_1_1_aarch64.whl (30.0 kB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.1+ ARM64

solpos-0.1.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (29.1 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

solpos-0.1.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28.4 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

solpos-0.1.2-cp37-abi3-macosx_10_9_x86_64.whl (14.2 kB view hashes)

Uploaded CPython 3.7+ macOS 10.9+ x86-64

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