Ignore:
Timestamp:
Dec 14, 2011, 11:23:44 AM (13 years ago)
Author:
campagne
Message:

drift scan runs (jec)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BAORadio/AmasNancay/trunk/proc_specmfib.sh

    r611 r626  
    3333  echo "      -<YYYYMMDD-directory> as 20110428"
    3434  echo "      -<type of process> as GAIN|CALIBON|CALIBOFF|ON|OFF"
     35  echo "                         as GAINDS|ONDS"
    3536}
    3637######
     
    8889
    8990fi
    90 #else
    91 #    offtype=`$ECHO ${typeofproc} | $GREP -i OFF | $WC -l`
    92 #    ontype=`$ECHO ${typeofproc} | $GREP -i ON | $WC -l`
    93 #    if [ "<${offtype}>" = "<1>" -a  "<${ontype}>" = "<0>" ]; then
    94 #       datatype="OFF"
    95 #    elif [ "<${offtype}>" = "<0>" -a  "<${ontype}>" = "<1>" ]; then
    96 #       datatype="ON"
    97 #    else
    98 #       $ECHO "FATAL: not supported: -type ${typeofproc}"
    99 #       exit 1
    100 #    fi
    101 #fi
    10291
    10392
     
    273262      lastp1CycleId=`expr ${firstCycleId} + 1`
    274263      ;;
     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      ;;
    275279    GAINNF)
    276280      $ECHO "process signal files for GAIN phase wo Freq FILTERING"
     
    299303      timeShift="3"
    300304      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"
    301319      firstCycleId="0"
    302320      lastp1CycleId="${#cycleArray[@]}"
     
    457475#write the script to be send to Batch
    458476#get gain file if necessary
    459 if [ ${typeofproc} != "GAIN" ]; then
     477if [ ${typeofproc} != "GAIN" -a ${typeofproc} != "GAINDS" ]; then
    460478    OUT2=./igetStatus.$$
    461479    iget /baoradio/data/AmasNancay/${localpath}/gain_${dateSelected}_${srclower}.fits >${OUT2} 2>&1
     
    526544#get signals files
    527545    OUT3=./getsignals.$$
    528 #JEC 29/9/11 avoid finished stuff
    529 #    $RM -f ${tmppublicpath}/getsignalfiles.finished
    530546    ${scriptpath}/getsignalfiles.sh ${sourceRadio} ${dateSelected} ${firstFile}  ${lastFile} > ${OUT3} 2>&1
    531 #    while [ ! -f "${tmppublicpath}/getsignalfiles.finished" ]; do
    532 #       $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/getsignalfiles.finished"
    533 #       date +%T
    534 #       sleep 30
    535 #    done
    536 #    $RM ${tmppublicpath}/getsignalfiles.finished
    537 
    538547    getSignals=`$GREP "^FATAL" ${OUT3}`
    539548    if [ "<$getSignals>" != "<>" ]; then
Note: See TracChangeset for help on using the changeset viewer.