← 返回
未分类 中文

光伏设计NASA日均气象数据获取

Fetch NASA POWER meteorological data for wind and solar energy, output Excel files.
获取NASA POWER风能和太阳能气象数据,输出Excel文件。
yuepeng1985-web yuepeng1985-web 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 287
下载
💾 0
安装
1
版本
#latest#meteorological data#nasa#pv#solar

概述

MetData-NASA-Access

Fetch NASA POWER meteorological data for wind and solar energy analysis, output structured Excel files.

Trigger

User provides a location name or coordinates, e.g.:

  • "上海市闵行区申虹路虹桥天地3号楼"
  • "31.1932, 121.3111"
  • "西安"

Workflow

Step 1: Resolve Coordinates

If user provides a location name, resolve to lat/lon using Nominatim geocoding:

curl -s -G "https://nominatim.openstreetmap.org/search" \
  --data-urlencode "q=<LOCATION>" \
  --data-urlencode "format=json" \
  --data-urlencode "limit=1" \
  -H "User-Agent: MetData-NASA-Access/1.0"

Parse JSON response to get lat and lon. If user already provides coordinates, skip this step.

Step 2: Run the Script

Use the Python script at scripts/fetch_metdata.py:

python3 scripts/fetch_metdata.py \
  --lat <LAT> \
  --lon <LON> \
  --start <YEAR> \
  --end <YEAR> \
  --output <OUTPUT_PATH>

Parameters:

  • --lat, --lon: Coordinates (required)
  • --start, --end: Year range (default: 2016, 2017)
  • --output: Excel output path (default: ~/.openclaw/workspace/output/metdata/)
  • --params: Comma-separated custom parameter list (default: wind+ solar defaults)
  • --granularity: monthly, daily, climatology, or all (default: all)

Step 3: Report to User

Confirm the file path and summarize key findings (e.g., average wind speed, average solar irradiance).

Default Parameters

Solar (PV): ALLSKY_SFC_SW_DWN, CLRSKY_SFC_SW_DWN, ALLSKY_TOA_SW_DWN, ALLSKY_SFC_LW_DWN, KT, KT_CLEAR

Temperature: T2M, T2M_MAX, T2M_MIN, T10M, T10M_MAX, T10M_MIN, TS, TS_MAX, TS_MIN

Humidity: RH2M, QV2M, T2MDEW

Wind: WSC, WS50M, WS50M_MAX, WS50M_MIN, WS10M, WS10M_MAX, WS10M_MIN, WD50M, WD10M

Pressure: PSC, PS

Other: PRECTOT, TQV, FROST_DAYS

Output Format

Excel with sheets:

  • 月度数据: Monthly averages
  • 日均数据: Daily values
  • 气候平均数据: 20-year climatological means (2001-2020)

Notes

  • NASA POWER data uses MERRA-2 reanalysis, ~0.5° resolution
  • community=RE = Renewable Energy application
  • Temperature: °C, Wind: m/s, Radiation: kWh/m²/day
  • Time standard: LST (Local Standard Time)
  • For monthly data, row "201613" = annual mean within that year
  • For climatology, months are JAN-DEC + ANN (annual mean)
  • Fetching all 3 granularities with 32 params takes ~5-8 minutes
  • Use --granularity monthly for faster results

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 02:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 142,411
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 275 📥 101,196
professional

PV String design 光伏组串设计

yuepeng1985-web
【光伏组串设计专用技能】当用户请求计算光伏组件串联数量、匹配逆变器参数、或进行光伏系统设计时自动触发 支持:耦合计算法、规范保守法、容配比计算、电压校核、电流校核、配置方案推荐、自动查询当地极端温度 严格遵循:组件参数 → 自动查询温度 →
★ 0 📥 422