wangdx25 commited on
Commit
6f15bcf
·
verified ·
1 Parent(s): fe78eaf

Add TsFile (converted from BAIGroup/OlmoEarth-v1-Potomac-Sewage-Spill-2026)

Browse files
Files changed (2) hide show
  1. README.md +99 -0
  2. potomac_flow_daily.tsfile +0 -0
README.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - time-series-forecasting
5
+ - tabular-regression
6
+ language:
7
+ - en
8
+ tags:
9
+ - tsfile
10
+ - timeseries
11
+ - time-series
12
+ - format:tsfile
13
+ - geospatial
14
+ - olmoearth
15
+ - chesapeake-bay
16
+ - potomac-river
17
+ - water-quality
18
+ - sewage-spill
19
+ - event-tracking
20
+ - usgs
21
+ pretty_name: Potomac Sewage Spill Reference Dataset (2026) (TsFile)
22
+ size_categories:
23
+ - n<1K
24
+ configs:
25
+ - config_name: default
26
+ data_files:
27
+ - split: train
28
+ path: potomac_flow_daily.tsfile
29
+ ---
30
+
31
+ # Potomac Sewage Spill Reference Dataset (2026) (TsFile)
32
+
33
+ Apache TsFile version of [`BAIGroup/OlmoEarth-v1-Potomac-Sewage-Spill-2026`](https://huggingface.co/datasets/BAIGroup/OlmoEarth-v1-Potomac-Sewage-Spill-2026).
34
+
35
+ ## Overview
36
+
37
+ Validated, time-aligned reference dataset supporting GeoAI tracking of the **2026 Potomac River sewage spill** (Glen Echo, MD — 240–300 million gallons released from the 72-inch Potomac Interceptor on January 19, 2026). The original repository provides an event timeline, hydrologic context, monitoring station locations, and AOI corridor polygons for AI2's downstream Sentinel-1/2 plume detection.
38
+
39
+ This TsFile copy contains the **tabular daily streamflow time series** only — the part of the repository that is a time series:
40
+
41
+ - **8 USGS gauges** documented along the corridor; **846 daily flow records**, **December 2025 – March 2026**, daily granularity. Seven gauges carry data; site `01651000` (anacostia_lower, `anacostia_lower` role) had no NWIS data in the event window and therefore contributes no rows.
42
+ - **Source:** USGS NWIS daily values service, parameter `00060` (discharge, cfs), statistic `00003`.
43
+ - Each record is one gauge-day, phase-tagged for the four-phase spill chronology: `pre_spill_baseline` (2025-12-01 → 2026-01-18), `active_release` (2026-01-19 → 2026-01-24), `bypass_period` (2026-01-25 → 2026-03-14) and `post_recovery` (2026-03-15 → 2026-03-31).
44
+ - This is an event reference / validation dataset, not a training set: 32 station-phase reference points are far below any fine-tuning threshold. BAI prepares time-aligned reference data; the OlmoEarth team performs the Sentinel-1/2 plume detection.
45
+
46
+ ## Schema (TsFile structure)
47
+
48
+ - **Time** (INT64, milliseconds) — daily timestamp parsed from the source `date` column (`YYYY-MM-DD`), i.e. `00:00:00 UTC` of each day.
49
+ - **site_no** (TAG) — USGS station number, e.g. query one gauge with `WHERE site_no='01646500'`.
50
+ - **discharge_cfs** (FIELD, DOUBLE) — daily mean streamflow in cubic feet per second.
51
+ - **role** (FIELD, STRING) — corridor role of the gauge (e.g. `near_spill`, `tidal_dc`, `lower_potomac`).
52
+ - **phase** (FIELD, STRING) — spill phase for that gauge-day.
53
+ - **name** (FIELD, STRING) — human-readable USGS station name.
54
+ - **latitude** (FIELD, DOUBLE), **longitude** (FIELD, DOUBLE) — gauge coordinates.
55
+
56
+ `role`, `name`, `latitude` and `longitude` are constant per station and are therefore repeated on every row; they are kept as FIELD columns so no source column is dropped. They can simply be ignored when only the flow measurements are needed.
57
+
58
+ Type mapping: the source `discharge_cfs`, `latitude` and `longitude` are `double` and stay `DOUBLE`; the remaining non-time columns are strings and stay `STRING`.
59
+
60
+ ## Usage
61
+
62
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
63
+
64
+ ```python
65
+ from pathlib import Path
66
+ from tsfile import TsFileReader
67
+
68
+ path = Path("potomac_flow_daily.tsfile")
69
+ with TsFileReader(str(path)) as reader:
70
+ schemas = reader.get_all_table_schemas()
71
+ print("tables:", list(schemas))
72
+ table_name = next(iter(schemas))
73
+ table = schemas[table_name]
74
+ columns = [column.get_column_name() for column in table.get_columns()]
75
+ print("columns:", columns)
76
+ field_names = [
77
+ column.get_column_name()
78
+ for column in table.get_columns()
79
+ if column.get_column_name() not in {"Time", "time"}
80
+ ]
81
+ if field_names:
82
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
83
+ batch = result.read_arrow_batch()
84
+ if batch is not None:
85
+ print(batch.to_pandas().head())
86
+ ```
87
+
88
+ ## Source & license
89
+
90
+ - Original dataset: <https://huggingface.co/datasets/BAIGroup/OlmoEarth-v1-Potomac-Sewage-Spill-2026>
91
+ - Author / publisher: Ziming Qi and BAI Group
92
+ - Paper: none
93
+ - License: Apache-2.0 (USGS source data and agency reports are public domain)
94
+
95
+ ### Conversion notes
96
+
97
+ - **One source file only.** `data.parquet` (846 rows) and `tabular/potomac_flow_daily.csv` are documented mirrors of the same daily flow table. Only `data.parquet` was converted; converting both would duplicate every row. The parquet was preferred because it preserves `site_no` as a zero-padded string (`01638500`), whereas the CSV parses it as an integer and drops the leading zero.
98
+ - **Not time series / not included.** The geospatial assets (`.geojson` files such as `waterbodies.geojson`, `monitoring_stations.geojson`, `spill_metadata.geojson`, `event_log.geojson`), `timeline.json`, `event_log.csv`, the CBP manifests, `reference_event_logs/`, docs and `studio/`/`rslearn/` assets are not time series and are **not** part of this TsFile copy. The original dataset remains available for those geospatial and event-narrative assets.
99
+ - **Missing values.** 18 of the 846 `discharge_cfs` values are null in the source (real gaps in the USGS daily record); they are preserved as nulls and were not imputed or dropped.
potomac_flow_daily.tsfile ADDED
Binary file (13 kB). View file