deepguess commited on
Commit
2a26e57
·
verified ·
1 Parent(s): 99f014a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +33 -16
README.md CHANGED
@@ -20,15 +20,16 @@ pretty_name: "TorNet-Temporal: Temporal Dual-Pol NEXRAD Radar for Tornado Detect
20
 
21
  # TorNet-Temporal: Temporal Dual-Pol NEXRAD Radar for Tornado Detection
22
 
23
- A large-scale dataset of storm-centered NEXRAD WSR-88D radar sequences for tornado detection and prediction, featuring **24-channel dual-polarimetric** data across **12 temporal frames**.
24
 
25
  ## Dataset Summary
26
 
27
- - **24,861 storm events** from NEXRAD Level-II radar archives (2003-2023)
28
- - **12 consecutive radar scans** per event (~4-5 min cadence, ~1 hour total)
29
  - **24 channels**: 6 dual-pol radar products x 4 elevation angles
30
  - **128x128 spatial grid** at 1km resolution, storm-centered
31
- - **3 categories**: TOR (tornado, 7,301), WRN (tornado-warned but no tornado, 3,814), NUL (null/no severe, 13,746)
 
32
 
33
  ## Data Format
34
 
@@ -36,8 +37,8 @@ Each event is stored as a compressed NumPy archive (`sequence.npz`) containing:
36
 
37
  | Key | Shape | Type | Description |
38
  |-----|-------|------|-------------|
39
- | `data` | (12, 24, 128, 128) | float32 | Radar volume sequence |
40
- | `scan_times` | (12,) | str | UTC timestamps per frame |
41
  | `center_time` | scalar | str | Event center time |
42
  | `lat` | scalar | float64 | Storm center latitude |
43
  | `lon` | scalar | float64 | Storm center longitude |
@@ -67,15 +68,18 @@ The 24 channels represent 6 dual-polarimetric radar products at 4 elevation angl
67
 
68
  ## Recommended Splits
69
 
70
- Year-based splitting prevents data leakage from correlated storm environments:
71
 
72
- | Split | Years | Events | Purpose |
73
- |-------|-------|--------|---------|
74
- | Train | 2008-2021 | ~19,061 | Model training |
75
- | Validation | 2022 | ~2,117 | Hyperparameter tuning |
76
- | Test | 2023 | ~3,685 | Final evaluation |
77
 
78
- **Note**: Pre-2008 data may have quality issues (constant fill values). We recommend filtering by standard deviation threshold.
 
 
 
 
79
 
80
  ## Usage
81
 
@@ -86,12 +90,17 @@ from pathlib import Path
86
 
87
  # Load a single event
88
  event = np.load("tornet_1000855_TOR/sequence.npz")
89
- data = event["data"] # (12, 24, 128, 128)
90
  label = int(event["label"]) # 1 for tornado
91
  category = str(event["category"]) # "TOR"
 
92
 
93
- # Select 8 consecutive frames for model input
94
- frames = data[2:10] # (8, 24, 128, 128)
 
 
 
 
95
 
96
  # Convert to PyTorch tensor: (C, T, H, W) for 3D CNN
97
  tensor = torch.from_numpy(frames).float() # (8, 24, 128, 128)
@@ -111,6 +120,14 @@ Using dual-head architecture (detection + prediction heads) on this dataset:
111
 
112
  Temporal context (8 frames vs 1 frame) provides a significant boost, especially for detection (+0.049 AUC).
113
 
 
 
 
 
 
 
 
 
114
  ## Data Source
115
 
116
  Raw radar data sourced from the [Unidata NEXRAD Level-II Archive](https://www.unidata.ucar.edu/data/radar.html) on AWS S3 (`s3://unidata-nexrad-level2`). Tornado reports from the [Storm Prediction Center](https://www.spc.noaa.gov/wcm/) storm reports database.
 
20
 
21
  # TorNet-Temporal: Temporal Dual-Pol NEXRAD Radar for Tornado Detection
22
 
23
+ A large-scale dataset of storm-centered NEXRAD WSR-88D radar sequences for tornado detection and prediction, featuring **24-channel dual-polarimetric** data across **variable-length temporal sequences**.
24
 
25
  ## Dataset Summary
26
 
27
+ - **24,862 storm events** from NEXRAD Level-II radar archives (2013-2022)
28
+ - **8-22 consecutive radar scans** per event (~4-5 min cadence, ~45-90 min total; median 13 frames)
29
  - **24 channels**: 6 dual-pol radar products x 4 elevation angles
30
  - **128x128 spatial grid** at 1km resolution, storm-centered
31
+ - **3 categories**: TOR (tornado), WRN (tornado-warned but no tornado), NUL (null/no severe)
32
+ - **130 unique NEXRAD radar sites** across CONUS
33
 
34
  ## Data Format
35
 
 
37
 
38
  | Key | Shape | Type | Description |
39
  |-----|-------|------|-------------|
40
+ | `data` | (T, 24, 128, 128) | float32 | Radar volume sequence (T varies 8-22, median 13) |
41
+ | `scan_times` | (T,) | str | UTC timestamps per frame |
42
  | `center_time` | scalar | str | Event center time |
43
  | `lat` | scalar | float64 | Storm center latitude |
44
  | `lon` | scalar | float64 | Storm center longitude |
 
68
 
69
  ## Recommended Splits
70
 
71
+ We recommend **year-based splitting** to prevent data leakage from correlated storm environments. Events from the same storm system can appear within hours of each other at the same radar site, so random splitting risks leaking information across splits.
72
 
73
+ | Split | Years | Approx. Events | Purpose |
74
+ |-------|-------|----------------|---------|
75
+ | Train | 2013-2021 | ~21,800 | Model training |
76
+ | Test | 2022 | ~3,040 | Final evaluation |
 
77
 
78
+ For train/validation splitting, we recommend holding out one earlier year (e.g., 2021) as a validation set.
79
+
80
+ A `catalog.csv` is included with TorNet-compatible train/test assignments if you prefer to match TorNet's splitting methodology. Events not in the catalog can be assigned to either split.
81
+
82
+ **Important**: All data is from 2013 onwards (post dual-pol upgrade), so there are no legacy single-pol-only events. All 24 channels contain real data in every event.
83
 
84
  ## Usage
85
 
 
90
 
91
  # Load a single event
92
  event = np.load("tornet_1000855_TOR/sequence.npz")
93
+ data = event["data"] # (T, 24, 128, 128), T varies per event
94
  label = int(event["label"]) # 1 for tornado
95
  category = str(event["category"]) # "TOR"
96
+ print(f"Frames: {data.shape[0]}, Label: {label}, Category: {category}")
97
 
98
+ # Select 8 consecutive frames for model input (pad/truncate as needed)
99
+ T = data.shape[0]
100
+ if T >= 8:
101
+ frames = data[:8] # take first 8
102
+ else:
103
+ frames = np.pad(data, ((0, 8 - T), (0,0), (0,0), (0,0))) # zero-pad
104
 
105
  # Convert to PyTorch tensor: (C, T, H, W) for 3D CNN
106
  tensor = torch.from_numpy(frames).float() # (8, 24, 128, 128)
 
120
 
121
  Temporal context (8 frames vs 1 frame) provides a significant boost, especially for detection (+0.049 AUC).
122
 
123
+ ## Data Quality Notes
124
+
125
+ - **Variable time steps**: Events contain 8-22 frames (not a fixed number). Your DataLoader should pad or truncate to a uniform length.
126
+ - **KDP fill values**: KDP channels (20-23) have a slightly elevated fill rate (~6-7%) compared to other channels (<1%). This is normal -- KDP is a derived product that fails to compute in some conditions.
127
+ - **26 corrupt files**: A small number of NUL-category events (~0.1%) have corrupted NPZ files. These should be caught by a try/except in your data loader.
128
+ - **0.5-degree elevation gaps**: ~3% of events have missing VEL/SW data at the lowest elevation (0.5 deg) due to SAILS/MESO radar scan strategies. The model should learn to handle these naturally.
129
+ - **No dual-pol leakage**: All data is post-2013 (after the NEXRAD dual-pol upgrade completed), so dual-pol channel availability cannot serve as a proxy for era or data quality.
130
+
131
  ## Data Source
132
 
133
  Raw radar data sourced from the [Unidata NEXRAD Level-II Archive](https://www.unidata.ucar.edu/data/radar.html) on AWS S3 (`s3://unidata-nexrad-level2`). Tornado reports from the [Storm Prediction Center](https://www.spc.noaa.gov/wcm/) storm reports database.