Fix subscript bug. g95 ignored it, but pgi insisted it be fixed.
[WPS.git] / util / wps_reg_html_maker.csh
blobee6472831e6bc0d96b19d02a9226c4d4d8b0b70a
1 #!/bin/csh
3 # Script to build the WPS Regression Test Page
5 # For saftey purposes, unalias any silly things users have for
6 # these commonly cobbled up commands.
8 unalias cp rm ln cd popd
10 # Where should we be expecting to find data?
12 if ( -d /mmm/users/gill/DATA/WPS_regression_data/TEST_001 ) then
13 set DATA_DIR = /mmm/users/gill/DATA/WPS_regression_data
14 else if ( -d /standalone/users/gill/DATA/WPS_regression_data/TEST_001 ) then
15 set DATA_DIR = /standalone/users/gill/DATA/WPS_regression_data
16 else if ( -d /stink/gill/DATA/WPS_regression_data/TEST_001 ) then
17 set DATA_DIR = /stink/gill/DATA/WPS_regression_data
18 else if ( -d /data3a/mp/gill/DATA/WPS_regression_data/TEST_001 ) then
19 set DATA_DIR = /data3a/mp/gill/DATA/WPS_regression_data
20 else
21 echo " "
22 echo "Could not find the WPS Regression Data anywhere"
23 echo " "
24 exit ( 1 )
25 endif
27 # First, get rid of any old versions laying around.
29 set HTML = Awps_reg.html
31 if ( -e $HTML ) then
32 /bin/rm $HTML
33 endif
35 # Top portion of the web page, all that header and title stuff.
37 echo "<HTML>" > $HTML
38 echo "<HEAD>" >> $HTML
39 echo "<TITLE> WPS, ARW Real, and WRF Forecast Regression Test Status Page for `uname`</title>" >> $HTML
40 echo " " >> $HTML
41 echo "</HEAD>" >> $HTML
42 echo " " >> $HTML
43 echo "<BODY bgcolor='#FFFFFF'>" >> $HTML
44 echo " " >> $HTML
45 echo "<CENTER>" >> $HTML
46 echo "<H2><B>WPS, ARW Real, and WRF Forecast Regression Test Status Page for `uname`</B> </H2><BR>" >> $HTML
47 echo "</CENTER>" >> $HTML
48 echo " " >> $HTML
49 echo "<center>" >> $HTML
50 echo "<table BORDER='0' CELLPADDING='5' WIDTH='70%' CELLSPACING='5'>" >> $HTML
51 echo "<tr>" >> $HTML
52 echo "<td WIDTH='25%' BGCOLOR='#FFFFFF' ALIGN='left' VALIGN='top'><b></b></td>" >> $HTML
53 echo "<td WIDTH='25%' BGCOLOR='#FFFFFF' ALIGN='left' VALIGN='top'><b>Constants</b></td>" >> $HTML
54 echo "<td WIDTH='25%' BGCOLOR='#FFFFFF' ALIGN='left' VALIGN='top'><b>0 h FCST</b></td>" >> $HTML
55 echo "<td WIDTH='25%' BGCOLOR='#FFFFFF' ALIGN='left' VALIGN='top'><b>6 h FCST</b></td>" >> $HTML
56 echo "</tr>" >> $HTML
59 set TNUM = ( `ls -1 WPS/test_suite` )
61 foreach n ( $TNUM )
63 set CASE_NAME = ( `grep geogrid WPS/test_suite/${n}/the_env | awk '{print $3}'` )
65 echo " " >> $HTML
66 echo "<tr>" >> $HTML
67 echo "<td BGCOLOR='#FFAAAA'><b>${CASE_NAME}</b></td>" >> $HTML
68 echo "<td BGCOLOR='#FFFFFF'> </td>" >> $HTML
69 echo "<td BGCOLOR='#FFFFFF'> </td>" >> $HTML
70 echo "<td BGCOLOR='#FFFFFF'> </td>" >> $HTML
71 echo "</tr>" >> $HTML
73 set ALL_ICs = ( `ls -1 ${DATA_DIR}/${n}/DATA` )
74 foreach IC ( $ALL_ICs )
76 set flnm = ${n}_${IC}
77 echo " " >> $HTML
78 echo "<tr>" >> $HTML
79 echo "<td><b>CASE NAME ${CASE_NAME}<br>${IC}</b></td>" >> $HTML
80 echo "<td BGCOLOR='#FFFFFF'>" >> $HTML
81 echo "<dl>" >> $HTML
82 echo "<dt><a href='./${n}.source=${IC}/plot_01.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_01_small.gif'>LU</a>" >> $HTML
83 echo "<dt><a href='./${n}.source=${IC}/plot_02.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_02_small.gif'>Topo</a>" >> $HTML
84 echo "</dl>" >> $HTML
85 echo "</td>" >> $HTML
86 echo " " >> $HTML
87 echo "<td BGCOLOR='#FFFFFF'>" >> $HTML
88 echo "<dl>" >> $HTML
89 echo "<dt><a href='./${n}.source=${IC}/plot_03.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_03_small.gif'>SLP</a>" >> $HTML
90 echo "<dt><a href='./${n}.source=${IC}/plot_04.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_04_small.gif'>850</a>" >> $HTML
91 echo "<dt><a href='./${n}.source=${IC}/plot_05.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_05_small.gif'>700</a>" >> $HTML
92 echo "<dt><a href='./${n}.source=${IC}/plot_06.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_06_small.gif'>500</a>" >> $HTML
93 echo "<dt><a href='./${n}.source=${IC}/plot_07.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_07_small.gif'>300</a>" >> $HTML
94 echo "</dl>" >> $HTML
95 echo "</td>" >> $HTML
96 echo " " >> $HTML
97 echo "<td BGCOLOR='#FFFFFF'>" >> $HTML
98 echo "<dl>" >> $HTML
99 echo "<dt><a href='./${n}.source=${IC}/plot_08.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_08_small.gif'>SLP</a>" >> $HTML
100 echo "<dt><a href='./${n}.source=${IC}/plot_09.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_09_small.gif'>850</a>" >> $HTML
101 echo "<dt><a href='./${n}.source=${IC}/plot_10.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_10_small.gif'>700</a>" >> $HTML
102 echo "<dt><a href='./${n}.source=${IC}/plot_11.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_11_small.gif'>500</a>" >> $HTML
103 echo "<dt><a href='./${n}.source=${IC}/plot_12.html' target='_new'><img src='./${n}.source=${IC}/${flnm}_12_small.gif'>300</a>" >> $HTML
104 echo "</dl>" >> $HTML
105 echo "</td>" >> $HTML
106 echo "</tr>" >> $HTML
110 echo "</table>" >> $HTML
111 echo "</BODY>" >> $HTML
112 echo "</HTML>" >> $HTML