Changeset 583 for BAORadio


Ignore:
Timestamp:
Oct 21, 2011, 3:25:35 PM (13 years ago)
Author:
torrento
Message:

Comment while in anagainmaker.sh; add date arg in submit2ge-anagainmaker.sh; minor cosmetic changes

Location:
BAORadio/AmasNancay/trunk
Files:
3 edited

Legend:

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

    r579 r583  
    3939  case "$1" in
    4040      -src)  sourceRadio=$2; shift;;
    41       -date) dateSelected=$2;     shift;;
     41      -date) dateSelected=$2; shift;;
    4242       -sim) simulationMode=On;;
    4343        -h)
     
    145145# So the input files are there, so the fits file can be determined
    146146  mode="Off"
     147
     148  input4gainOk1=`ils ${i}/Off 2>&1 | $GREP -i "^ERROR" | $WC -l`
     149  input4gainOk2=`ils ${i}/Off 2>&1 | $GREP -i "gaincycle"`
     150  if [ $input4gainOk1 -eq 0 -a "<${input4gainOk2}>" != "<>"  ]; then
     151      gaincycle=`$ECHO ${input4gainOk2} | $AWK '($1 == "C-"){print $2}'| $XARGS -i basename {}`
     152  else
     153      $ECHO "INFO ${scriptName}: no gaincycle for ${i}"
     154      continue
     155  fi
     156
    147157  spectraGenDirName=`$ECHO ${gaincycle} | $AWK '{match($0,"[a-zA-Z]+",arr); print arr[0]}'`
    148158  cycleNumber=`$ECHO ${gaincycle} | $AWK '{match($0,"[0-9]+",arr); print arr[0]}'`
     
    168178  $RM -f ${tmppublicpath}/getscafiles.finished
    169179  ${scriptpath}/getscafiles.sh ${sourceRadio} ${dateDAQ} > ${OUT1} 2>&1
    170   while [ ! -f "${tmppublicpath}/getscafiles.finished" ]; do
    171       $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/getscafiles.finished"
    172       date +%T
    173       sleep 30
    174   done
     180# AST 21/10/2011: comment while as it blocks the job
     181#  while [ ! -f "${tmppublicpath}/getscafiles.finished" ]; do
     182#      $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/getscafiles.finished"
     183#      date +%T
     184#      sleep 30
     185#  done
    175186  $RM ${tmppublicpath}/getscafiles.finished
    176187  $ECHO "DEBUG (${scriptName}): END"
  • BAORadio/AmasNancay/trunk/submit2ge-anacalibmaker.sh

    r580 r583  
    2323        -h)
    2424        echo >&2 \
    25             "usage: $0 -src souce -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-bwd bandwidth in MHz (default ${bwBAOCalib})]"
     25            "usage: $0 -src source -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-bwd bandwidth in MHz (default ${bwBAOCalib})]"
    2626        exit 1;;
    2727        *)  break;;     # terminate while loop
  • BAORadio/AmasNancay/trunk/submit2ge-anagainmaker.sh

    r580 r583  
    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;;
    11       -sim) simulationMode="-sim";;
     12      -date) dateSelected="-date $2"; dateJob="$2"; shift;;
     13      -sim)  simulationMode="-sim";;
    1214        -h)
    1315            echo >&2 \
    14             "usage: $0 -src souce [-sim]"
     16            "usage: $0 -src source -date YYYYMMDD [-sim]"
    1517            exit 1;;
    1618        *)  break;;     # terminate while loop
     
    1921done
    2022
    21 jobBatchName="gains-$sourceRadio"
     23
     24if [ "<${sourceRadio}>" = "<>" ]; then
     25    $ECHO "FATAL: You have forgotten to select the source option (-src)"
     26    exit 1
     27fi
     28
     29jobBatchName="gains-${sourceRadio}${dateJob}"
    2230jobLogName="${jobBatchName}.log.$$"
    2331
    2432qsub -P P_baoradio -l sps=1,irods=1,ct=2400,vmem=1000M,fsize=500M -o $jobLogName -j yes -N $jobBatchName -m be -M ${LOGNAME}@lal.in2p3.fr -V <<EOF
    2533
    26 ${SCRIPTPATH}/gainmaker.sh  -src ${sourceRadio} ${simulationMode}
     34${SCRIPTPATH}/anagainmaker.sh -src ${sourceRadio} ${dateSelected} ${simulationMode}
    2735EOF
Note: See TracChangeset for help on using the changeset viewer.