不同方位倾斜面辐射量计算
by @yuepeng1985-web
Calculate solar radiation on tilted surfaces based on NASA POWER data. Supports user-defined tilt angle and azimuth angle. Outputs structured Excel files.
clawhub install solar-tilt-calculator📖 About This Skill
name: solar-tilt-calculator description: Calculate solar radiation on tilted surfaces based on NASA POWER data. Supports user-defined tilt angle and azimuth angle. Outputs structured Excel files. homepage: https://power.larc.nasa.gov metadata: {"clawdbot":{"emoji":"☀️","requires":{"bins":["curl"],"python":["openpyxl","pandas"]}}}
Solar-Tilt-Calculator
Calculate solar radiation on tilted surfaces for wind and solar energy analysis. Based on NASA POWER climatology data and Hay's anisotropic sky-diffuse model.
Trigger
User provides: 1. Input Excel file path (from metdata-nasa-access) 2. Tilt angle (β) in degrees 3. Azimuth angle (γ) in degrees (optional, default: 0 = facing equator)
Example:
Workflow
Step 1: Read Input Excel
Read the Excel file generated by metdata-nasa-access:
python3 scripts/calculate_tilt_radiation.py \
--input \
--tilt \
--azimuth \
--output
Input Excel structure (from metdata-nasa-access):
Step 2: Calculate Tilted Surface Radiation
Use Hay's anisotropic model (from paper: 不同方位倾斜面上太阳辐射量及最佳倾角的计算):
HT = Hb × Rb + Hd × [(Hb/H0) × Rb + (1/2)(1 - Hb/H0)(1 + cosβ)] + (1/2)ρH(1 - cosβ)
For equator-facing surfaces (γ = 0):
Rb = [sin(φ - β) × sinδ + cos(φ - β) × cosδ × cosωs] / [sinφ × sinδ + cosφ × cosδ × cosωs]
For tilted surfaces with azimuth (γ ≠ 0): Use Bushell's improved formula for sunrise/sunset hour angles:
ωs1 = min{ωs, arccos[(A - B)/C]}
ωs2 = max{-ωs, arccos[(A + B)/C]}
Where:
Step 3: Generate Output Excel
Output Excel with 3 sheets: 1. 基本信息 - Location, tilt angle, azimuth angle, input data source 2. 倾斜面辐射数据 - Monthly mean daily radiation on tilted surface 3. 参数说明 - Calculation model, parameters, formulas
Step 4: Report to User
Confirm the file path and summarize key findings:
Output Format
Excel with 3 sheets:
基本信息:
倾斜面辐射数据: | 月份 | 直射辐射 | 散射辐射 | 地面反射 | 总辐射 | 水平面总辐射 | 增益/损失 | |------|---------|---------|---------|--------|-------------|----------| | 1月 | ... | ... | ... | ... | ... | ... |
参数说明: