File: plot_OmD_small_test.sh

package info (click to toggle)
inhomog 0.1.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 2,476 kB
  • sloc: ansic: 10,454; sh: 4,380; makefile: 173
file content (29 lines) | stat: -rwxr-xr-x 627 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
BASE=OmD_examp_20151011
EV=evRay
SIG=sig1.0

for R in 0.00746269 0.0160779 0.0346387; do
    OUTFILE=${BASE}_${R}_all_tmp.dat
    rm -f ${OUTFILE}
    touch ${OUTFILE}
    for BKS in D U; do
	case ${BKS} in
	    "D")
		CURVS="1"
		;;
	    *)
		CURVS="0 1"
		;;
	esac
	     
	for CURV in ${CURVS}; do
	    for ((KBS=0; KBS<7; KBS++)); do
		grep "freq.*${R}" ${BASE}_BKS${BKS}_CURV${CURV}_${EV}_i_kbs${KBS}_${SIG}.log | \
		    awk '{print $6,$7}' |sed -e "s/^/${BKS} ${CURV} ${KBS} /" | \
		    sed -e 's/D/1/' |sed -e 's/U/0/' >> ${OUTFILE}
		#echo "" >> ${OUTFILE}
	    done
	done
    done # for BKS
    ls -l ${OUTFILE}
done