sps44 commited on
Commit
244cc67
·
verified ·
1 Parent(s): 1307719

Add Open Energy Dataset star schema (README, table docs, dim/fact Parquet tables)

Browse files
README.md ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ type: Dataset
3
+ title: Open Energy Dataset — Star Schema
4
+ description: Star schema of 15-min industrial energy aggregates from 43 monitored assets over 12 months
5
+ resource: .
6
+ tags: [dataset, energy, industrial, star-schema, SCADA]
7
+ timestamp: 2024-12-31T07:30:00Z/2025-12-31T23:45:00Z
8
+ source_paper: "Flynn et al., Data 2026, 11, 101"
9
+ source_doi: "10.3390/data11050101"
10
+ dataset_doi: "10.5281/zenodo.19180972"
11
+ license: cc-by-4.0
12
+ ---
13
+
14
+ # Open Energy Dataset — Star Schema
15
+
16
+ ## 1. Overview
17
+
18
+ This star schema models the **Gold-layer** 15-minute energy aggregates from an industrial manufacturing facility in Ireland. The source dataset covers 43 monitored assets over ~12 months (2024-12-31 to 2025-12-31), with 1,039,873 ALL-phase windows totalling 2.96 GWh of measured electrical energy.
19
+
20
+ The facility employs ~150 personnel under continuous production. Monitored loads include hydraulic presses, air compressors, AHUs, heat pumps, mixers, material handling, and utilities. Metering was deployed progressively (staged commissioning), so individual assets have different temporal coverage within the observation window.
21
+
22
+ **Source:** Flynn et al., *Data* 2026, 11, 101 — [doi:10.3390/data11050101](https://doi.org/10.3390/data11050101)
23
+ **Dataset:** [doi:10.5281/zenodo.19180972](https://doi.org/10.5281/zenodo.19180972)
24
+
25
+ ## 2. Tables
26
+
27
+ | Table | Role | Rows | Description |
28
+ |-------|------|-----:|-------------|
29
+ | [fact_energy_15m](fact_energy_15m.md) | fact | 12,076,111 | Unpivoted 15-min energy measurements (3 signals x 4 phases) |
30
+ | [dim_asset](dim_asset.md) | dimension | 43 | Monitored asset metadata (meter type, protocol, stream dates) |
31
+ | [dim_signal_info](dim_signal_info.md) | dimension | 12 | Signal catalogue (metric name + phase + unit) |
32
+ | [dim_observation_window](dim_observation_window.md) | dimension | 1,554 | Deduplicated per-window coverage and reliability profiles |
33
+ | [fact_data_quality_event](fact_data_quality_event.md) | fact | 24 | Documented instrumentation fault events |
34
+
35
+ ### File inventory
36
+
37
+ ```
38
+ result/
39
+ ├── README.md (this file)
40
+ ├── build_star_schema.py (ETL script)
41
+ ├── fact_energy_15m.md (table concept)
42
+ ├── dim_asset.md (table concept)
43
+ ├── dim_signal_info.md (table concept)
44
+ ├── dim_observation_window.md (table concept)
45
+ ├── fact_data_quality_event.md (table concept)
46
+ ├── dim/
47
+ │ ├── dim_asset.parquet (43 rows, <1 KB)
48
+ │ ├── dim_signal_info.parquet (12 rows, <1 KB)
49
+ │ └── dim_observation_window.parquet (1,554 rows, 14 KB)
50
+ └── fact/
51
+ ├── fact_energy_15m.parquet (12,076,111 rows, 75.8 MB)
52
+ └── fact_data_quality_event.parquet (24 rows, <1 KB)
53
+ ```
54
+
55
+ All parquet files use ZSTD compression. The fact table is a single file (not partitioned).
56
+
57
+ ## 3. Schema Diagram
58
+
59
+ ```mermaid
60
+ erDiagram
61
+ dim_asset {
62
+ VARCHAR asset_id PK
63
+ VARCHAR asset_type
64
+ VARCHAR em_manufacturer
65
+ VARCHAR em_model
66
+ VARCHAR em_communication_protocol
67
+ VARCHAR em_acquisition_pathway
68
+ TIMESTAMP stream_start_utc
69
+ TIMESTAMP stream_end_utc
70
+ BOOLEAN is_submeter
71
+ }
72
+
73
+ dim_signal_info {
74
+ INTEGER signal_id PK
75
+ VARCHAR signal_name
76
+ VARCHAR phase
77
+ VARCHAR unit
78
+ VARCHAR description
79
+ }
80
+
81
+ fact_energy_15m {
82
+ VARCHAR asset_id FK
83
+ INTEGER signal_id FK
84
+ TIMESTAMP time
85
+ DOUBLE value_float
86
+ INTEGER observation_window_id FK
87
+ }
88
+
89
+ dim_observation_window {
90
+ INTEGER observation_window_id PK
91
+ DOUBLE minutes
92
+ DOUBLE seconds_observed
93
+ DOUBLE data_coverage_pct
94
+ DOUBLE seconds_reliable
95
+ DOUBLE reliable_coverage_pct
96
+ INTEGER is_reliable_window
97
+ }
98
+
99
+ fact_data_quality_event {
100
+ INTEGER event_id PK
101
+ VARCHAR asset_id FK
102
+ VARCHAR issue_type
103
+ VARCHAR issue_detail
104
+ TIMESTAMP asset_stream_start
105
+ TIMESTAMP asset_stream_end
106
+ TIMESTAMP issue_start
107
+ TIMESTAMP issue_end
108
+ BOOLEAN issue_persisted_to_stream_end
109
+ }
110
+
111
+ dim_asset ||--o{ fact_energy_15m : "asset_id"
112
+ dim_asset ||--o{ fact_data_quality_event : "asset_id"
113
+ dim_signal_info ||--o{ fact_energy_15m : "signal_id"
114
+ dim_observation_window ||--o{ fact_energy_15m : "observation_window_id"
115
+ ```
116
+
117
+ ## 4. Design Principles
118
+
119
+ - **Grain of `fact_energy_15m`:** one row per (`asset_id`, `signal_id`, `time`). The three source measures (energy, demand, avg power) and four phases (L1, L2, L3, ALL) are unpivoted into rows with a single `value_float` column.
120
+ - **Signals as a dimension:** `dim_signal_info` encodes both the signal name and the electrical phase, enabling flexible filtering and pivoting without hard-coded column names.
121
+ - **Coverage as a deduplicated dimension:** `dim_observation_window` holds a surrogate `observation_window_id` PK plus the six coverage/reliability value columns. Only 1,554 distinct profiles exist across 4.1M source rows, so each fact row carries a compact FK instead of duplicating coverage columns.
122
+ - **Data quality events as a separate fact:** instrumentation faults are modelled as time-bounded events referencing the asset dimension, enabling temporal overlap analysis with energy facts.
123
+
124
+ ## 5. Source Mapping
125
+
126
+ | Star Schema Table | Source File(s) | Transform |
127
+ |-------------------|----------------|-----------|
128
+ | `fact_energy_15m` | Gold-layer Parquet partitions (`data_parquet/asset_id=*/dt_utc=*/*.parquet`) | Unpivot `Energy_kWh_15m`, `Demand_kW`, `AvgPower_kW_15m` x `Phase` into rows; rename `window_start_utc` -> `time`; assign `signal_id` and `observation_window_id` FKs |
129
+ | `dim_asset` | `metadata/AssetList.csv` | Direct load |
130
+ | `dim_signal_info` | Static catalogue (12 rows) | Generated from the 3 signal names x 4 phases |
131
+ | `dim_observation_window` | Gold-layer Parquet partitions | DISTINCT on 6 coverage columns; assign surrogate `observation_window_id` |
132
+ | `fact_data_quality_event` | `metadata/meter_data_quality_log.csv` | Direct load with surrogate `event_id` |
133
+
134
+ ## 6. Typical Questions
135
+
136
+ Questions an analyst might ask of this dataset, with expected answers derived from the published validation summaries.
137
+
138
+ ### Energy totals
139
+
140
+ **Q: What is the total measured energy across all assets (ALL phase)?**
141
+ A: 2,958,571 kWh (2.96 GWh). This is the sum of `energy_kwh_15m` for the ALL phase across all assets and windows.
142
+
143
+ **Q: How much energy did the grid connection (mi_a) import over the observation period?**
144
+ A: 1,228,639 kWh. This is the single largest energy contributor in the dataset.
145
+
146
+ **Q: Which asset type consumes the most energy?**
147
+ A: Electrical_GridImport (1,228,639 kWh via mi_a), but among consumer loads: HVAC_AirExtraction (206,329 kWh, driven by ex_b at 191,771 kWh), followed by Press_Main (525,161 kWh across 9 presses) and CompressedAir (144,771 kWh from 2 compressors).
148
+
149
+ **Q: What is the total energy measured across all rows including per-phase breakdowns?**
150
+ A: 5,917,142 kWh across all 4,103,703 rows (L1 + L2 + L3 + ALL phases combined).
151
+
152
+ ### Temporal coverage
153
+
154
+ **Q: What is the time span of the dataset?**
155
+ A: 2024-12-31 07:30 UTC to 2025-12-31 23:45 UTC (approximately 12 months).
156
+
157
+ **Q: How many 15-minute windows are in the ALL-phase dataset?**
158
+ A: 1,039,873 windows across 43 assets.
159
+
160
+ **Q: Which month had the highest energy consumption?**
161
+ A: October 2025 with 418,908 kWh (36-37 active assets), followed by November 2025 at 403,469 kWh (40 active assets).
162
+
163
+ **Q: How did the number of active assets change over time?**
164
+ A: From 14 assets in January 2025 to 43 assets in December 2025, reflecting staged commissioning. The jump from 14 to 18 occurred in February, then 22 in March, 26 in April, and 36 in May when supply/distribution meters came online.
165
+
166
+ ### Data quality
167
+
168
+ **Q: What is the mean data coverage across the dataset?**
169
+ A: 99.99% mean data coverage (ALL phase). Median is 100.00%.
170
+
171
+ **Q: What percentage of ALL-phase windows are reliable?**
172
+ A: 97.72% (1,016,182 out of 1,039,873 windows satisfy IsReliableWindow = 1).
173
+
174
+ **Q: Which asset has the lowest reliable window percentage?**
175
+ A: p_f (Press_IntegratedAutomationCell) at 70.64%, followed by sb_c (Electrical_Distribution) at 63.40%. Both have documented instrumentation issues.
176
+
177
+ **Q: How many data quality events are there and what types?**
178
+ A: 24 events across 18 assets. Types include reversed CT polarity (most common), phase reference misalignment (single/multi/all phases), tag misconfiguration, and CT ratio misconfiguration.
179
+
180
+ **Q: Which assets have unresolved faults (persisted to stream end)?**
181
+ A: ahu_a (L3 tag misconfiguration) and mix_b (L3 tag misconfiguration) — both had SCADA tag issues that were never corrected during the observation period.
182
+
183
+ ### Asset comparisons
184
+
185
+ **Q: How many assets use Modbus RTU vs Modbus TCP/IP?**
186
+ A: 4 assets use Modbus RTU (hp_a, hp_b, sb_c, mi_b — all Rayleigh meters via gateway). The remaining 39 use Modbus TCP/IP (Weidmuller EM220 meters).
187
+
188
+ **Q: Which individual press consumes the most energy?**
189
+ A: p_k (Press Main and Robot) at 207,445 kWh, followed by p_f (Press IntegratedAutomationCell) at 111,980 kWh and p_b (Press Main) at 88,014 kWh.
190
+
191
+ **Q: What is the energy consumption of the two air compressors combined?**
192
+ A: 144,771 kWh (comp_a: 68,392 kWh, comp_b: 76,379 kWh).
193
+
194
+ ### Load profiles
195
+
196
+ **Q: Do the heat pumps consume significant energy?**
197
+ A: No. hp_a consumed 69 kWh and hp_b consumed 12 kWh over the observation period — negligible compared to other loads.
198
+
199
+ **Q: What fraction of total grid import is captured by sub-metered assets?**
200
+ A: The dataset is not a closed energy system — partial sub-metering means summing all consumer meters will not equal grid import (mi_a). This is a documented limitation of the retrofit monitoring deployment.
description.md ADDED
@@ -0,0 +1,391 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ type: Dataset
3
+ title: Open Energy Dataset — Star Schema
4
+ description: Star schema of 15-min industrial energy aggregates from 43 monitored assets over 12 months
5
+ resource: .
6
+ tags: [dataset, energy, industrial, star-schema, SCADA]
7
+ timestamp: 2024-12-31T07:30:00Z/2025-12-31T23:45:00Z
8
+ source_paper: "Flynn et al., Data 2026, 11, 101"
9
+ source_doi: "10.3390/data11050101"
10
+ dataset_doi: "10.5281/zenodo.19180972"
11
+ license: CC BY 4.0
12
+ ---
13
+
14
+ # Open Energy Dataset — Star Schema
15
+
16
+ ## 1. Overview
17
+
18
+ This star schema models the **Gold-layer** 15-minute energy aggregates from an industrial manufacturing facility in Ireland. The source dataset covers 43 monitored assets over ~12 months (2024-12-31 to 2025-12-31), with 1,039,873 ALL-phase windows totalling 2.96 GWh of measured electrical energy.
19
+
20
+ The facility employs ~150 personnel under continuous production. Monitored loads include hydraulic presses, air compressors, AHUs, heat pumps, mixers, material handling, and utilities. Metering was deployed progressively (staged commissioning), so individual assets have different temporal coverage within the observation window.
21
+
22
+ **Source:** Flynn et al., *Data* 2026, 11, 101 — [doi:10.3390/data11050101](https://doi.org/10.3390/data11050101)
23
+ **Dataset:** [doi:10.5281/zenodo.19180972](https://doi.org/10.5281/zenodo.19180972)
24
+
25
+ ## 2. Tables
26
+
27
+ | Table | Role | Rows | Description |
28
+ |-------|------|-----:|-------------|
29
+ | [fact_energy_15m](fact_energy_15m.md) | fact | 12,076,111 | Unpivoted 15-min energy measurements (3 signals x 4 phases) |
30
+ | [dim_asset](dim_asset.md) | dimension | 43 | Monitored asset metadata (meter type, protocol, stream dates) |
31
+ | [dim_signal_info](dim_signal_info.md) | dimension | 12 | Signal catalogue (metric name + phase + unit) |
32
+ | [dim_observation_window](dim_observation_window.md) | dimension | 1,554 | Deduplicated per-window coverage and reliability profiles |
33
+ | [fact_data_quality_event](fact_data_quality_event.md) | fact | 24 | Documented instrumentation fault events |
34
+
35
+ ### File inventory
36
+
37
+ ```
38
+ result/
39
+ ├── README.md (this file)
40
+ ├── build_star_schema.py (ETL script)
41
+ ├── fact_energy_15m.md (table concept)
42
+ ├── dim_asset.md (table concept)
43
+ ├── dim_signal_info.md (table concept)
44
+ ├── dim_observation_window.md (table concept)
45
+ ├── fact_data_quality_event.md (table concept)
46
+ ├── dim/
47
+ │ ├── dim_asset.parquet (43 rows, <1 KB)
48
+ │ ├── dim_signal_info.parquet (12 rows, <1 KB)
49
+ │ └── dim_observation_window.parquet (1,554 rows, 14 KB)
50
+ └── fact/
51
+ ├── fact_energy_15m.parquet (12,076,111 rows, 75.8 MB)
52
+ └── fact_data_quality_event.parquet (24 rows, <1 KB)
53
+ ```
54
+
55
+ All parquet files use ZSTD compression. The fact table is a single file (not partitioned).
56
+
57
+ ## 3. Schema Diagram
58
+
59
+ ```mermaid
60
+ erDiagram
61
+ dim_asset {
62
+ VARCHAR asset_id PK
63
+ VARCHAR asset_type
64
+ VARCHAR em_manufacturer
65
+ VARCHAR em_model
66
+ VARCHAR em_communication_protocol
67
+ VARCHAR em_acquisition_pathway
68
+ TIMESTAMP stream_start_utc
69
+ TIMESTAMP stream_end_utc
70
+ BOOLEAN is_submeter
71
+ }
72
+
73
+ dim_signal_info {
74
+ INTEGER signal_id PK
75
+ VARCHAR signal_name
76
+ VARCHAR phase
77
+ VARCHAR unit
78
+ VARCHAR description
79
+ }
80
+
81
+ fact_energy_15m {
82
+ VARCHAR asset_id FK
83
+ INTEGER signal_id FK
84
+ TIMESTAMP time
85
+ DOUBLE value_float
86
+ INTEGER observation_window_id FK
87
+ }
88
+
89
+ dim_observation_window {
90
+ INTEGER observation_window_id PK
91
+ DOUBLE minutes
92
+ DOUBLE seconds_observed
93
+ DOUBLE data_coverage_pct
94
+ DOUBLE seconds_reliable
95
+ DOUBLE reliable_coverage_pct
96
+ INTEGER is_reliable_window
97
+ }
98
+
99
+ fact_data_quality_event {
100
+ INTEGER event_id PK
101
+ VARCHAR asset_id FK
102
+ VARCHAR issue_type
103
+ VARCHAR issue_detail
104
+ TIMESTAMP asset_stream_start
105
+ TIMESTAMP asset_stream_end
106
+ TIMESTAMP issue_start
107
+ TIMESTAMP issue_end
108
+ BOOLEAN issue_persisted_to_stream_end
109
+ }
110
+
111
+ dim_asset ||--o{ fact_energy_15m : "asset_id"
112
+ dim_asset ||--o{ fact_data_quality_event : "asset_id"
113
+ dim_signal_info ||--o{ fact_energy_15m : "signal_id"
114
+ dim_observation_window ||--o{ fact_energy_15m : "observation_window_id"
115
+ ```
116
+
117
+ ## 4. Design Principles
118
+
119
+ - **Grain of `fact_energy_15m`:** one row per (`asset_id`, `signal_id`, `time`). The three source measures (energy, demand, avg power) and four phases (L1, L2, L3, ALL) are unpivoted into rows with a single `value_float` column.
120
+ - **Signals as a dimension:** `dim_signal_info` encodes both the signal name and the electrical phase, enabling flexible filtering and pivoting without hard-coded column names.
121
+ - **Coverage as a deduplicated dimension:** `dim_observation_window` holds a surrogate `observation_window_id` PK plus the six coverage/reliability value columns. Only 1,554 distinct profiles exist across 4.1M source rows, so each fact row carries a compact FK instead of duplicating coverage columns.
122
+ - **Data quality events as a separate fact:** instrumentation faults are modelled as time-bounded events referencing the asset dimension, enabling temporal overlap analysis with energy facts.
123
+
124
+ ## 5. Source Mapping
125
+
126
+ | Star Schema Table | Source File(s) | Transform |
127
+ |-------------------|----------------|-----------|
128
+ | `fact_energy_15m` | Gold-layer Parquet partitions (`data_parquet/asset_id=*/dt_utc=*/*.parquet`) | Unpivot `Energy_kWh_15m`, `Demand_kW`, `AvgPower_kW_15m` x `Phase` into rows; rename `window_start_utc` -> `time`; assign `signal_id` and `observation_window_id` FKs |
129
+ | `dim_asset` | `metadata/AssetList.csv` | Direct load |
130
+ | `dim_signal_info` | Static catalogue (12 rows) | Generated from the 3 signal names x 4 phases |
131
+ | `dim_observation_window` | Gold-layer Parquet partitions | DISTINCT on 6 coverage columns; assign surrogate `observation_window_id` |
132
+ | `fact_data_quality_event` | `metadata/meter_data_quality_log.csv` | Direct load with surrogate `event_id` |
133
+
134
+ ## 6. Typical Questions
135
+
136
+ Questions an analyst might ask of this dataset, with expected answers derived from the published validation summaries.
137
+
138
+ ### Energy totals
139
+
140
+ **Q: What is the total measured energy across all assets (ALL phase)?**
141
+ A: 2,958,571 kWh (2.96 GWh). This is the sum of `energy_kwh_15m` for the ALL phase across all assets and windows.
142
+
143
+ **Q: How much energy did the grid connection (mi_a) import over the observation period?**
144
+ A: 1,228,639 kWh. This is the single largest energy contributor in the dataset.
145
+
146
+ **Q: Which asset type consumes the most energy?**
147
+ A: Electrical_GridImport (1,228,639 kWh via mi_a), but among consumer loads: HVAC_AirExtraction (206,329 kWh, driven by ex_b at 191,771 kWh), followed by Press_Main (525,161 kWh across 9 presses) and CompressedAir (144,771 kWh from 2 compressors).
148
+
149
+ **Q: What is the total energy measured across all rows including per-phase breakdowns?**
150
+ A: 5,917,142 kWh across all 4,103,703 rows (L1 + L2 + L3 + ALL phases combined).
151
+
152
+ ### Temporal coverage
153
+
154
+ **Q: What is the time span of the dataset?**
155
+ A: 2024-12-31 07:30 UTC to 2025-12-31 23:45 UTC (approximately 12 months).
156
+
157
+ **Q: How many 15-minute windows are in the ALL-phase dataset?**
158
+ A: 1,039,873 windows across 43 assets.
159
+
160
+ **Q: Which month had the highest energy consumption?**
161
+ A: October 2025 with 418,908 kWh (36-37 active assets), followed by November 2025 at 403,469 kWh (40 active assets).
162
+
163
+ **Q: How did the number of active assets change over time?**
164
+ A: From 14 assets in January 2025 to 43 assets in December 2025, reflecting staged commissioning. The jump from 14 to 18 occurred in February, then 22 in March, 26 in April, and 36 in May when supply/distribution meters came online.
165
+
166
+ ### Data quality
167
+
168
+ **Q: What is the mean data coverage across the dataset?**
169
+ A: 99.99% mean data coverage (ALL phase). Median is 100.00%.
170
+
171
+ **Q: What percentage of ALL-phase windows are reliable?**
172
+ A: 97.72% (1,016,182 out of 1,039,873 windows satisfy IsReliableWindow = 1).
173
+
174
+ **Q: Which asset has the lowest reliable window percentage?**
175
+ A: p_f (Press_IntegratedAutomationCell) at 70.64%, followed by sb_c (Electrical_Distribution) at 63.40%. Both have documented instrumentation issues.
176
+
177
+ **Q: How many data quality events are there and what types?**
178
+ A: 24 events across 18 assets. Types include reversed CT polarity (most common), phase reference misalignment (single/multi/all phases), tag misconfiguration, and CT ratio misconfiguration.
179
+
180
+ **Q: Which assets have unresolved faults (persisted to stream end)?**
181
+ A: ahu_a (L3 tag misconfiguration) and mix_b (L3 tag misconfiguration) — both had SCADA tag issues that were never corrected during the observation period.
182
+
183
+ ### Asset comparisons
184
+
185
+ **Q: How many assets use Modbus RTU vs Modbus TCP/IP?**
186
+ A: 4 assets use Modbus RTU (hp_a, hp_b, sb_c, mi_b — all Rayleigh meters via gateway). The remaining 39 use Modbus TCP/IP (Weidmuller EM220 meters).
187
+
188
+ **Q: Which individual press consumes the most energy?**
189
+ A: p_k (Press Main and Robot) at 207,445 kWh, followed by p_f (Press IntegratedAutomationCell) at 111,980 kWh and p_b (Press Main) at 88,014 kWh.
190
+
191
+ **Q: What is the energy consumption of the two air compressors combined?**
192
+ A: 144,771 kWh (comp_a: 68,392 kWh, comp_b: 76,379 kWh).
193
+
194
+ ### Load profiles
195
+
196
+ **Q: Do the heat pumps consume significant energy?**
197
+ A: No. hp_a consumed 69 kWh and hp_b consumed 12 kWh over the observation period — negligible compared to other loads.
198
+
199
+ **Q: What fraction of total grid import is captured by sub-metered assets?**
200
+ A: The dataset is not a closed energy system — partial sub-metering means summing all consumer meters will not equal grid import (mi_a). This is a documented limitation of the retrofit monitoring deployment.
201
+
202
+ ---
203
+
204
+ ---
205
+ type: Parquet
206
+ title: dim_asset
207
+ description: Monitored asset metadata including meter type, communication protocol, and stream dates
208
+ resource: ./dim/dim_asset.parquet
209
+ tags: [dimension, asset, metadata]
210
+ timestamp: 2025-01-01T00:00:00Z/2025-12-31T23:59:00Z
211
+ ---
212
+
213
+ # dim_asset
214
+
215
+ One row per monitored asset. Source: `AssetList.csv`.
216
+
217
+ | Column | Type | Description |
218
+ |--------|------|-------------|
219
+ | `asset_id` | VARCHAR | PK. Anonymised asset identifier (e.g. `ahu_a`, `p_b`, `mi_a`) |
220
+ | `asset_type` | VARCHAR | Asset classification (e.g. `HVAC_AHU`, `Press_Main`, `Electrical_GridImport`) |
221
+ | `em_manufacturer` | VARCHAR | Energy meter manufacturer (`Weidmuller`, `Rayleigh`) |
222
+ | `em_model` | VARCHAR | Meter model (`EM220`, `RI-F200`, `RI-F400`) |
223
+ | `em_communication_protocol` | VARCHAR | Communication protocol (`modbus_tcp_ip`, `modbus_rtu`) |
224
+ | `em_acquisition_pathway` | VARCHAR | SCADA acquisition route (`direct_modbus_tcp`, `gateway_modbus_tcp_to_plc`, `gateway_modbus_rtu_to_plc`) |
225
+ | `stream_start_utc` | TIMESTAMP | First observation timestamp for this asset |
226
+ | `stream_end_utc` | TIMESTAMP | Last observation timestamp for this asset |
227
+ | `is_submeter` | BOOLEAN | `TRUE` for downstream consumer/distribution meters; `FALSE` for supply-level meters (`mi_a`, `mi_b`) |
228
+
229
+ **Row count:** 43 assets
230
+
231
+ **Asset type distribution:**
232
+
233
+ | Asset Type | Count |
234
+ |------------|-------|
235
+ | Press_Main | 9 |
236
+ | Utilities | 5 |
237
+ | ProcessMixing | 4 |
238
+ | Press_Drive | 4 |
239
+ | HVAC_AHU | 3 |
240
+ | Electrical_Distribution | 3 |
241
+ | Automation_Robot | 3 |
242
+ | CompressedAir | 2 |
243
+ | HVAC_AirExtraction | 2 |
244
+ | HVAC_HeatPump | 2 |
245
+ | Press_Heating | 2 |
246
+ | Automation_Handling | 1 |
247
+ | Electrical_GridImport | 1 |
248
+ | Electrical_PVGeneration | 1 |
249
+ | Press_IntegratedAutomationCell | 1 |
250
+
251
+ ---
252
+
253
+ ---
254
+ type: Parquet
255
+ title: dim_observation_window
256
+ description: Deduplicated per-window data coverage and reliability profiles
257
+ resource: ./dim/dim_observation_window.parquet
258
+ tags: [dimension, coverage, reliability, data-quality]
259
+ timestamp: 2024-12-31T07:30:00Z/2025-12-31T23:45:00Z
260
+ ---
261
+
262
+ # dim_observation_window
263
+
264
+ Deduplicated coverage and reliability profiles. Each unique combination of coverage metrics gets a surrogate key (`observation_window_id`) referenced by [fact_energy_15m](fact_energy_15m.md).
265
+
266
+ | Column | Type | Description |
267
+ |--------|------|-------------|
268
+ | `observation_window_id` | INTEGER | PK. Surrogate key |
269
+ | `minutes` | DOUBLE | Minutes of observed data in window (<= 15.0) |
270
+ | `seconds_observed` | DOUBLE | Total seconds with telemetry coverage (capped at 900) |
271
+ | `data_coverage_pct` | DOUBLE | Observed coverage as percentage: 100 x `seconds_observed` / 900 |
272
+ | `seconds_reliable` | DOUBLE | Seconds from Silver rows passing all reliability checks (capped at 900) |
273
+ | `reliable_coverage_pct` | DOUBLE | Reliable coverage as percentage: 100 x `seconds_reliable` / 900 |
274
+ | `is_reliable_window` | INTEGER | Binary flag: `1` if `seconds_reliable` >= 720 (80% of 900 s), else `0` |
275
+
276
+ **Row count:** 1,554 (deduplicated from 4,103,703 source rows)
277
+
278
+ ---
279
+
280
+ ---
281
+ type: Parquet
282
+ title: dim_signal_info
283
+ description: Signal catalogue mapping signal_id to metric name, electrical phase, and unit
284
+ resource: ./dim/dim_signal_info.parquet
285
+ tags: [dimension, signal, catalogue]
286
+ timestamp: 2026-07-22T00:00:00Z
287
+ ---
288
+
289
+ # dim_signal_info
290
+
291
+ One row per (signal name, phase) combination. Encodes what each `value_float` in [fact_energy_15m](fact_energy_15m.md) represents.
292
+
293
+ | Column | Type | Description |
294
+ |--------|------|-------------|
295
+ | `signal_id` | INTEGER | PK. Surrogate key |
296
+ | `signal_name` | VARCHAR | Metric name: `energy_kwh_15m`, `demand_kw`, `avg_power_kw_15m` |
297
+ | `phase` | VARCHAR | Electrical phase: `L1`, `L2`, `L3`, or `ALL` (synthetic total) |
298
+ | `unit` | VARCHAR | Physical unit of the measurement value |
299
+ | `description` | VARCHAR | Human-readable description of the signal |
300
+
301
+ **Row count:** 12 (3 signals x 4 phases)
302
+
303
+ **Signal catalogue:**
304
+
305
+ | signal_id | signal_name | phase | unit | description |
306
+ |-----------|-------------|-------|------|-------------|
307
+ | 1 | `energy_kwh_15m` | L1 | kWh | Energy consumed during window (phase L1) |
308
+ | 2 | `energy_kwh_15m` | L2 | kWh | Energy consumed during window (phase L2) |
309
+ | 3 | `energy_kwh_15m` | L3 | kWh | Energy consumed during window (phase L3) |
310
+ | 4 | `energy_kwh_15m` | ALL | kWh | Energy consumed during window (all phases) |
311
+ | 5 | `demand_kw` | L1 | kW | Average demand over window (phase L1) |
312
+ | 6 | `demand_kw` | L2 | kW | Average demand over window (phase L2) |
313
+ | 7 | `demand_kw` | L3 | kW | Average demand over window (phase L3) |
314
+ | 8 | `demand_kw` | ALL | kW | Average demand over window (all phases) |
315
+ | 9 | `avg_power_kw_15m` | L1 | kW | Reliability-weighted mean power (phase L1) |
316
+ | 10 | `avg_power_kw_15m` | L2 | kW | Reliability-weighted mean power (phase L2) |
317
+ | 11 | `avg_power_kw_15m` | L3 | kW | Reliability-weighted mean power (phase L3) |
318
+ | 12 | `avg_power_kw_15m` | ALL | kW | Reliability-weighted mean power (all phases) |
319
+
320
+ ---
321
+
322
+ ---
323
+ type: Parquet
324
+ title: fact_data_quality_event
325
+ description: Documented instrumentation fault events with time-bounded issue periods per asset
326
+ resource: ./fact_data_quality_event.parquet
327
+ tags: [fact, data-quality, instrumentation, faults]
328
+ timestamp: 2025-01-01T00:00:00Z/2025-12-31T23:59:00Z
329
+ ---
330
+
331
+ # fact_data_quality_event
332
+
333
+ One row per documented instrumentation issue. Source: `meter_data_quality_log.csv`. These are time-bounded events recording known configuration or hardware faults that affect measurement validity.
334
+
335
+ | Column | Type | Description |
336
+ |--------|------|-------------|
337
+ | `event_id` | INTEGER | PK. Surrogate key (auto-increment) |
338
+ | `asset_id` | VARCHAR | FK -> [dim_asset](dim_asset.md). Affected asset |
339
+ | `issue_type` | VARCHAR | Fault category (see taxonomy below) |
340
+ | `issue_detail` | VARCHAR | Free-text description of the specific fault |
341
+ | `asset_stream_start` | TIMESTAMP | Start of the asset's monitoring stream |
342
+ | `asset_stream_end` | TIMESTAMP | End of the asset's monitoring stream |
343
+ | `issue_start` | TIMESTAMP | When the issue began affecting measurements |
344
+ | `issue_end` | TIMESTAMP | When the issue was rectified |
345
+ | `issue_persisted_to_stream_end` | BOOLEAN | `TRUE` if the fault was never resolved within the observation period |
346
+
347
+ **Row count:** 24 documented events across 18 assets
348
+
349
+ **Issue type taxonomy:**
350
+
351
+ | Issue Type | Category | Impact |
352
+ |------------|----------|--------|
353
+ | `reversed_ct_polarity` | Magnitude-affecting | Inverts sign on affected phase; invalidates power/energy magnitude |
354
+ | `ct_ratio_misconfiguration` | Magnitude-affecting | Scales measurements by wrong CT ratio |
355
+ | `tag_misconfiguration` | Magnitude-affecting | SCADA tag points to wrong register; reported values are incorrect |
356
+ | `phase_reference_misalignment*` | Magnitude-affecting | Voltage references misaligned across phases; distorts per-phase readings |
357
+
358
+ **Usage:** Overlay these events on energy time series to identify and exclude periods of known measurement invalidity. Join on `asset_id` and filter [fact_energy_15m](fact_energy_15m.md) rows where `time BETWEEN issue_start AND issue_end`.
359
+
360
+ ---
361
+
362
+ ---
363
+ type: Parquet
364
+ title: fact_energy_15m
365
+ description: Unpivoted 15-min energy measurements (3 signals x 4 phases per asset window)
366
+ resource: ./fact/fact_energy_15m.parquet
367
+ tags: [fact, energy, timeseries, 15min]
368
+ timestamp: 2024-12-31T07:30:00Z/2025-12-31T23:45:00Z
369
+ ---
370
+
371
+ # fact_energy_15m
372
+
373
+ Grain: one row per asset, signal, and 15-minute UTC window. The three source measures (`Energy_kWh_15m`, `Demand_kW`, `AvgPower_kW_15m`) x four phases (`L1`, `L2`, `L3`, `ALL`) are unpivoted so that each combination becomes a separate row with a single `value_float`.
374
+
375
+ | Column | Type | Description |
376
+ |--------|------|-------------|
377
+ | `asset_id` | VARCHAR | FK -> [dim_asset](dim_asset.md). Anonymised asset identifier |
378
+ | `signal_id` | INTEGER | FK -> [dim_signal_info](dim_signal_info.md). Identifies the signal (metric + phase) |
379
+ | `time` | TIMESTAMP | Start of 15-min aggregation window (UTC) |
380
+ | `value_float` | DOUBLE | Measured value. Unit and semantics determined by `signal_id` |
381
+ | `observation_window_id` | INTEGER | FK -> [dim_observation_window](dim_observation_window.md). Coverage profile for this window |
382
+
383
+ **Composite key:** (`asset_id`, `signal_id`, `time`)
384
+
385
+ **Row count:** 12,076,111
386
+
387
+ **Notes:**
388
+ - Active power is magnitude-only (clipped to >= 0) for consumer assets; signed for supply meters (`mi_a`, `mi_b`).
389
+ - Energy integration uses a forward-hold (piecewise-constant) model; no interpolation is applied.
390
+ - The `ALL` phase is a synthetic aggregate summing L1 + L2 + L3.
391
+ - To pivot back to wide format, join [dim_signal_info](dim_signal_info.md) and pivot on `signal_name` x `phase`.
dim/dim_asset.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0474d422ad117b39b251ac81165562529e67f70f31156e9ccf79d8436293574
3
+ size 2623
dim/dim_observation_window.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cdab0ed3a3aebfa4a6ad871ed0fa824b08bdcc8659420f4d88a21aacd288b23
3
+ size 14006
dim/dim_signal_info.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7ac757c2c1c50a0295eaea831d8c9cdfa8d41e212d1dacd49d13bb04b8a8144
3
+ size 1234
dim_asset.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ type: Parquet
3
+ title: dim_asset
4
+ description: Monitored asset metadata including meter type, communication protocol, and stream dates
5
+ resource: ./dim/dim_asset.parquet
6
+ tags: [dimension, asset, metadata]
7
+ timestamp: 2025-01-01T00:00:00Z/2025-12-31T23:59:00Z
8
+ ---
9
+
10
+ # dim_asset
11
+
12
+ One row per monitored asset. Source: `AssetList.csv`.
13
+
14
+ | Column | Type | Description |
15
+ |--------|------|-------------|
16
+ | `asset_id` | VARCHAR | PK. Anonymised asset identifier (e.g. `ahu_a`, `p_b`, `mi_a`) |
17
+ | `asset_type` | VARCHAR | Asset classification (e.g. `HVAC_AHU`, `Press_Main`, `Electrical_GridImport`) |
18
+ | `em_manufacturer` | VARCHAR | Energy meter manufacturer (`Weidmuller`, `Rayleigh`) |
19
+ | `em_model` | VARCHAR | Meter model (`EM220`, `RI-F200`, `RI-F400`) |
20
+ | `em_communication_protocol` | VARCHAR | Communication protocol (`modbus_tcp_ip`, `modbus_rtu`) |
21
+ | `em_acquisition_pathway` | VARCHAR | SCADA acquisition route (`direct_modbus_tcp`, `gateway_modbus_tcp_to_plc`, `gateway_modbus_rtu_to_plc`) |
22
+ | `stream_start_utc` | TIMESTAMP | First observation timestamp for this asset |
23
+ | `stream_end_utc` | TIMESTAMP | Last observation timestamp for this asset |
24
+ | `is_submeter` | BOOLEAN | `TRUE` for downstream consumer/distribution meters; `FALSE` for supply-level meters (`mi_a`, `mi_b`) |
25
+
26
+ **Row count:** 43 assets
27
+
28
+ **Asset type distribution:**
29
+
30
+ | Asset Type | Count |
31
+ |------------|-------|
32
+ | Press_Main | 9 |
33
+ | Utilities | 5 |
34
+ | ProcessMixing | 4 |
35
+ | Press_Drive | 4 |
36
+ | HVAC_AHU | 3 |
37
+ | Electrical_Distribution | 3 |
38
+ | Automation_Robot | 3 |
39
+ | CompressedAir | 2 |
40
+ | HVAC_AirExtraction | 2 |
41
+ | HVAC_HeatPump | 2 |
42
+ | Press_Heating | 2 |
43
+ | Automation_Handling | 1 |
44
+ | Electrical_GridImport | 1 |
45
+ | Electrical_PVGeneration | 1 |
46
+ | Press_IntegratedAutomationCell | 1 |
dim_observation_window.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ type: Parquet
3
+ title: dim_observation_window
4
+ description: Deduplicated per-window data coverage and reliability profiles
5
+ resource: ./dim/dim_observation_window.parquet
6
+ tags: [dimension, coverage, reliability, data-quality]
7
+ timestamp: 2024-12-31T07:30:00Z/2025-12-31T23:45:00Z
8
+ ---
9
+
10
+ # dim_observation_window
11
+
12
+ Deduplicated coverage and reliability profiles. Each unique combination of coverage metrics gets a surrogate key (`observation_window_id`) referenced by [fact_energy_15m](fact_energy_15m.md).
13
+
14
+ | Column | Type | Description |
15
+ |--------|------|-------------|
16
+ | `observation_window_id` | INTEGER | PK. Surrogate key |
17
+ | `minutes` | DOUBLE | Minutes of observed data in window (<= 15.0) |
18
+ | `seconds_observed` | DOUBLE | Total seconds with telemetry coverage (capped at 900) |
19
+ | `data_coverage_pct` | DOUBLE | Observed coverage as percentage: 100 x `seconds_observed` / 900 |
20
+ | `seconds_reliable` | DOUBLE | Seconds from Silver rows passing all reliability checks (capped at 900) |
21
+ | `reliable_coverage_pct` | DOUBLE | Reliable coverage as percentage: 100 x `seconds_reliable` / 900 |
22
+ | `is_reliable_window` | INTEGER | Binary flag: `1` if `seconds_reliable` >= 720 (80% of 900 s), else `0` |
23
+
24
+ **Row count:** 1,554 (deduplicated from 4,103,703 source rows)
dim_signal_info.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ type: Parquet
3
+ title: dim_signal_info
4
+ description: Signal catalogue mapping signal_id to metric name, electrical phase, and unit
5
+ resource: ./dim/dim_signal_info.parquet
6
+ tags: [dimension, signal, catalogue]
7
+ timestamp: 2026-07-22T00:00:00Z
8
+ ---
9
+
10
+ # dim_signal_info
11
+
12
+ One row per (signal name, phase) combination. Encodes what each `value_float` in [fact_energy_15m](fact_energy_15m.md) represents.
13
+
14
+ | Column | Type | Description |
15
+ |--------|------|-------------|
16
+ | `signal_id` | INTEGER | PK. Surrogate key |
17
+ | `signal_name` | VARCHAR | Metric name: `energy_kwh_15m`, `demand_kw`, `avg_power_kw_15m` |
18
+ | `phase` | VARCHAR | Electrical phase: `L1`, `L2`, `L3`, or `ALL` (synthetic total) |
19
+ | `unit` | VARCHAR | Physical unit of the measurement value |
20
+ | `description` | VARCHAR | Human-readable description of the signal |
21
+
22
+ **Row count:** 12 (3 signals x 4 phases)
23
+
24
+ **Signal catalogue:**
25
+
26
+ | signal_id | signal_name | phase | unit | description |
27
+ |-----------|-------------|-------|------|-------------|
28
+ | 1 | `energy_kwh_15m` | L1 | kWh | Energy consumed during window (phase L1) |
29
+ | 2 | `energy_kwh_15m` | L2 | kWh | Energy consumed during window (phase L2) |
30
+ | 3 | `energy_kwh_15m` | L3 | kWh | Energy consumed during window (phase L3) |
31
+ | 4 | `energy_kwh_15m` | ALL | kWh | Energy consumed during window (all phases) |
32
+ | 5 | `demand_kw` | L1 | kW | Average demand over window (phase L1) |
33
+ | 6 | `demand_kw` | L2 | kW | Average demand over window (phase L2) |
34
+ | 7 | `demand_kw` | L3 | kW | Average demand over window (phase L3) |
35
+ | 8 | `demand_kw` | ALL | kW | Average demand over window (all phases) |
36
+ | 9 | `avg_power_kw_15m` | L1 | kW | Reliability-weighted mean power (phase L1) |
37
+ | 10 | `avg_power_kw_15m` | L2 | kW | Reliability-weighted mean power (phase L2) |
38
+ | 11 | `avg_power_kw_15m` | L3 | kW | Reliability-weighted mean power (phase L3) |
39
+ | 12 | `avg_power_kw_15m` | ALL | kW | Reliability-weighted mean power (all phases) |
fact/fact_data_quality_event.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:942da42a7d46efcb622bd39a33e6d3e4eeb116c06e548adc18294e51b31097ec
3
+ size 2444
fact/fact_energy_15m.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4946cd9909cbce5d215e261ce27a702b131b6337dfac69bae7ee9ff4148d19a
3
+ size 79461031
fact_data_quality_event.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ type: Parquet
3
+ title: fact_data_quality_event
4
+ description: Documented instrumentation fault events with time-bounded issue periods per asset
5
+ resource: ./fact/fact_data_quality_event.parquet
6
+ tags: [fact, data-quality, instrumentation, faults]
7
+ timestamp: 2025-01-01T00:00:00Z/2025-12-31T23:59:00Z
8
+ ---
9
+
10
+ # fact_data_quality_event
11
+
12
+ One row per documented instrumentation issue. Source: `meter_data_quality_log.csv`. These are time-bounded events recording known configuration or hardware faults that affect measurement validity.
13
+
14
+ | Column | Type | Description |
15
+ |--------|------|-------------|
16
+ | `event_id` | INTEGER | PK. Surrogate key (auto-increment) |
17
+ | `asset_id` | VARCHAR | FK -> [dim_asset](dim_asset.md). Affected asset |
18
+ | `issue_type` | VARCHAR | Fault category (see taxonomy below) |
19
+ | `issue_detail` | VARCHAR | Free-text description of the specific fault |
20
+ | `asset_stream_start` | TIMESTAMP | Start of the asset's monitoring stream |
21
+ | `asset_stream_end` | TIMESTAMP | End of the asset's monitoring stream |
22
+ | `issue_start` | TIMESTAMP | When the issue began affecting measurements |
23
+ | `issue_end` | TIMESTAMP | When the issue was rectified |
24
+ | `issue_persisted_to_stream_end` | BOOLEAN | `TRUE` if the fault was never resolved within the observation period |
25
+
26
+ **Row count:** 24 documented events across 18 assets
27
+
28
+ **Issue type taxonomy:**
29
+
30
+ | Issue Type | Category | Impact |
31
+ |------------|----------|--------|
32
+ | `reversed_ct_polarity` | Magnitude-affecting | Inverts sign on affected phase; invalidates power/energy magnitude |
33
+ | `ct_ratio_misconfiguration` | Magnitude-affecting | Scales measurements by wrong CT ratio |
34
+ | `tag_misconfiguration` | Magnitude-affecting | SCADA tag points to wrong register; reported values are incorrect |
35
+ | `phase_reference_misalignment*` | Magnitude-affecting | Voltage references misaligned across phases; distorts per-phase readings |
36
+
37
+ **Usage:** Overlay these events on energy time series to identify and exclude periods of known measurement invalidity. Join on `asset_id` and filter [fact_energy_15m](fact_energy_15m.md) rows where `time BETWEEN issue_start AND issue_end`.
fact_energy_15m.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ type: Parquet
3
+ title: fact_energy_15m
4
+ description: Unpivoted 15-min energy measurements (3 signals x 4 phases per asset window)
5
+ resource: ./fact/fact_energy_15m.parquet
6
+ tags: [fact, energy, timeseries, 15min]
7
+ timestamp: 2024-12-31T07:30:00Z/2025-12-31T23:45:00Z
8
+ ---
9
+
10
+ # fact_energy_15m
11
+
12
+ Grain: one row per asset, signal, and 15-minute UTC window. The three source measures (`Energy_kWh_15m`, `Demand_kW`, `AvgPower_kW_15m`) x four phases (`L1`, `L2`, `L3`, `ALL`) are unpivoted so that each combination becomes a separate row with a single `value_float`.
13
+
14
+ | Column | Type | Description |
15
+ |--------|------|-------------|
16
+ | `asset_id` | VARCHAR | FK -> [dim_asset](dim_asset.md). Anonymised asset identifier |
17
+ | `signal_id` | INTEGER | FK -> [dim_signal_info](dim_signal_info.md). Identifies the signal (metric + phase) |
18
+ | `time` | TIMESTAMP | Start of 15-min aggregation window (UTC) |
19
+ | `value_float` | DOUBLE | Measured value. Unit and semantics determined by `signal_id` |
20
+ | `observation_window_id` | INTEGER | FK -> [dim_observation_window](dim_observation_window.md). Coverage profile for this window |
21
+
22
+ **Composite key:** (`asset_id`, `signal_id`, `time`)
23
+
24
+ **Row count:** 12,076,111
25
+
26
+ **Notes:**
27
+ - Active power is magnitude-only (clipped to >= 0) for consumer assets; signed for supply meters (`mi_a`, `mi_b`).
28
+ - Energy integration uses a forward-hold (piecewise-constant) model; no interpolation is applied.
29
+ - The `ALL` phase is a synthetic aggregate summing L1 + L2 + L3.
30
+ - To pivot back to wide format, join [dim_signal_info](dim_signal_info.md) and pivot on `signal_name` x `phase`.