#A simple script to make the template for this form. The user must 
#manually alter things like the clean counterpart flag, the redshift, 
#and the line.
paste classify_j1.out cut_diagnose.out > junk1
cat junk1 | awk '{if ($7=="0") print $1"\t"$15"\t"$9"\t"2"\t"$4/3727.092-1.0"  \t"$4"\t\t"$27"\t"$28" \t"$13"\t"$14"\t0"; else if ($7==1) print $1"\t"$15"\t"$9"\t"1"\t"$4/1215.67-1.0"  \t"$4"\t\t"$27"\t"$28" \t"$13"\t"$14"\t0"; else print $1"\t"$15"\t"$9"\t"$7"\t-99  \t\t"$4"\t\t"$27"\t"$28" \t"$13"\t\t"$14"\t\t1"}' > Gui_form0.cat
rm -f junk1
