wangdx25 commited on
Commit
e240e1e
·
verified ·
1 Parent(s): cdc3702

Add TsFile (converted from xpertsystems/oil034-sample)

Browse files
.gitattributes CHANGED
@@ -58,3 +58,10 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ carbon_intensity.tsfile filter=lfs diff=lfs merge=lfs -text
62
+ cems_telemetry.tsfile filter=lfs diff=lfs merge=lfs -text
63
+ combustion_emissions.tsfile filter=lfs diff=lfs merge=lfs -text
64
+ flaring_operations.tsfile filter=lfs diff=lfs merge=lfs -text
65
+ fugitive_emissions.tsfile filter=lfs diff=lfs merge=lfs -text
66
+ methane_leakage.tsfile filter=lfs diff=lfs merge=lfs -text
67
+ weather_dispersion.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - tabular-regression
6
+ - time-series-forecasting
7
+ language:
8
+ - en
9
+ tags:
10
+ - tsfile
11
+ - timeseries
12
+ - time-series
13
+ - synthetic
14
+ - oil-and-gas
15
+ - emissions
16
+ - esg
17
+ - methane
18
+ - ghg-protocol
19
+ - epa-subpart-w
20
+ - ogmp
21
+ - carbon-intensity
22
+ - ccus
23
+ - satellite-detection
24
+ - xpertsystems
25
+ - format:tsfile
26
+ pretty_name: OIL-034 — Synthetic Emissions Dataset (Sample) (TsFile)
27
+ size_categories:
28
+ - 100K<n<1M
29
+ configs:
30
+ - config_name: default
31
+ data_files:
32
+ - split: carbon_intensity
33
+ path: carbon_intensity.tsfile
34
+ - split: cems_telemetry
35
+ path: cems_telemetry.tsfile
36
+ - split: combustion_emissions
37
+ path: combustion_emissions.tsfile
38
+ - split: facility_master
39
+ path: facility_master.tsfile
40
+ - split: flaring_operations
41
+ path: flaring_operations.tsfile
42
+ - split: fugitive_emissions
43
+ path: fugitive_emissions.tsfile
44
+ - split: methane_leakage
45
+ path: methane_leakage.tsfile
46
+ - split: regulatory_reporting
47
+ path: regulatory_reporting.tsfile
48
+ - split: satellite_correlations
49
+ path: satellite_correlations.tsfile
50
+ - split: sustainability_labels
51
+ path: sustainability_labels.tsfile
52
+ - split: venting_operations
53
+ path: venting_operations.tsfile
54
+ - split: weather_dispersion
55
+ path: weather_dispersion.tsfile
56
+ ---
57
+
58
+ # OIL-034 — Synthetic Emissions Dataset (Sample) (TsFile)
59
+
60
+ Apache TsFile version of [`xpertsystems/oil034-sample`](https://huggingface.co/datasets/xpertsystems/oil034-sample).
61
+
62
+ ## Overview
63
+
64
+ A free, schema-identical preview of XpertSystems.ai's enterprise emissions dataset for **CO2/methane emission inventory ML, super-emitter detection, flare combustion efficiency optimization, CCUS performance modeling, satellite plume correlation, regulatory reporting analytics, and carbon intensity grading**. The sample covers **110 facilities** across **10 real production regions** (Permian Basin, Eagle Ford, Bakken, Marcellus, Haynesville, Gulf Coast, North Sea, Western Canada, Middle East, West Africa) and **10 asset types** (upstream production / compressor station / gas processing / pipeline terminal / LNG terminal / refinery / tank farm / offshore platform / CCUS facility / hydrogen unit) over **45 days** with **133,980 rows** across **12 tables**.
65
+
66
+ - **Tables:** 12 TsFile table(s), 133,980 rows in total.
67
+ - `carbon_intensity`: 9,900 rows, 2024-01-01 00:00:00 → 2024-02-14 12:00:00.109000 (UTC)
68
+ - `cems_telemetry`: 39,600 rows, 2024-01-01 00:00:00 → 2024-02-14 12:00:00.439000 (UTC)
69
+ - `combustion_emissions`: 9,900 rows, 2024-01-01 00:00:00 → 2024-02-14 12:00:00.109000 (UTC)
70
+ - `facility_master`: 110 rows, 1970-01-01 00:00:00 → 1970-01-01 00:00:00.109000 (UTC)
71
+ - `flaring_operations`: 9,900 rows, 2024-01-01 00:00:00 → 2024-02-14 12:00:00.109000 (UTC)
72
+ - `fugitive_emissions`: 19,800 rows, 2024-01-01 00:00:00 → 2024-02-14 12:00:00.219000 (UTC)
73
+ - `methane_leakage`: 9,900 rows, 2024-01-01 00:00:00 → 2024-02-14 12:00:00.109000 (UTC)
74
+ - `regulatory_reporting`: 220 rows, 2024-01-01 00:00:00 → 2024-02-01 00:00:00.109000 (UTC)
75
+ - `satellite_correlations`: 4,950 rows, 2024-01-01 00:00:00 → 2024-02-14 00:00:00.109000 (UTC)
76
+ - `sustainability_labels`: 9,900 rows, 2024-01-01 00:00:00 → 2024-02-14 12:00:00.109000 (UTC)
77
+ - `venting_operations`: 9,900 rows, 2024-01-01 00:00:00 → 2024-02-14 12:00:00.109000 (UTC)
78
+ - `weather_dispersion`: 9,900 rows, 2024-01-01 00:00:00 → 2024-02-14 12:00:00.109000 (UTC)
79
+
80
+ ## Schema (TsFile structure)
81
+
82
+ ### `carbon_intensity.tsfile`
83
+
84
+ - **Time** (INT64, milliseconds) — the source `timestamp` column.
85
+ - **TAG**: none — the table is stored as a single device.
86
+ - **FIELD** (8): `carbon_intensity_id` (string), `facility_id` (string), `throughput_boe` (double), `scope1_co2e_tons` (double), `scope2_co2e_tons` (double), `scope3_transport_co2e_tons` (double), `co2e_per_boe` (double), `net_zero_adjustment_tons` (double)
87
+
88
+ ### `cems_telemetry.tsfile`
89
+
90
+ - **Time** (INT64, milliseconds) — the source `timestamp` column.
91
+ - **TAG**: none — the table is stored as a single device.
92
+ - **FIELD** (9): `telemetry_id` (string), `facility_id` (string), `sensor_id` (string), `sensor_type` (string), `emission_ppm` (double), `telemetry_latency_ms` (int64), `calibration_drift_pct` (double), `signal_quality_score` (double), `anomaly_flag` (int64)
93
+
94
+ ### `combustion_emissions.tsfile`
95
+
96
+ - **Time** (INT64, milliseconds) — the source `timestamp` column.
97
+ - **TAG**: none — the table is stored as a single device.
98
+ - **FIELD** (9): `record_id` (string), `facility_id` (string), `fuel_type` (string), `fuel_consumed_mmbtu` (double), `gross_co2_tons` (double), `ccus_capture_efficiency_pct` (double), `net_co2_tons` (double), `startup_shutdown_flag` (int64), `combustion_unit_load_pct` (double)
99
+
100
+ ### `facility_master.tsfile`
101
+
102
+ - **Time** (INT64, milliseconds) — synthetic row index over the stable source order; this table has no clock column.
103
+ - **TAG**: none — the table is stored as a single device.
104
+ - **FIELD** (20): `facility_id` (string), `facility_name` (string), `asset_type` (string), `region` (string), `country_group` (string), `latitude` (double), `longitude` (double), `commission_year` (int64), `facility_age_years` (int64), `throughput_boe_d` (double), `gas_fraction_pct` (double), `equipment_count` (int64), `flare_count` (int64), `cems_sensor_count` (int64), `baseline_methane_intensity_kg_per_boe` (double), `baseline_co2_intensity_ton_per_boe` (double), `inspection_program` (string), `has_ccus` (int64), `ccus_capture_capacity_tpd` (double), `regulatory_framework` (string)
105
+
106
+ ### `flaring_operations.tsfile`
107
+
108
+ - **Time** (INT64, milliseconds) — the source `timestamp` column.
109
+ - **TAG**: none — the table is stored as a single device.
110
+ - **FIELD** (9): `flare_id` (string), `facility_id` (string), `flare_active_flag` (int64), `flare_gas_mcf` (double), `combustion_efficiency_pct` (double), `methane_slip_kg` (double), `flare_co2_tons` (double), `smoke_event_flag` (int64), `flare_stability_index` (double)
111
+
112
+ ### `fugitive_emissions.tsfile`
113
+
114
+ - **Time** (INT64, milliseconds) — the source `timestamp` column.
115
+ - **TAG**: none — the table is stored as a single device.
116
+ - **FIELD** (8): `fugitive_id` (string), `facility_id` (string), `equipment_id` (string), `equipment_type` (string), `equipment_age_years` (double), `emission_rate_kg_hr` (double), `maintenance_due_flag` (int64), `inspection_gap_days` (int64)
117
+
118
+ ### `methane_leakage.tsfile`
119
+
120
+ - **Time** (INT64, milliseconds) — the source `timestamp` column.
121
+ - **TAG**: none — the table is stored as a single device.
122
+ - **FIELD** (10): `leak_id` (string), `facility_id` (string), `source_type` (string), `methane_kg_hr` (double), `methane_tons_co2e` (double), `estimated_leak_duration_hr` (double), `detection_method` (string), `detected_flag` (int64), `rare_event_flag` (int64), `repair_status` (string)
123
+
124
+ ### `regulatory_reporting.tsfile`
125
+
126
+ - **Time** (INT64, milliseconds) — the source `reporting_period` column.
127
+ - **TAG**: none — the table is stored as a single device.
128
+ - **FIELD** (9): `report_id` (string), `facility_id` (string), `framework` (string), `submitted_flag` (int64), `reporting_latency_days` (int64), `estimated_uncertainty_pct` (double), `third_party_verified_flag` (int64), `exceedance_disclosed_flag` (int64), `inventory_method` (string)
129
+
130
+ ### `satellite_correlations.tsfile`
131
+
132
+ - **Time** (INT64, milliseconds) — the source `timestamp` column.
133
+ - **TAG**: none — the table is stored as a single device.
134
+ - **FIELD** (8): `satellite_obs_id` (string), `facility_id` (string), `satellite_provider` (string), `plume_detected_flag` (int64), `estimated_methane_kg_hr` (double), `plume_match_score` (double), `cloud_cover_pct` (double), `wind_screen_pass_flag` (int64)
135
+
136
+ ### `sustainability_labels.tsfile`
137
+
138
+ - **Time** (INT64, milliseconds) — the source `timestamp` column.
139
+ - **TAG**: none — the table is stored as a single device.
140
+ - **FIELD** (7): `label_id` (string), `facility_id` (string), `emissions_risk_score` (double), `methane_super_emitter_flag` (int64), `regulatory_exceedance_flag` (int64), `carbon_intensity_grade` (string), `recommended_action` (string)
141
+
142
+ ### `venting_operations.tsfile`
143
+
144
+ - **Time** (INT64, milliseconds) — the source `timestamp` column.
145
+ - **TAG**: none — the table is stored as a single device.
146
+ - **FIELD** (7): `vent_id` (string), `facility_id` (string), `vent_event_flag` (int64), `release_volume_mcf` (double), `methane_fraction_pct` (double), `vent_reason` (string), `estimated_ch4_kg` (double)
147
+
148
+ ### `weather_dispersion.tsfile`
149
+
150
+ - **Time** (INT64, milliseconds) — the source `timestamp` column.
151
+ - **TAG**: none — the table is stored as a single device.
152
+ - **FIELD** (9): `weather_id` (string), `facility_id` (string), `ambient_temp_c` (double), `wind_speed_mps` (double), `wind_direction_deg` (double), `humidity_pct` (double), `atmospheric_stability_class` (string), `thermal_inversion_flag` (int64), `plume_dispersion_index` (double)
153
+
154
+ ## Conversion notes
155
+
156
+ - One TsFile per source CSV (12 tables); each table is stored as a single device, so the rig / well / tank / equipment / sensor identifiers stay ordinary FIELDs.
157
+ - Time = the table's own clock column as INT64 milliseconds (event timestamps, sample or inspection dates, and daily record dates). The clock columns used here are `reporting_period`, `timestamp`.
158
+ - Tables with no clock column (`facility_master`) use a synthetic row index over their stable source order as Time.
159
+ - No column is dropped. Rows that share a timestamp are ordered by a 1 ms step in stable source order, so daily tables keep their exact calendar day.
160
+
161
+ ## Usage
162
+
163
+ > **Read this dataset with the Java SDK.** It is written with the `zstd` compressor. The Apache TsFile Java SDK reads every compressor, but the Python SDK (`pip install tsfile`) implements only `UNCOMPRESSED`, `SNAPPY`, `GZIP` and `LZ4`; opening this file with it yields no rows.
164
+
165
+ Read a converted file with the Apache TsFile Java SDK (`org.apache.tsfile:tsfile`):
166
+
167
+ ```java
168
+ import org.apache.tsfile.file.metadata.IDeviceID;
169
+ import org.apache.tsfile.read.TsFileReader;
170
+ import org.apache.tsfile.read.TsFileSequenceReader;
171
+ import org.apache.tsfile.read.common.Path;
172
+ import org.apache.tsfile.read.expression.QueryExpression;
173
+ import org.apache.tsfile.read.query.dataset.QueryDataSet;
174
+ import org.apache.tsfile.write.schema.MeasurementSchema;
175
+
176
+ import java.util.ArrayList;
177
+ import java.util.List;
178
+
179
+ String path = "carbon_intensity.tsfile";
180
+ try (TsFileSequenceReader sequenceReader = new TsFileSequenceReader(path);
181
+ TsFileReader reader = new TsFileReader(sequenceReader)) {
182
+ // Devices are enumerated as IDeviceID objects. Tables with TAG columns
183
+ // have multi-segment device ids that cannot be rebuilt from their string
184
+ // form, so always use getAllDevices() rather than getAllDeviceIds().
185
+ for (IDeviceID device : sequenceReader.getAllDevices()) {
186
+ List<Path> paths = new ArrayList<>();
187
+ for (MeasurementSchema schema : reader.getMeasurement(device)) {
188
+ String name = schema.getMeasurementName();
189
+ if (name != null && !name.isEmpty() && !name.equalsIgnoreCase("Time")) {
190
+ paths.add(new Path(device, name, true));
191
+ }
192
+ }
193
+ QueryDataSet dataSet = reader.query(QueryExpression.create(paths, null));
194
+ while (dataSet.hasNext()) {
195
+ System.out.println(dataSet.next());
196
+ }
197
+ }
198
+ }
199
+ ```
200
+
201
+ ## Source & license
202
+
203
+ - Original dataset: [`xpertsystems/oil034-sample`](https://huggingface.co/datasets/xpertsystems/oil034-sample)
204
+ - Source card title: OIL-034 — Synthetic Emissions Dataset (Sample)
205
+ - License: cc-by-nc-4.0 (as declared by the original dataset).
carbon_intensity.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2960f3624074968799355627e64f7790b77babd9d719f39beb8f68adcb9cc7df
3
+ size 385415
cems_telemetry.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c3c3d1f8c2cdcc5faf2e95e899d17cb370661b350a67296789579d1bf75ae31
3
+ size 910502
combustion_emissions.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05a81924080d4fbb2c96ac2b1905ecbc7ab534fc4efaf7221ec5a56d0e3ba843
3
+ size 282913
facility_master.tsfile ADDED
Binary file (10.9 kB). View file
 
flaring_operations.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a20e5cebc455992f0e2ca87e390442d353f9840c10e2a4f2bfdb22f490705e21
3
+ size 128262
fugitive_emissions.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5eac7f598929f389f87bf8b77f2c5ad307b7457c541937a4a79eeb44a25085b7
3
+ size 322790
methane_leakage.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79522c2b75da38ebe49997ef53d84a40461bcebb6e4af6c0a4cc15ebfc5fd7ad
3
+ size 175364
regulatory_reporting.tsfile ADDED
Binary file (4.8 kB). View file
 
satellite_correlations.tsfile ADDED
Binary file (97 kB). View file
 
sustainability_labels.tsfile ADDED
Binary file (80.4 kB). View file
 
venting_operations.tsfile ADDED
Binary file (61.7 kB). View file
 
weather_dispersion.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c94febb2c780182ad87a1398667804d448141393e378bf301114fd6f55307f0
3
+ size 300933