Update README.md
Browse files
README.md
CHANGED
|
@@ -6,4 +6,43 @@ tags:
|
|
| 6 |
- physics
|
| 7 |
size_categories:
|
| 8 |
- 1K<n<10K
|
| 9 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
- physics
|
| 7 |
size_categories:
|
| 8 |
- 1K<n<10K
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Small Vlasiator Dataset for Machine Learning Studies
|
| 12 |
+
|
| 13 |
+
The data is stored in [Zarr](https://zarr.dev).
|
| 14 |
+
|
| 15 |
+
It can be downloaded to a local `data_small` directory with:
|
| 16 |
+
```
|
| 17 |
+
from huggingface_hub import snapshot_download
|
| 18 |
+
|
| 19 |
+
snapshot_download(
|
| 20 |
+
repo_id="deinal/spacecast-data",
|
| 21 |
+
repo_type="dataset",
|
| 22 |
+
local_dir="data_small"
|
| 23 |
+
)
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
This will yield a local `data_small` folder that can be used with [spacecast](https://github.com/fmihpc/spacecast):
|
| 27 |
+
```
|
| 28 |
+
data_small/
|
| 29 |
+
├── graph/ - Directory containing graphs for training
|
| 30 |
+
├── run.zarr/ - Vlasiator run with ρ = 1.0 cm⁻³ solar wind
|
| 31 |
+
├── static.zarr/ - Static features x, z, r coordinates
|
| 32 |
+
├── vlasiator_run.zarr - Preprocessed Vlasiator run
|
| 33 |
+
├── vlasiator_config.yaml - Configuration file for neural-lam
|
| 34 |
+
└── vlasiator_run.yaml - Configuration file for the datastore, referred to from vlasiator_config.yaml
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
The run was preprocessed with [mllam-data-prep](https://github.com/mllam/mllam-data-prep):
|
| 38 |
+
```
|
| 39 |
+
mllam_data_prep data_small/vlasiator_run.yaml
|
| 40 |
+
```
|
| 41 |
+
This produces training-ready Zarr stores in the `data_small` directory.
|
| 42 |
+
|
| 43 |
+
Simple, multiscale, and hierarchical graphs are included already, but can be created using the following commands:
|
| 44 |
+
```
|
| 45 |
+
python -m neural_lam.create_graph --config_path data_small/vlasiator_config.yaml --name simple --levels 1 --coarsen-factor 5 --plot
|
| 46 |
+
python -m neural_lam.create_graph --config_path data_small/vlasiator_config.yaml --name multiscale --levels 3 --coarsen-factor 5 --plot
|
| 47 |
+
python -m neural_lam.create_graph --config_path data_small/vlasiator_config.yaml --name hierarchical --levels 3 --coarsen-factor 5 --hierarchical --plot
|
| 48 |
+
```
|