-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_data.sh
More file actions
101 lines (92 loc) · 5.96 KB
/
get_data.sh
File metadata and controls
101 lines (92 loc) · 5.96 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash
mkdir -p data
cd data
###############################################
## Download raw data
###############################################
mkdir -p raw_data
cd raw_data
rawdata_urls=("https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67052ff06bd71af6a132d89b"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67052ff06bd71af6a132d89b"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67053c44723b53d4c39fd1fe"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67053e6a69ab994654fcafb4"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67053e7a373726505332d7e9"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/670540584418f8cedcfca875"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67053d37c9864608245cd378"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67052cae64c20c629ffcac59"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67052d5c6bd71af6a132d753"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67053234263593ddec9fd2c0"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67053d0616e48bcac2a1fdb9"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/6705412abfe9a2dc9bfca99f"
"https://files.osf.io/v1/resources/t3h5q/providers/osfstorage/67052d38d8044adfe2a2065a"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/6705442368e746fe09fcae43"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/67055880fc6993a0949fd003"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/670543078c5502a2875ccaad"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/67055869730ef601ae32df08"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/670549ce796bbb716d5cc8d9"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/6705491c71de658aba9fcefc"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/670558cb801480d0dc5cc8f1"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/670543b7a4779bb0345cc9d1"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/67054464bd4e2422b05cce12"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/670543c1095b82fd01a1fe49"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/6705582491df79b6ebfcae14"
"https://files.osf.io/v1/resources/2xuh7/providers/osfstorage/6705588662b925d86b32dab0"
)
for url in "${rawdata_urls[@]}"; do
filename="${url##*/}.zip"
echo "Downloading $filename..."
curl -L "$url" -o "$filename"
unzip -o "$filename" && rm "$filename"
done
cd ..
###############################################
## Download glmsingle beta maps
###############################################
mkdir -p glmsingle
cd glmsingle
beta_urls=("https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2de5c8efddada32d2e1"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b29e9efb6d299b9fd95a"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b264222f842893fcb066"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2de599a2c6629a20a6e"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2e3e39fb2ca39a1fe19"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b264cd20257fb6a208b6"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b26458915db107fca8ab"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b29f8d2084479e32d6aa"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2a3f952a4fb66a209b2"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2ab8d2084479e32d6b0"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2ae636fe19a8032df7e"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2b1611b7d0ebb5ccc47"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2cc74c61d13685cd465"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2cd200f06cbdcfcadf3"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2d1eb881bb45c9fca10"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2f958915db107fca8fa"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2fa622e4b19565cd37a"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b25fd5ca6c5904a2076f"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b25f622e4b19565cd362"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b283636fe19a8032df79"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b27da48948054f5cd15f"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b2811df1f1d9fba1ff69"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b282b619ef68a5fcaf77"
"https://files.osf.io/v1/resources/kdmrg/providers/osfstorage/6705b28358915db107fca8bf"
)
for url in "${beta_urls[@]}"; do
filename="${url##*/}.zip"
echo "Downloading $filename..."
curl -L "$url" -o "$filename"
unzip -o "$filename" && rm "$filename"
done
cd ..
###############################################
## Download processed events
###############################################
# URLs to download
processed_events_url=(
"https://files.osf.io/v1/resources/qk39p/providers/osfstorage/680a6dd4f2285b471c568e13"
)
for url in "${processed_events_url[@]}"; do
filename="${url##*/}.zip"
echo "Downloading $filename..."
curl -L "$url" -o "$filename"
unzip -o "$filename" && rm "$filename"
done
rm -r __MACOSX