File size: 3,318 Bytes
f9bee15
 
 
a0fbce7
 
 
 
 
f9bee15
a0fbce7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d50104a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a0fbce7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
license: mit
tags:
- heliophysics
- solar_active_regions
- AR_emergence
- space_weather
- machine_learning
size_categories:
- 1GB<n<100GB
---

# AR Emergence Dataset  

The **AR Emergence Dataset** is designed to support research on the early detection of solar Active Regions (ARs) and the development of predictive models for space weather. By characterizing the evolution of ARs before, during, and after their emergence, the dataset enables studies of pre-emergence signatures and early warning methods.  

This dataset is derived from NASA’s **Solar Dynamics Observatory (SDO)** using measurements from the **Helioseismic and Magnetic Imager (HMI)**. It includes timeline data of:  

- **Acoustic power** (from Doppler velocity maps)  
- **Photospheric magnetic field**  
- **Continuum intensity**  

for **56 large ARs** that emerged on the visible solar disk between **2010 and 2023**. Each AR is tracked within a **30° × 30° patch** over multiple days.  

These data products have already been applied successfully in machine learning models for AR emergence forecasting in [1].  

[1] Kasapis, S., Kitiashvili, I. N., Kosovichev, A. G. & Stefan, J. T. Prediction of intensity variations associated with emerging active regions using helioseismic power maps and machine learning. The Astrophys. J. Suppl. Ser. 10.3847/1538-4365/adfbe2 (2025)

---

## File Structure  

The repository contains the following files and folders:  

- `data.zip` — compressed folder containing all Active Region (AR) subfolders:  
  - `AR11130/`  
    - `mean_int11130_flat.npz` → continuum intensity timeline  
    - `mean_mag11130_flat.npz` → magnetic field timeline  
    - `mean_pmdop11130_flat.npz` → acoustic power timeline  
  - `AR11149/`  
  -  - `AR13183/`  

- `train.csv` — training split (36 ARs)  
- `valid.csv` — validation split (8 ARs)  
- `test.csv` — test split (12 ARs)  
- `README.md` — dataset description  

Each AR folder contains three `.npz` files:  

- `mean_int{AR}_flat.npz` → continuum intensity timeline  
- `mean_mag{AR}_flat.npz` → magnetic field timeline  
- `mean_pmdop{AR}_flat.npz` → 4 acoustic power timelines  

The split CSV files (`train.csv`, `valid.csv`, `test.csv`) include:  

| Column         | Description                                   |
|----------------|-----------------------------------------------|
| `AR`           | NOAA Active Region number                     |
| `t_start`      | Start time of tracked patch                   |
| `t_end`        | End time of tracked patch                     |
| `dataset_type` | train/valid/test split assignment             |
| `mean_int_path`| Path to continuum intensity `.npz` file       |
| `mean_mag_path`| Path to magnetic field `.npz` file            |
| `mean_pmdop_path` | Path to acoustic power `.npz` file         |

---

## Example Usage  

```python
import numpy as np
import pandas as pd

# Load CSV metadata
df = pd.read_csv("train.csv")
print(df.head())

# Load one AR’s continuum intensity data
sample_path = df.iloc[0]["mean_int_path"]

# Update to local path after unzipping data.zip
sample_path = sample_path.replace("/Users/sk6617/Desktop/data", "data")  

data = np.load(sample_path)
print("Keys in npz file:", data.files)
print("Data shape:", data[data.files[0]].shape)