-
Notifications
You must be signed in to change notification settings - Fork 4
/
pm_cir_back.sh
executable file
·36 lines (31 loc) · 1.24 KB
/
pm_cir_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
#!/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 " - Output Path : "$5
# 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='cir',time_impact='$1',object='$2',vel=$3,e_vel=$4,PATH_OUT = '$5'" > $5/idl_input.txt
#
# Executing code for active region extraction ...
#
echo `date`" - Executing Propagation Model ....."
source /opt/exp_soft/helio/ssw/ssw-config.sh < $5/idl_input.txt
echo `date`"..... done"
echo "------------------------------------------"