smilegeng commited on
Commit
521e88e
·
verified ·
1 Parent(s): f7cb980

Add TsFile (converted from juliensimon/geomagnetic-kp-index)

Browse files
Files changed (2) hide show
  1. README.md +57 -0
  2. geomagnetic_kp_index.tsfile +0 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ pretty_name: "Geomagnetic Kp Index (3-Hourly) — TsFile"
4
+ tags:
5
+ - space-weather
6
+ - kp-index
7
+ - geomagnetic
8
+ - noaa
9
+ - time-series
10
+ - tsfile
11
+ ---
12
+
13
+ # Geomagnetic Kp Index (3-Hourly) — TsFile
14
+
15
+ 从 HuggingFace 数据集 [`juliensimon/geomagnetic-kp-index`](https://huggingface.co/datasets/juliensimon/geomagnetic-kp-index) 转换为 **Apache TsFile** 格式。
16
+
17
+ > 原始数据来自 **NOAA SWPC**(Space Weather Prediction Center),为 3 小时粒度的行星地磁
18
+ > Kp 指数(衡量全球地磁扰动的 0–9 准对数标度)。
19
+
20
+ ## 来源
21
+
22
+ - **原始数据集**:[juliensimon/geomagnetic-kp-index](https://huggingface.co/datasets/juliensimon/geomagnetic-kp-index)
23
+ - **原作者**:Julien Simon (juliensimon)
24
+ - **数据源头**:NOAA SWPC
25
+ - **许可证**:CC-BY-4.0(以原数据集为准)
26
+
27
+ ## 数据内容
28
+
29
+ 686 行 × 5 列,时间范围 **2026-03-17 → 2026-06-10**(UTC),每天 8 个读数
30
+ (00 / 03 / 06 / 09 / 12 / 15 / 18 / 21 UT)。单设备、单条时间序列。
31
+
32
+ | 列 | TsFile 类型 | 角色 | 说明 |
33
+ |---|---|---|---|
34
+ | `Time` | INT64 (ms) | 时间列 | 由原 `datetime`(UTC 时间戳)转为毫秒 |
35
+ | `kp_value` | DOUBLE | FIELD | Kp 指数 0.0–9.0;≥5 表示地磁暴 |
36
+ | `ap_running` | INT64 | FIELD | 24 小时滚动 ap 均值(线性标度,nT) |
37
+ | `station_count` | INT64 | FIELD | 贡献观测台站数(最多 13) |
38
+ | `storm_level` | STRING | FIELD | NOAA G 级标签:quiet / G1-minor / G2-moderate / G3-strong / … |
39
+
40
+ ## 转换说明
41
+
42
+ - **转换路径**:script(自定义转换器 `scripts/converters/geomagnetic_kp_index.py`)
43
+ - **时间精度**:ms
44
+ - **未声明 TAG**:本数据集是单设备宽表,所有测量列均为 FIELD。
45
+ - **不丢弃任何列**:原始 5 列全部保留(`datetime` → `Time`,其余 4 列原样保留)。
46
+ - 原始数据无缺失值;时间序列严格递增、无重复时间戳。
47
+ - 读回校验:TsFile 读回 686 行,与源完全一致。
48
+
49
+ ## 用法
50
+
51
+ ```python
52
+ from tsfile import TsFileReader
53
+
54
+ reader = TsFileReader("geomagnetic_kp_index.tsfile")
55
+ for name, schema in reader.get_all_table_schemas().items():
56
+ print(name, [c.get_column_name() for c in schema.get_columns()])
57
+ ```
geomagnetic_kp_index.tsfile ADDED
Binary file (22.1 kB). View file