-
Notifications
You must be signed in to change notification settings - Fork 4
/
pm_sep_back.sh
executable file
·37 lines (32 loc) · 1.27 KB
/
pm_sep_back.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
#!/bin/tcsh
echo "------------------------------------------"
# echo `pwd`
# echo `ls -la`
cd /usr/local/helio/applications/sheba
#cd /home/perezsud/propagation_runs/pm_cme_back
# echo `pwd`
# echo `ls -la`
echo "------------------------------------------"
echo `date`" - Checking IDL_DIR......"
echo `ls -la /opt/exp_soft/helio/idl/idl/`
echo `date`" - Setting IDL_DIR......"
setenv IDL_DIR '/opt/exp_soft/helio/idl/idl'
echo `date`" - Setting IDL_LICENSE_DIR......"
setenv LM_LICENSE_FILE '/opt/exp_soft/helio/idl/license/license.dat'
echo "------------------------------------------"
echo `date`" - Executing IDL code with the following argument ..."
echo " - Hit time : "$1
echo " - Object : "$2
echo " - Velocity : "$3
echo " - Velocity error: "$4
echo " - Beta : "$5
echo " - Output Path : "$6
# echo "prop_end_back,t0='$1',object='$2',width='$3',vel='$4',e_vel='$5',FILE_OUT = '$6'" > idl_input.txt
echo "sheba_run,model='sep',time_impact='$1',object='$2',vel=$3,e_vel=$4,beta=$5,PATH_OUT = '$6'" > $6/idl_input.txt
#
# Executing code for active region extraction ...
#
echo `date`" - Executing Propagation Model ....."
source /opt/exp_soft/helio/ssw/ssw-config.sh < $6/idl_input.txt
echo `date`"..... done"
echo "------------------------------------------"