Solar PArameterization for the Radiative Transfer of the Atmosphere
Project description
sparta-solar: Clear-sky Solar Irradiance with the SPARTA Radiative Transfer Model
A Python library to compute clear-sky solar irradiance at the ground surface using the Solar PArameterization of the Radiative Transfer of the Atmosphere (SPARTA) radiative transfer model, with built-in access to multiple atmospheric databases (Copernicus CAMS Radiative Service via SODA, hourly NASA MERRA-2 data via Google Earth Engine, and a daily dataset curated and maintained as part of the sparta-solar library on a dedicated Hugging Face dataset).
Quick install
pip install sparta-solar
or with uv:
uv add sparta-solar
Quick examples
At individual sites:
import pandas as pd
from spartasolar.atmosphere import merra2_daily
times = pd.date_range("2020-06-15", periods=24, freq="h")
atmos = merra2_daily.at_sites(
times=times,
latitude=36.72, # or a sequence of latitudes...
longitude=-4.42) # ... and longitudes
result = atmos.compute()
print(result)
On a regular spatial grid:
lats = np.arange(-60, 60.1, 1)
lons = np.arange(-90, 90.1, 1)
atmos = merra2_daily.on_regular_grid(
times=times,
latitude=lats,
longitude=lons)
result = atmos.compute()
print(result)
Documentation
Full documentation — installation guide, user guide, quick reference, and API reference — is available at https://jararias.github.io/sparta-solar
Citation
@article{ruizarias2023sparta,
author = {Ruiz-Arias, Jose A.},
title = {{SPARTA}: Solar parameterization for the radiative transfer of the cloudless atmosphere},
journal = {Renewable and Sustainable Energy Reviews},
volume = {188},
pages = {113833},
year = {2023},
doi = {10.1016/j.rser.2023.113833}
}
License
CC BY-NC-SA 4.0 — free for non-commercial use with attribution.
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sparta_solar-0.2.1.tar.gz.
File metadata
- Download URL: sparta_solar-0.2.1.tar.gz
- Upload date:
- Size: 9.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40a2fbe6fbc8cfd7cb2753163a8782fe518ce7235a1ffdb4a0edb38df969377c
|
|
| MD5 |
26c534da54e179cc7fa02f490308d556
|
|
| BLAKE2b-256 |
05b59f357cf6ee15d149bd1afed2cf158273bbf28bfab6a488d2782480a1bd88
|
File details
Details for the file sparta_solar-0.2.1-py3-none-any.whl.
File metadata
- Download URL: sparta_solar-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
324feb1976dec3a1a411f703e8d9123fb352c9699258d824566b2c114336d01f
|
|
| MD5 |
b678150a24e813e411dcfed64db060ae
|
|
| BLAKE2b-256 |
e37a7da31cd7f08210730fef1bc62510fa9b8679f7090d38e040853cbb18244a
|