Changeset 570


Ignore:
Timestamp:
Oct 11, 2011, 11:29:33 AM (13 years ago)
Author:
campagne
Message:

prepare new way to process the data: first perform specmfib, second perform post-analysis (jec)

Location:
BAORadio/AmasNancay/trunk
Files:
4 added
3 edited

Legend:

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

    r547 r570  
    111111    $ECHO "FATAL (${scriptName}): ${OUT1} has a problem"
    112112    exit 1
    113 #    $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
    114 #    $RM -f ${tmppublicpath}/statusdaq.finished
    115 #    ${scriptpath}/statusdaq.sh > ${OUT1}
    116 #    while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
    117 #       sleep 30
    118 #    done
    119 #    $RM ${tmppublicpath}/statusdaq.finished
    120 #protect against remove/rewriting   
    121 #    $CHMOD -v 444 ${OUT1}
    122113fi
    123114
     
    145136  $LS -lrt
    146137
    147 
    148 #JEC 1/10/11 Use generic baodaqstatus name
    149 #Look if the date has changed since beginning of the job!
    150 #  curtag=`${DATE} +%F`
    151 #  if [ "<${curtag}>" != "<${tag}>" ]; then
    152 #      tag=${curtag}
    153 #it is necessary to update the daq status as the day has changed during the processing... (batch can take a long time...)
    154 #      OUT1=${publicpath}/baodaqstatus-${curtag}.txt
    155 #      $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
    156 #      $RM -f ${tmppublicpath}/statusdaq.finished
    157 #      ${scriptpath}/statusdaq.sh > ${OUT1}
    158 #     while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
    159 #         sleep 30
    160 #      done
    161 #      $RM ${tmppublicpath}/statusdaq.finished
    162 #protect against remove/rewriting   
    163 #      $CHMOD -v 444 ${OUT1}
    164 #  fi
    165 #
    166 # look if the gain & calibration files exist
    167 #
    168138  gainDone=`ils ${i} 2>&1 | $GREP -i "gain_.*\.fits" | $WC -l`
    169139  if [ ! ${gainDone} -gt 0 ]; then
  • BAORadio/AmasNancay/trunk/proc_specmfib.sh

    r567 r570  
    8686    $ECHO "FATAL: You have forgotten to select the type option (-type)"
    8787    exit 1
    88 else
    89     offtype=`$ECHO ${typeofproc} | $GREP -i OFF | $WC -l`
    90     ontype=`$ECHO ${typeofproc} | $GREP -i ON | $WC -l`
    91     if [ "<${offtype}>" = "<1>" -a  "<${ontype}>" = "<0>" ]; then
    92         datatype="OFF"
    93     elif [ "<${offtype}>" = "<0>" -a  "<${ontype}>" = "<1>" ]; then
    94         datatype="ON"
    95     else
    96         $ECHO "FATAL: not supported: -type ${typeofproc}"
    97         exit 1
    98     fi
    99 fi
     88
     89fi
     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
    100102
    101103
     
    220222#JEC 29/9/11 avoid finished stuff
    221223#$RM -f ${tmppublicpath}/select.finished
    222 ${scriptpath}/select.sh ${scaFileSummarized} ${dirFiberfile} ${datatype} | $GREP "^#[0-9]" | $SED "s/^#//" > $headerFileSelected
     224${scriptpath}/select.sh ${scaFileSummarized} ${dirFiberfile} ${typeofproc} | $GREP "^#[0-9]" | $SED "s/^#//" > $headerFileSelected
    223225#while [ ! -f "${tmppublicpath}/select.finished" ]; do
    224226#    $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/select.finished"
  • BAORadio/AmasNancay/trunk/submit2bqs-gainmaker.sh

    r569 r570  
    33#Process cmd line args: the -src option is mandatory (source name as Abell85)
    44sourceRadio=
     5dateSelected=
    56#use -sim option to simulate processing (debug the script as if...)
    67simulationMode=""
     
    910  case "$1" in
    1011      -src)  sourceRadio=$2; shift;;
     12      -date) dateSelected="-date $2"; dateJob="$2";     shift;;
    1113      -sim) simulationMode="-sim";;
    1214        -h)
    1315            echo >&2 \
    14             "usage: $0 -src souce [-sim]"
     16            "usage: $0 -src souce -date YYYYMMDD [-sim]"
    1517            exit 1;;
    1618        *)  break;;     # terminate while loop
     
    1921done
    2022
    21 jobBatchName="gains-$sourceRadio"
     23if [ "<${sourceRadio}>" = "<>" ]; then
     24    $ECHO "FATAL: You have forgotten to select the source option (-src)"
     25    exit 1
     26fi
     27
     28jobBatchName="anagains-${sourceRadio}${dateJob}"
    2229jobLogName="${jobBatchName}.log.$$"
    2330
    2431qsub -l u_sps_baoradio,u_irods,T=120000,M=1000MB,scratch=500MB,platform=LINUX -eo -o $jobLogName -N $jobBatchName -mb -me -mu ${LOGNAME}@lal.in2p3.fr <<EOF
    25 /afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/gainmaker.sh  -src ${sourceRadio} ${simulationMode}
     32/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/anagainmaker.sh  -src ${sourceRadio} ${dateSelected} ${simulationMode}
    2633EOF
Note: See TracChangeset for help on using the changeset viewer.