Skip to main content

A unified multi-source solar radiation and ground meteorological data downloader with forecasting tools.

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


Download files

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

Source Distribution

irradpy2-0.2.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

irradpy2-0.2.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file irradpy2-0.2.3.tar.gz.

File metadata

  • Download URL: irradpy2-0.2.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for irradpy2-0.2.3.tar.gz
Algorithm Hash digest
SHA256 cfc25bfc0c361ec2c7113f17f5149c3379f62bf0b8f74ba1601fd98be5c8e5d4
MD5 71622f59c08a95b2e40e28b923889fc2
BLAKE2b-256 f4c1411a326d4686b19f0ffaa61800b4e0ba4cd1cf62f048782cc189a4181438

See more details on using hashes here.

File details

Details for the file irradpy2-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: irradpy2-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for irradpy2-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0573054a211358fd707529095ad93614ec87f0617553b1a60e0b5689442ca91b
MD5 e1dc43d1d63e65bbcbc8acf849e55930
BLAKE2b-256 32425ace0df4d7dc14cdef950a660b54561387b39ca9ecc8e383b11dfc503415

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page