Commit 2f505fb7 authored by Reza  ANSARI's avatar Reza ANSARI
Browse files

Added example script to run rdvisip4 and visi2ntac, Reza 17/04/2015

parent 702ed3a8
#!/bin/bash
#####################################################################
############### BAORadio/PAON4 - R. Ansari , March-April 2015
### Example script to run rdvisip4 program to compute a gain file
### and then visi2ntac to compute gain corrected power in the
### 8 auto-correlations, as a function of time (as NTuple)
#####################################################################
#
#DLIST="CasA1142N9mar15 CasA1142N10mar15 CasA1142N11mar15"
DLIST="CasA1142N9mar15 CasA1142N10mar15"
# DLIST="CasA1142N9mar15"
# DLIST="CasA1142N11mar15 CasA1142N12mar15 CasA1142N13mar15 CasA1142N20mar15"
echo 'DBG****A' $DLIST
for D in $DLIST ; do
echo '*DBG*B in the loop ' $D
NFILE=11500
IFILEG=100,300
JFREQ=1300,1460
JFREQB=2130,2290
IN5=/Raid-bao5/PAON4/$D
IN6=/Raid-bao6/PAON4/$D
GAINFILE=/Raid/PAON4/RzProc/gain_$D.ppf
OUTFILE1=/Raid/PAON4/RzProc/mvis_$D.ppf
OUTFILE=/Raid/PAON4/RzProc/$D.ppf
echo '-----Computing gains for D=' $D
CMD="./rdvisip4 $IN5 $IN6 $IFILEG $OUTFILE1 $GAINFILE 0"
echo $CMD
time $CMD
echo '-----Processing visibilities in D=' $D
CMD="./visi2ntac $IN5 $IN6 0,$NFILE $GAINFILE $OUTFILE $JFREQ $JFREQB 20 0"
echo $CMD
time $CMD
done
echo 'DBG****B - end of the loop, out of loop' $DLIST
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment