#!/bin/csh ############################################################# # Edit the correlation matrix corresponding to a bin ############################################################# # theTab / theCat are known # $1 = type+Bin ############################################################# echo1 "\subsection*{M/L correlation matrix for bin {\fg{red4}$1}}" echo1 "\begin{PRE}" fcat table3.dat | gawk -v bin="$1" 'BEGIN{print " Mpc/h "; \ t=substr(bin,1,1); vu=substr(bin,2)+0.3; vl=vu-0.6}\ { if($1!=t) next ; v=$2+0; if(vvu)next; \ printf "%6.3f |", $3+0; \ for(i=7; i<=NF; i++) printf " %6.3f", $i+0; print " |" }' echo1 "\end{PRE}"