/install power-trading-96-to-24
Power Trading 96 To 24
Convert 96-point electricity-trading data to 24-point hourly data with the fixed rule: every 4 consecutive 15-minute points become 1 hourly point by arithmetic mean.
Workflow
- Identify the 96-point source sheet.
- Confirm there are 96 non-empty data rows.
- Build the 24-point result by averaging rows
1-4,5-8, ...,93-96for each metric column. - If writing into a template, ensure each 24-point metric column references the matching 96-point source column.
- Verify at least the first 3 hours manually.
Column Mapping Rule
Typical columns:
- 时刻
- 统调负荷
- 省间联络线
- 总出力
- 非现货机组出力
- 新能源
- 水电
- 抽蓄
For hour n in the 24-point table, average source rows ((n-1)*4+1) to (n*4).
Example:
- 24点第1小时 ← 96点第1~4行平均
- 24点第2小时 ← 96点第5~8行平均
- 24点第24小时 ← 96点第93~96行平均
Formula Pattern
When the source sheet is named source96, use this pattern in the 24-point formula sheet:
=SUM(OFFSET(source96!$B$2,(ROW()-2)*4,0,4,1))/4
Change the column letter only. Do not change the matching logic.
Critical Checks
- Keep same-column mapping.
水电must reference the 96-point水电column, not another metric. - Do not call a column "correct" only because the formula shape looks valid; verify the referenced source column.
- If a 24-point column seems missing, check whether its width was shrunk to near zero instead of being deleted.
- Formula sheets may look blank in readers that do not recalc Excel caches. Check the numeric result sheet for actual values.
Quick Commands
Create a new workbook with source96, result24, and formula24:
python scripts/convert_96_to_24.py input.xlsx output.xlsx
Specify the source sheet explicitly when auto-detection is ambiguous:
python scripts/convert_96_to_24.py input.xlsx output.xlsx --source-sheet "日前96点边界条件数据"
Template Fix Guidance
If the user asks to repair an existing template:
- Edit the existing file minimally.
- Change only the wrong
\x3Cf>formula nodes or the target column width. - Preserve the rest of the workbook.
- Re-validate formulas after packing.
A common correct 水电 formula is:
=SUM(OFFSET(日前96点边界条件数据!$H$2,(ROW()-2)*4,0,4,1))/4
Output Expectation
Prefer delivering:
- A source 96-point sheet
- A computed 24-point value sheet
- A formula-based 24-point sheet for auditability
If the user instead wants an existing template updated in place, modify that template rather than creating a separate workbook.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install power-trading-96-to-24 - 安装完成后,直接呼叫该 Skill 的名称或使用
/power-trading-96-to-24触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
电力交易96点转24点 是什么?
Convert 电力交易/电网边界条件 96点数据 into 24点小时数据 by averaging each consecutive 4 quarter-hour rows. Use when the user asks to do 96转24、96点转24点、15分钟转小时、日前96点边界条件汇总、检查96... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。
如何安装 电力交易96点转24点?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install power-trading-96-to-24」即可一键安装,无需额外配置。
电力交易96点转24点 是免费的吗?
是的,电力交易96点转24点 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
电力交易96点转24点 支持哪些平台?
电力交易96点转24点 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 电力交易96点转24点?
由 MecyAlika(@mecyalika)开发并维护,当前版本 v1.0.0。