-
Notifications
You must be signed in to change notification settings - Fork 4
/
pm_cme_fw.sh
executable file
·37 lines (32 loc) · 1.25 KB
/
pm_cme_fw.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
# 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 " - Start time : "$1
echo " - Longitude : "$2
echo " - Width : "$3
echo " - Velocity : "$4
echo " - Velocity error: "$5
echo " - Output Path : "$6
# echo "prop_end,t0='$1',x0='$2',width='$3',vel='$4',e_vel='$5',FILE_OUT = '$6'" > idl_input.txt
echo "sheba_run,model='cme',time_sol='$1',x0=$2,width=$3,vel=$4,e_vel=$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 "------------------------------------------"