-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_relxill.sh
45 lines (33 loc) · 1.15 KB
/
setup_relxill.sh
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
#!/bin/bash
#Currently built for the Department of Astronomy - University of Maryland
#Currently works for Mac (9/28/2020)
#Input from command line
relxillVersion=$1
#Making sure I have access to XSPEC
source "$HEADAS/headas-init.csh"
#Defining path to HEASoft directory based on the environmental HEADAS variable used
#in setting up XSPEC
heasoftPath=$HEADAS/..
currentPosition=$(pwd)
#Switching to HEASoft directory
cd ${heasoftPath}
#Making RELXILL directory and going there
relxillName="relxill_model_v${relxillVersion}"
mkdir ${relxillName}
cd ${relxillName}
#Downloading the model tarball
relxillFile="${relxillName}.tgz"
wget "https://www.sternwarte.uni-erlangen.de/~dauser/research/relxill/${relxillFile}" --no-check-certificate
#Unpacking the model tarball
tar xfz ${relxillFile}
rm -f ${relxillFile}
#Downloading RELXILL tables
relxillTablesFile="relxill_tables.tgz"
wget "https://www.sternwarte.uni-erlangen.de/~dauser/research/relxill/${relxillTablesFile}" --no-check-certificate
#Unpacking the table tarball
tar xfz ${relxillTablesFile}
rm -f ${relxillTablesFile}
#Compiling RELXILL
chmod u+x ./compile_relxill.sh
./compile_relxill.sh
cd ${currentPosition}