MCP Radiation
A Python package for retrieving solar radiation data using NASA's POWER API.
Features
- Retrieve hourly solar radiation data for any location
- Support for total, direct, and diffuse irradiance
- Temperature and wind speed data included
- Automatic date validation and adjustment
- Retry mechanism for API requests
- Export data to CSV format
Installation
pip install -e .
Usage
from mcp_radiation import RadiationMCP
# Initialize with location coordinates
mcp = RadiationMCP(latitude=39.9042, longitude=116.4074)
# Get data for a specific date range
data = mcp.fetch_data('2023-01-01', '2023-12-31')
# Get five years of hourly data
df, stats = mcp.get_five_years_hourly_data('data')
Data Format
The package retrieves the following parameters:
- Total irradiance (W/m²)
- Direct irradiance (W/m²)
- Diffuse irradiance (W/m²)
- Temperature (°C)
- Wind speed (m/s)
License
MIT License
Author
俞海 (yuhai_8203@126.com)
Metadata
Release files for mcp-radiation 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_radiation-0.1.0.tar.gz | 2.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_radiation-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / mcp_radiation-0.1.0.tar.gz
| Download URL | mcp_radiation-0.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08b29e80a34841cf2280150523393b1d0d98ce23a65d840595002946716da474
|
|
BLAKE2b-256 checksum How to use checksums |
141d0c255752084d348832e418e9eba0699ab0824b710cb913119167540f6b11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / mcp_radiation-0.1.0-py3-none-any.whl
| Download URL | mcp_radiation-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c829714ec6b6af6352d64d8b46cf1ccce72aec14c16e5ee1b479968007dfb5b6
|
|
BLAKE2b-256 checksum How to use checksums |
40f37ecfe71e8126f9df7bdc8eb7ad1888f76cb00a6cd93fa75079ed67d54dd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for mcp-radiation 0.1.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.