Multi-source solar radiation downloader and forecasting toolkit
Project description
irrapy2
irrapy2 is a lightweight Python toolkit for downloading, parsing, and processing multi-source ground-based solar radiation and meteorological datasets, combined with a simple forecasting module (RNN / LSTM / Informer).
The package provides a unified interface to several international radiation networks:
- BSRN – Baseline Surface Radiation Network
- MIDC (NREL) – Measurement & Instrumentation Data Center
- SAURAN – Southern African Universities Radiometric Network
- SRML – Solar Radiation Monitoring Laboratory (UOregon)
- SURFRAD (NOAA) – Surface Radiation Budget Network
- SOLRAD (NOAA) – Solar Radiation Network
It also includes a built-in forecasting tool for solar irradiance time series.
📦 Installation
pip install irrapy2
🚀 Quick Start
Download BSRN data
from irrapy2 import download_bsrn
download_bsrn(
site="cab",
start="2023-01-01",
end="2023-01-31",
username="your_bsrn_username",
password="your_bsrn_password",
save_path="bsrn_out.csv"
)
Download MIDC data
from irrapy2 import download_midc
download_midc(
site="BMS",
begin="20230101",
end="20230131",
save_path="midc_out.csv"
)
Forecast Solar Radiation
from irrapy2 import run_forecast
metrics = run_forecast(
csv_path="bsrn_out.csv",
model="lstm", # rnn / lstm / informer
seq_len=72,
horizon=6,
epochs=10
)
print(metrics)
📁 Supported Datasets
| Source | Region | Module | Time Handling |
|---|---|---|---|
| BSRN | Global | download_bsrn |
UTC |
| MIDC (NREL) | USA | download_midc |
Local + DST + UTC |
| SAURAN | Africa | download_sauran |
Local → UTC |
| SRML | USA | download_srml |
America/Los_Angeles |
| SURFRAD | USA | download_surfrad |
UTC |
| SOLRAD | USA | download_solrad |
UTC + Local |
🔧 Requirements
pandas
numpy
requests
pytz
torch
scikit-learn
📄 License
This project is open-source and licensed under the Apache License 2.0.
🙌 Contributing
Issues and pull requests are welcome.
Feel free to open a PR if you want to add more stations, enhance parsing logic, or improve the forecasting module.
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 irradpy2-0.2.5.tar.gz.
File metadata
- Download URL: irradpy2-0.2.5.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d4393b11b6d0bf6c15ed03a9e244f90f98fdad7c1eec123d404697c9b338cdb
|
|
| MD5 |
a9252b52504cf7a206f0b9d4f3fbf93a
|
|
| BLAKE2b-256 |
fa189075aa5d3480adca10575e2b7a50583144bde0509bf662d69ee9f7b4deea
|
File details
Details for the file irradpy2-0.2.5-py3-none-any.whl.
File metadata
- Download URL: irradpy2-0.2.5-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5de7689f14e145ca34be6e93daefb2330682197a617eb84a2aa81acffa976bad
|
|
| MD5 |
b69b3cadbb8270865793365ab7a54a7b
|
|
| BLAKE2b-256 |
4b13a57dec1b2ab3425ea968cbf1d1210dbe75429ab77c6cada70600629458c8
|