Changeset 626 for BAORadio/AmasNancay/trunk/proc_specmfib.sh
- Timestamp:
- Dec 14, 2011, 11:23:44 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/trunk/proc_specmfib.sh
r611 r626 33 33 echo " -<YYYYMMDD-directory> as 20110428" 34 34 echo " -<type of process> as GAIN|CALIBON|CALIBOFF|ON|OFF" 35 echo " as GAINDS|ONDS" 35 36 } 36 37 ###### … … 88 89 89 90 fi 90 #else91 # offtype=`$ECHO ${typeofproc} | $GREP -i OFF | $WC -l`92 # ontype=`$ECHO ${typeofproc} | $GREP -i ON | $WC -l`93 # if [ "<${offtype}>" = "<1>" -a "<${ontype}>" = "<0>" ]; then94 # datatype="OFF"95 # elif [ "<${offtype}>" = "<0>" -a "<${ontype}>" = "<1>" ]; then96 # datatype="ON"97 # else98 # $ECHO "FATAL: not supported: -type ${typeofproc}"99 # exit 1100 # fi101 #fi102 91 103 92 … … 273 262 lastp1CycleId=`expr ${firstCycleId} + 1` 274 263 ;; 264 GAINDS) 265 $ECHO "process signal files for GAIN DRIFT SCAN phases" 266 ingain="" 267 freqfilter="-freqfilter -" 268 nwinmean="1" 269 tspwin="5120" 270 dirName="Off" 271 cyclebasename="gaincycle" 272 indexStartHour="2" 273 timeShift="-4" 274 timeDuration="14" 275 firstCycleId=`expr ${#cycleArray[*]} / 2` 276 firstCycleId=`expr ${firstCycleId} - 1` 277 lastp1CycleId=`expr ${firstCycleId} + 1` 278 ;; 275 279 GAINNF) 276 280 $ECHO "process signal files for GAIN phase wo Freq FILTERING" … … 299 303 timeShift="3" 300 304 timeDuration="30" 305 firstCycleId="0" 306 lastp1CycleId="${#cycleArray[@]}" 307 ;; 308 ONDS) 309 $ECHO "process signal files for ON Drift Scan phases" 310 ingain="-gain gain_${dateSelected}_${srclower}.fits" 311 freqfilter="" 312 nwinmean="5" 313 tspwin="5120" 314 dirName="On" 315 cyclebasename="datacycle" 316 indexStartHour="4" 317 timeShift="3" 318 timeDuration="170" 301 319 firstCycleId="0" 302 320 lastp1CycleId="${#cycleArray[@]}" … … 457 475 #write the script to be send to Batch 458 476 #get gain file if necessary 459 if [ ${typeofproc} != "GAIN" ]; then477 if [ ${typeofproc} != "GAIN" -a ${typeofproc} != "GAINDS" ]; then 460 478 OUT2=./igetStatus.$$ 461 479 iget /baoradio/data/AmasNancay/${localpath}/gain_${dateSelected}_${srclower}.fits >${OUT2} 2>&1 … … 526 544 #get signals files 527 545 OUT3=./getsignals.$$ 528 #JEC 29/9/11 avoid finished stuff529 # $RM -f ${tmppublicpath}/getsignalfiles.finished530 546 ${scriptpath}/getsignalfiles.sh ${sourceRadio} ${dateSelected} ${firstFile} ${lastFile} > ${OUT3} 2>&1 531 # while [ ! -f "${tmppublicpath}/getsignalfiles.finished" ]; do532 # $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/getsignalfiles.finished"533 # date +%T534 # sleep 30535 # done536 # $RM ${tmppublicpath}/getsignalfiles.finished537 538 547 getSignals=`$GREP "^FATAL" ${OUT3}` 539 548 if [ "<$getSignals>" != "<>" ]; then
Note: See TracChangeset
for help on using the changeset viewer.