Browse Source

data->dataset in comment file output

master
Benito Marcote 2 years ago
parent
commit
bdce5185a6
  1. 2
      comment_tasav_file.py
  2. 41
      post_processing.sh

2
comment_tasav_file.py

@ -258,7 +258,7 @@ def parse_setup(exp, type_exp, freq, datarate, number_ifs, bandwidth, pols):
name_pols = {1: 'single', 2: 'dual', 4: 'full'}
s = '{}. {}-band experiment observed on {}.\n'.format(exp.upper(), band, obsdate.strftime('%d %B %Y'))
s += 'This is a {} pass data.<br>\n'.format('continuum' if type_exp == 'cont' else 'spectral line')
s += 'This is a {} pass dataset.<br>\n'.format('continuum' if type_exp == 'cont' else 'spectral line')
s += 'The data rate was {} Mbps ({} x {} MHz subbands, {} polarization, two-bit sampling)<br>\n'.format(
datarate, number_ifs, bandwidth, name_pols[pols])

41
post_processing.sh

@ -17,11 +17,20 @@ exp=$1
exp=${(L)1}
EXP=${(U)1}
echo $exp
echo $EXP
date=${ssh jops@ccs grep EC067A /ccs/var/log2vex/MASTER_PROJECTS.LIS | cut -d " " -f 3}
# In the case of eEVN with an experiment name different this method may not work
if [[ -n $date ]];then
date=${ssh jops@ccs grep EC067A /ccs/var/log2vex/MASTER_PROJECTS.LIS | cut -d " " -f 4}
fi
# Sometimes it has a \n or empty spaces.
date=${${${date}:s/"\\n"/""}:s/" "/""}
echo 'Processing experiment ${EXP}_${date}.\n'
# Create the lis file from ccs
ssh jops@ccs "/ccs/expr/${EXP};make_lis -e ${EXP} -p prod -s ${exp}.lis"
ssh jops@ccs "cd /ccs/expr/${EXP};/ccs/bin/make_lis -e ${EXP} -p prod -s ${exp}.lis"
scp jops@ccs:/ccs/expr/${EXP}/${exp}.vix ./${exp}.vix
scp jops@ccs:/ccs/expr/${EXP}/${exp}.lis ./${exp}.lis
@ -46,3 +55,29 @@ j2ms2 -v ${exp}.lis
standardplots -weight ${exp}.ms $2 $3
read -q "REPLY?Check the standard plots. Do you want to continue? (y/n) "
if [[ ! $REPLY == 'y' ]];then
exit
fi
echo '\n'
ysfocus.py ${exp}.ms
read -q "THRESHOLD?Which weight threshold should be applied to the data? "
echo '\n'
flag_weights.py ${exp}.ms $THRESHOLD
tConvert ${exp}.ms ${exp}_1_1.IDI
export pass=$(date | md5sum | cut -b 1-12)
touch ${exp}_${pass}.auth
gzip *ps
archive -auth -e ${exp}_${date} -n ${exp} -p ${pass}
archive -stnd -e ${exp}_${date} ${exp}.piletter *ps.gz
archive -fits -e ${exp}_${date} *IDI*

Loading…
Cancel
Save