source: ETALON/SPESO/analysis/mkDataSummary.sh @ 505

Last change on this file since 505 was 82, checked in by delerue, 10 years ago

Added SPESO analysis sh and awk files

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/tcsh -f
2
3if ( $# > 1) then
4echo "mkDataSummary: Too many arguments!"
5exit -1
6endif
7if ( $# < 1) then
8echo "mkDataSummary: Too few arguments!"
9exit -1
10endif
11
12set basename = `echo $1  | sed -e 's/_dec.html//'`
13
14set width = 400
15
16echo "<HTML>" > $1
17echo "<title>" >> $1
18echo "SPESO data - $basename " >> $1
19echo "</title>" >> $1
20echo "<h1>" >> $1
21echo "SPESO data - $basename " >> $1
22echo "</h1>" >> $1
23echo "<P>"  >> $1
24echo "<A HREF='../summary.html'>Back to global summary</A> " >> $1
25echo "</P>"  >> $1
26echo "<table>" >> $1
27
28foreach iloop (10 13 8 12 14 15 16)
29#    echo $iloop
30    echo "<tr><td>Channel ${iloop} </td><td><IMG SRC=${basename}_channel_${iloop}.png width=${width}></td><td><IMG SRC=${basename}_channel_${iloop}_folded_from_20ms_to_200_ms.png width=${width}></td><td><IMG SRC=${basename}_channel_${iloop}_folded_from_40ms_to_41_ms.png width=${width}></td></tr>" >> $1
31end
32echo "</table>" >> $1
33
34
35echo "<table>" >> $1
36foreach iloop (10 13 7 8 12 15)
37    echo "<tr><td>(orig) Channel ${iloop} </td><td><IMG SRC=${basename}_dec${iloop}.png width=${width}></td><td><IMG SRC=${basename}_dec${iloop}_late.png width=${width}></td></tr>" >> $1
38end
39echo "</table>" >> $1
40
41echo "<IMG SRC=${basename}_dec1_8.png width=${width}><IMG SRC=${basename}_dec9_16.png width=${width}><IMG SRC=${basename}_dec8_10_12_13_15.png width=${width}> " >> $1
42
43ls ${basename}*.png | awk -v width=${width} '{print "<IMG SRC=" $1 " width=" width "></BR>" }' >> $1
44echo "</HTML>" >> $1
45
Note: See TracBrowser for help on using the repository browser.