Skip to main content

A package for retrieving solar radiation data using NASA's POWER API

Project description

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)

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

mcp_radiation-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

mcp_radiation-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_radiation-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_radiation-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for mcp_radiation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 08b29e80a34841cf2280150523393b1d0d98ce23a65d840595002946716da474
MD5 ab2a8ebadbe3a24d27942ff471ffa1ea
BLAKE2b-256 141d0c255752084d348832e418e9eba0699ab0824b710cb913119167540f6b11

See more details on using hashes here.

File details

Details for the file mcp_radiation-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_radiation-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for mcp_radiation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c829714ec6b6af6352d64d8b46cf1ccce72aec14c16e5ee1b479968007dfb5b6
MD5 6b0bf175120a920dc92cd3dcce3d8f4e
BLAKE2b-256 40f37ecfe71e8126f9df7bdc8eb7ad1888f76cb00a6cd93fa75079ed67d54dd1

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