3 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
SolarUtils is set of Python wrappers around the publicly available NREL SOLPOS and SPECTRL2 C-language computer programs that calculate solar position and spectral decomposition. Please read the NREL disclaimer and license. Usage of this software implies acceptance of the terms.
Installation
Use pip to install SolarUtils from the PyPI:
pip install SolarUtils
You can also download a source distribution from PyPI or clone the repository and use Python distutils:
python setup.py install
Requirements
SolarUtils has no requirements for usage however for installation, testing and to build the documentaiton you will need the following pacakges:
NumPy
PyTest
Sphinx
Usage
See SOLPOS Documentation and SPECTRL2 Documentation for more detail.
Examples
>>> from solar_utils import * >>> import pandas as pd >>> location = [35.56836, -119.2022, -8.0] >>> datetime = [2013, 6, 5, 12, 31, 0] >>> weather = [1015.62055, 40.0] >>> (angles, airmass) = solposAM(location, datetime, weather) >>> zenith, azimuth = angles >>> zenith 15.074043273925781 >>> azimuth 213.29042053222656] >>> am, amp = airmass >>> am 1.0352272987365723 >>> amp 1.0379053354263306]>>> units = 1 >>> location = [33.65, -84.43, -5.0] >>> datetime = [1999, 7, 22, 9, 45, 37] >>> weather = [1006.0, 27.0] >>> orientation = [33.65, 135.0] >>> atmospheric_conditions = [1.14, 0.65, -1.0, 0.2, 1.36] >>> albedo = [0.3, 0.7, 0.8, 1.3, 2.5, 4.0] + ([0.2] * 6) >>> specdif, specdir, specetr, specglo, specx = spectrl2( ... units, location, datetime, weather, orientation, ... atmospheric_conditions, albedo ... ) >>> spec = pd.DataFrame( ... {'DIF': specdif, 'DIR': specdir, 'ETR': specetr, 'GLO': specglo}, ... index=specx ... ) >>> f = spec.plot() >>> f.set_title('Solar Spectrum Example') >>> f.set_xlabel('Wavelength, $\lambda [\mu m]$') >>> f.set_ylabel('Spectral Irradiance, $I_{\lambda} [W/m^2/\mu m]$') >>> f.grid(True) >>> f.figure.show()
Metadata
Release files for SolarUtils 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
3 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| SolarUtils-0.3.tar.gz | 357.0 kB | Without provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| solarutils-0.3-cp39-cp39-win_amd64.whl | CPython 3.9 | CPython 3.9 | Windows x86-64 | Details |
| solarutils-0.3-cp38-cp38-win_amd64.whl | CPython 3.8 | CPython 3.8 | Windows x86-64 | Details |
| SolarUtils-0.3FIXED-cp36-cp36m-win_amd64.whl | Details | |||
| SolarUtils-0.3-cp37-cp37m-win_amd64.whl | CPython 3.7 | CPython 3.7 pymalloc | Windows x86-64 | Details |
| SolarUtils-0.3-cp37-cp37m-macosx_10_13_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | macOS 10.13+ x86-64 | Details |
Total release size: 574.9 kB
Release files / SolarUtils-0.3.tar.gz
| Download URL | SolarUtils-0.3.tar.gz |
|---|---|
| Size | 357.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1143ddd423e56468e7fafdcd364a3431bf871ac4d9dc761050c40c6ec5e371c
|
|
BLAKE2b-256 checksum How to use checksums |
ec069426eeb5a371216e6691f4d0583c10ae88a7915e4791bd9c60226556f4c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
|
Release files / solarutils-0.3-cp39-cp39-win_amd64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | solarutils-0.3-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 40.7 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8d37319a203281b00dcfe6969107f4908960f6bc156843f8366125e419591e58
|
|
BLAKE2b-256 checksum How to use checksums |
64e860cc86e98c4e3b6823d780728fd95e27520e2e504095ca801933b27b2078
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / solarutils-0.3-cp38-cp38-win_amd64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | solarutils-0.3-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 46.9 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e126418332d28740ee3ee4bc992269c8555965144ddddd0581f1968f2ebb2d12
|
|
BLAKE2b-256 checksum How to use checksums |
494ed0ad9d9f9cc08abc20ef038368493de3d4f6f1cfbf172fe079ab2fdd265d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.20
|
Release files / SolarUtils-0.3FIXED-cp36-cp36m-win_amd64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | SolarUtils-0.3FIXED-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 46.7 kB |
|
SHA-256 checksum How to use checksums |
3dd45f1cb59e1b4bb93e04c705d33362dd48fe556d15478af465312fecb564bb
|
|
BLAKE2b-256 checksum How to use checksums |
a2a1c6b3915e7530a4971021b662b8d3dfc0edf761408b8cefdd0a4f4532614f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
|
Release files / SolarUtils-0.3-cp37-cp37m-win_amd64.whl
| Download URL | SolarUtils-0.3-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 46.9 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7672de8375e958bea3f6d6c5adcbe658f2a9e22db03973a4efaf54545b79e6b9
|
|
BLAKE2b-256 checksum How to use checksums |
e1c13ff7cb98a99141851e76a7b83a04d9a777256e6cd42799481e289b676ae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
|
Release files / SolarUtils-0.3-cp37-cp37m-macosx_10_13_x86_64.whl
| Download URL | SolarUtils-0.3-cp37-cp37m-macosx_10_13_x86_64.whl |
|---|---|
| Size | 36.7 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
fc3afb77413e81a91bbdad7c9276d0a584b7178465cd2883687003225c312f6d
|
|
BLAKE2b-256 checksum How to use checksums |
22297acb8a9171ffe2f0c8bb9eca29879f4f91386bcd962dccdbf4b41f9a8271
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
|
Security for SolarUtils 0.3
Upload timing
Files added late
3 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.