Changeset 519
- Timestamp:
- Sep 15, 2011, 2:13:45 PM (13 years ago)
- Location:
- BAORadio/AmasNancay
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/analysis-scriptsAndprg-description.txt
r507 r519 1 1 Title: Status of the programs and scripts used for Amas@Nancay analysis at CCIN2P3 2 Revision: 7/9/112 Revision: 14/9/11 3 3 Author: J.E Campagne 22/7/11 4 4 ---------------------------- … … 19 19 . include RT calibration 20 20 - comments 21 . ON-OFF part only validate for a single Abell85 run and not in batch mode 21 . ON-OFF part only validate for a single Abell85 run and not in batch mode (preliminary stage) 22 22 . GAIN part should be revalidated according to inPath argument 23 23 … … 81 81 - TO MIGRATE TO NEW BATCH 82 82 83 o submit2qs-onoffmaker.sh 84 -------------------------- 85 - send the onoffmaker.sh script to BQS system 86 - Todo list 87 - TO MIGRATE TO NEW BATCH 88 83 89 84 90 C) High level scripts … … 109 115 --------------- 110 116 - perfom 111 1) the extraction of signalXYZ.fits files 112 concerned by the OFF & ON calibration time window of all cycles concerned 113 2) . the analysis of the above fits files to determine the 114 calibration constantes of each channel: produce calib_* files (monitoring + calibration files) 115 . put the results into Irods 117 1) several x-checks to see at which stage of the analysis process we are 118 2) trig the proc_script.sh script if necessary to create the spectra fits files via specmfib.cc prg 119 3) . prepare the analysis of the above fits files 120 . put calib_* files (monitoring + calibration files) into Irods 116 121 - use 117 122 - statusdaq.sh, proc_script.sh, getscafiles.sh 118 123 - analysis.cc 124 125 o onoffmaker.sh (preliminary) 126 ---------------------------- 127 - perform 128 1) several x-checks to see at which stage of the analysis process we are 129 2) trig the proc_script.sh script if necessary to create the spectra fits files via specmfib.cc prg 130 3) prepare the analysis of the above fits files 131 4) put dataRaw_* (raw spectra), 132 dataBAOCalib_* (after BAO calibration), 133 dataBAORTCalib_* (after BAO & RT calibration), 134 diffOnOff_* (ON-OFF spectra) 119 135 120 136 D) Lower level scripts -
BAORadio/AmasNancay/onoffmaker.sh
r518 r519 175 175 # 176 176 somethingTodo=1 177 input4dataOff=`ils ${i}/Off 2>&1 | $GREP -i "datacycle" | $AWK 'BEGIN{FS="C- "}{print $2}' | $XARGS -i basename {} | $SORT -k1.1 1n`178 input4dataOn=`ils ${i}/On 2>&1 | $GREP -i "datacycle" | $AWK 'BEGIN{FS="C- "}{print $2}' | $XARGS -i basename {} | $SORT -k1.1 1n`177 input4dataOff=`ils ${i}/Off 2>&1 | $GREP -i "datacycle" | $AWK 'BEGIN{FS="C- "}{print $2}' | $XARGS -i basename {} | $SORT -k1.10n` 178 input4dataOn=`ils ${i}/On 2>&1 | $GREP -i "datacycle" | $AWK 'BEGIN{FS="C- "}{print $2}' | $XARGS -i basename {} | $SORT -k1.10n` 179 179 # 180 180 if [ "<${input4dataOff}>" != "<>" -a "<${input4dataOn}>" != "<>" ]; then … … 267 267 inFileDirectory="./${mode}" 268 268 $MKDIR -p ${inFileDirectory} 269 listOfDataCycle=( `ils ${i}/${mode} 2>&1 | $GREP -i "datacycle"|$AWK 'BEGIN{FS="C- "}{print $2}' | $XARGS -i basename {} | $SORT -k1.1 1n` )269 listOfDataCycle=( `ils ${i}/${mode} 2>&1 | $GREP -i "datacycle"|$AWK 'BEGIN{FS="C- "}{print $2}' | $XARGS -i basename {} | $SORT -k1.10n` ) 270 270 IFS=' 271 271 ' … … 302 302 $MKDIR -p ${inFileDirectory} 303 303 304 listOfDataCycle=( `ils ${i}/${mode} 2>&1 | $GREP -i "datacycle" |$AWK 'BEGIN{FS="C- "}{print $2}' | $XARGS -i basename {} | $SORT -k1.1 1n` )304 listOfDataCycle=( `ils ${i}/${mode} 2>&1 | $GREP -i "datacycle" |$AWK 'BEGIN{FS="C- "}{print $2}' | $XARGS -i basename {} | $SORT -k1.10n` ) 305 305 IFS=' 306 306 ' … … 380 380 381 381 scaFile=`$FIND . -name "sca*.sum.trans" | $XARGS -i basename {}` 382 383 384 #Get the calibration files 385 OUT=./getCalib.$$ 386 iget -f -K -v ${i}/calib_*.txt ${aboveOnOffDir}> ${OUT} 2>&1 387 igetStatus=`$GREP "^ERROR" ${OUT}` 388 if [ "<$igetStatus>" != "<>" ]; then 389 $ECHO "FATAL (${scriptName}): error while iget calib files:" 390 $ECHO $igetStatus 391 exit 1 392 fi 393 $RM -f ${OUT} 382 394 383 395 #prepare job submission -
BAORadio/AmasNancay/proc_script.sh
r518 r519 205 205 #for GAIN the reference cycle takes the middle of the run 206 206 # 207 #nwinmean donne le nombre de fenetre tspwin utilise pour faire calculer la moyenne des medianes de chaque fenetre 208 #This is the nimber of paquets of the time window which change according to processing type 207 209 $ECHO "DEBUG (${scriptName}): START switch on $typeofproc" 208 210 # … … 212 214 ingain="" 213 215 freqfilter="-freqfilter -" 216 nwinmean="1" 214 217 tspwin="5120" 215 218 dirName="Off" … … 226 229 ingain="-gain gain_${dateDAQ}_${srclower}.fits" 227 230 freqfilter="-freqfilter 16" 228 tspwin="25000" 231 nwinmean="5" 232 tspwin="5120" 229 233 dirName="On" 230 234 cyclebasename="datacycle" … … 239 243 ingain="-gain gain_${dateDAQ}_${srclower}.fits" 240 244 freqfilter="-freqfilter 16" 241 tspwin="25000" 245 nwinmean="5" 246 tspwin="5120" 242 247 dirName="Off" 243 248 cyclebasename="datacycle" … … 252 257 ingain="-gain gain_${dateDAQ}_${srclower}.fits" 253 258 freqfilter="-freqfilter 16" 259 nwinmean="1" 254 260 tspwin="1024" 255 261 dirName="On" … … 265 271 ingain="-gain gain_${dateDAQ}_${srclower}.fits" 266 272 freqfilter="-freqfilter 16" 273 nwinmean="1" 267 274 tspwin="1024" 268 275 dirName="Off" … … 351 358 #force single channel 352 359 forceSingle="-singlechan" 353 #nwinmean donne le nombre de fenetre tspwin utilise pour faire calculer la moyenne des medianes de chaque fenetre354 #This is the nimber of paquets of the time window which change according to processing type355 nwinmean="1"356 360 #debug 357 361 prtlevel="1" … … 390 394 # 25sec/signal_file * empirical_conversion_factor (=50) 391 395 cpu=`expr ${nFiles} \* 25 \* 50` 392 #Virtual Memory (MB) 396 #Virtual Memory (MB) Nb: at CCIN2P3 the reasonable max is 1GB 393 397 virtualmem=1000 394 398 #Job and batch names … … 403 407 # 404 408 $CAT > ${jobScriptName} <<EOF 405 #!/bin/sh 409 #!/bin/sh -xvf 406 410 # jobBatchName=$jobBatchName 407 411 # jobScriptName=$jobScriptName … … 456 460 outDir=\${curDir}/${dirName}/${cycle} 457 461 $MKDIR -p \${outDir} 462 463 # 464 # where ami... 465 # 466 $ECHO "We are here \`pwd\` to send the batch" 467 $LS -lrth 468 $FIND . -name "igetStatus.*" | $XARGS -i $CAT {} 469 $LS ./Fiber1 | $WC -l 470 $LS ./Fiber2 | $WC -l 471 $LS -lR \${outDir} 472 458 473 #Note: here act=gain means only that specmfib will use median-like algorithms (not only for gains...) 459 474 $prg -act gain $forceSingle $freqfilter -prt $prtlevel -out \${outDir} -nmean $nwinmean $ingain $tmproc -tspwin ${tspwin},0,0 -in $infiles \${fibfile} 460 475 461 476 $ECHO \${outDir} 462 $LS -lrt \${outDir} /*477 $LS -lrt \${outDir} 463 478 464 479 #save results to Irods (use option -f ONLY to force override)
Note: See TracChangeset
for help on using the changeset viewer.