Install
openclaw skills install power-trading-96-to-24Convert 电力交易/电网边界条件 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点模板公式、修复24点表引用列,尤其是 Excel/xlsx 场景。
openclaw skills install power-trading-96-to-24Convert 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.
1-4, 5-8, ..., 93-96 for each metric column.Typical columns:
For hour n in the 24-point table, average source rows ((n-1)*4+1) to (n*4).
Example:
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.
水电 must reference the 96-point 水电 column, not another metric.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点边界条件数据"
If the user asks to repair an existing template:
<f> formula nodes or the target column width.A common correct 水电 formula is:
=SUM(OFFSET(日前96点边界条件数据!$H$2,(ROW()-2)*4,0,4,1))/4
Prefer delivering:
If the user instead wants an existing template updated in place, modify that template rather than creating a separate workbook.