-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sh
More file actions
40 lines (34 loc) · 1.63 KB
/
install.sh
File metadata and controls
40 lines (34 loc) · 1.63 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
#!/bin/sh
# Create a new directory somewhere in your machine, let's say `fermi`:
mkdir fermi
cd fermi
echo "Created fermi dir"
echo
# Clone the repository with the lesson notebook.
git clone https://github.com/black-hole-group/fermipy-tutorial.git
echo "Downloaded lesson files from github"
echo
# You should now have a new directory called `fermi/fermipy-tutorial`.
# Download the data files with observations.
# These file contain all the observations (about 2GB).
# DM lesson data UNCOMMENT THIS EVENTUALLY
#mkdir -p ./fermipy-tutorial/data/DM
#wget -O ./fermipy-tutorial/data/dm-data.tar.bz2 https://www.dropbox.com/s/g6qbj7es0v9djv5/dm-data.tar.bz2?dl=0
#tar -xvjf ./fermipy-tutorial/data/dm-data.tar.bz2 -C ./fermipy-tutorial/data/DM
#echo "Downloaded dark matter files"
#echo
# blazar lesson data
wget -O ./fermipy-tutorial/data/blazar.tar.bz2 https://www.dropbox.com/s/eo694u3yph9n877/blazar.tar.bz2?dl=0
tar -xvjf ./fermipy-tutorial/data/blazar.tar.bz2 -C ./fermipy-tutorial
echo "Downloaded blazar files"
echo
echo "Done! :) "
# If the download gets interrupted, you can resume the download from where it stopped:
#
# wget -c -O ./fermipy-tutorial/data/fermi-data.tar.bz2 https://www.dropbox.com/s/g6qbj7es0v9djv5/fermi-data.tar.bz2?dl=0
# (_optional_) Check file integrity.
#
# If you want to check the file integrity, you can use the command
#
# md5sum fermipy-tutorial/data/fermi-data.tar.bz2
#(replace `md5sum` with `md5` if using a Mac). This command will spit a string. The string should match this one: 149b2e7d499a78f18bec22ad40fd3d98. If they are different, your file was corrupted during the download and you need to restart the download.