- Timestamp:
- 01/10/06 22:12:58 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/processmcsequences
r7448 r7460 20 20 # Author(s): Daniela Dorner 12/2005 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 422 # Copyright: MAGIC Software Development, 2000-2006 23 23 # 24 24 # 25 25 # ======================================================================== 26 26 # 27 # This script is an intermediate solution to process the montecarlo files. 28 # As soon as the montecarlo database is running, this script shall be 29 # exchanged. 30 # 31 # The script is processing the montecarlo sequences: callisto and star 27 32 # 28 33 … … 38 43 date >> $scriptlog 2>&1 39 44 45 # check if script is already running 40 46 lockfile=$lockpath/lock-processmcsequences.txt 41 47 date > $lockfile >> $scriptlog 2>&1 … … 50 56 esac 51 57 52 53 58 mcpath=/montecarlo/rawfiles 54 59 mccalpath=/montecarlo/callisto … … 57 62 callistorc=$setuppath/callisto/callisto.rc 58 63 59 sequfiles=`find $mcsequpath -type f`60 61 64 cd $mars 62 65 66 # find montecarlo sequence files 67 sequfiles=`find $mcsequpath -type f` 63 68 for sequfile in ${sequfiles[@]} 64 69 do … … 69 74 makedir $caloutpath >> $scriptlog 2>&1 70 75 76 # continue with next sequence, if sequence is already processed 77 # or processing of sequence is just running 71 78 if ls $caloutpath/.done >> $scriptlog 2>&1 72 79 then 73 80 continue 74 81 fi 75 76 82 if ls $caloutpath/.doing >> $scriptlog 2>&1 77 83 then … … 79 85 fi 80 86 87 # lock file 81 88 touch $caloutpath/.doing 82 83 89 echo "processing sequ $sequfile" >> $scriptlog 2>&1 84 90 # find callisto.rc file 85 91 if [ -e $caloutpath/callisto.rc ] 86 92 then … … 92 98 callistorcseq=$caloutpath/callisto.rc 93 99 fi 94 100 # calibrate data 95 101 echo "./callisto -mc -f -b -q --ind=$mcpath/$date --log=$caloutpath/callisto$sequno.log --html=$caloutpath/callisto$sequno.html --out=$caloutpath --config=$callistorcseq $sequfile 2>> $scriptlog > /dev/null" >> $scriptlog 2>&1 96 102 ./callisto -mc -f -b -q --ind=$mcpath/$date --log=$caloutpath/callisto$sequno.log --html=$caloutpath/callisto$sequno.html --out=$caloutpath --config=$callistorcseq $sequfile 2>> $scriptlog > /dev/null 97 103 check1=$? 98 104 # if calibration worked -> run star for sequence 99 105 case $check1 in 100 106 0) echo "check1=$check1 -> everything ok..." >> $scriptlog 2>&1 … … 103 109 imgoutpath=$mccalpath/$no/$sequno 104 110 makedir $imgoutpath >> $scriptlog 2>&1 111 105 112 ./star -b -q -v4 -f -mc --log=$imgoutpath/star$sequno.log --html=$imgoutpath/star$sequno.html --ind=$caloutpath --out=$imgoutpath $sequfile 2>> $scriptlog> /dev/null 106 113 check2=$? … … 118 125 done 119 126 120 121 127 rm -v $lockfile >> $scriptlog 2>&1 122 128
Note:
See TracChangeset
for help on using the changeset viewer.