-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathgetdata.sh
More file actions
29 lines (28 loc) · 888 Bytes
/
getdata.sh
File metadata and controls
29 lines (28 loc) · 888 Bytes
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
#!/bin/bash
#Get ASTRIANet data from:
#Feuge-Miller, Benjamin; Kucharski, Daniel; Iyer, Shiva; Jah, Moriba, 2021,
#"ASTRIANet Data for: Python Computational Inference from Structure (PyCIS)",
#https://doi.org/10.18738/T8/GV0ASD, Texas Data Repository, V3
if [ ! -d "data" ]; then
mkdir "data"
fi
CWD=$(pwd)
#FOLDER="20201224_26407_navstar-48"
#LOC="data/20201220_45696_starlink-1422"
#if [ ! -d "${LOC}" ]; then
# mkdir "${LOC}"
# cd "${LOC}"
# wget -c https://dataverse.tdl.org/api/access/datafile/123198 -O temp.tar.gz
# tar -zxf temp.tar.gz --strip-components=1
# rm -rf temp.tar.gz
# cd $CWD
#fi
LOC="data/20201224_26407_navstar-48"
if [ ! -d "${LOC}" ]; then
mkdir "${LOC}"
cd "${LOC}"
wget -c https://dataverse.tdl.org/api/access/datafile/123197 -O temp.tar.gz
tar -zxf temp.tar.gz --strip-components=1
rm -rf temp.tar.gz
cd $CWD
fi