deinal commited on
Commit
9db2d35
·
verified ·
1 Parent(s): 975c2df

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +48 -1
README.md CHANGED
@@ -6,4 +6,51 @@ tags:
6
  - physics
7
  size_categories:
8
  - 100K<n<1M
9
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  - physics
7
  size_categories:
8
  - 100K<n<1M
9
+ ---
10
+
11
+ # 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` 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"
23
+ )
24
+ ```
25
+
26
+ This will yield a local `data` folder that can be used with [spacecast](https://github.com/fmihpc/spacecast):
27
+ ```
28
+ data/
29
+ ├── graph/ - Directory containing graphs for training
30
+ ├── run_1.zarr/ - Vlasiator run 1 with ρ = 0.5 cm⁻³ solar wind
31
+ ├── run_2.zarr/ - Vlasiator run 2 with ρ = 1.0 cm⁻³ solar wind
32
+ ├── run_3.zarr/ - Vlasiator run 3 with ρ = 1.5 cm⁻³ solar wind
33
+ ├── run_4.zarr/ - Vlasiator run 4 with ρ = 2.0 cm⁻³ solar wind
34
+ ├── static.zarr/ - Static features x, z, r coordinates
35
+ ├── vlasiator_config.yaml - Configuration file for neural-lam
36
+ ├── vlasiator_run_1.yaml - Configuration file for datastore 1, referred to from vlasiator_config.yaml
37
+ ├── vlasiator_run_2.yaml - Configuration file for datastore 2, referred to from vlasiator_config.yaml
38
+ ├── vlasiator_run_3.yaml - Configuration file for datastore 3, referred to from vlasiator_config.yaml
39
+ └── vlasiator_run_4.yaml - Configuration file for datastore 4, referred to from vlasiator_config.yaml
40
+ ```
41
+
42
+ Preprocess the runs with [mllam-data-prep](https://github.com/mllam/mllam-data-prep), run:
43
+ ```
44
+ mllam_data_prep data/vlasiator_run_1.yaml
45
+ mllam_data_prep data/vlasiator_run_2.yaml
46
+ mllam_data_prep data/vlasiator_run_3.yaml
47
+ mllam_data_prep data/vlasiator_run_4.yaml
48
+ ```
49
+ This produces training-ready Zarr stores in the data directory.
50
+
51
+ Simple, multiscale, and hierarchical graphs are included already, but can be created using the following commands:
52
+ ```
53
+ python -m neural_lam.create_graph --config_path data/vlasiator_config.yaml --name simple --levels 1 --coarsen-factor 5 --plot
54
+ python -m neural_lam.create_graph --config_path data/vlasiator_config.yaml --name multiscale --levels 3 --coarsen-factor 5 --plot
55
+ python -m neural_lam.create_graph --config_path data/vlasiator_config.yaml --name hierarchical --levels 3 --coarsen-factor 5 --hierarchical --plot
56
+ ```