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
22 echo "Could not find the WPS Regression Data anywhere"
27 # First, get rid of any old versions laying around.
29 set HTML
= Awps_reg.html
35 # Top portion of the web page, all that header and title stuff.
38 echo "<HEAD>" >> $HTML
39 echo "<TITLE> WPS, ARW Real, and WRF Forecast Regression Test Status Page for `uname`</title>" >> $HTML
41 echo "</HEAD>" >> $HTML
43 echo "<BODY bgcolor='#FFFFFF'>" >> $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
49 echo "<center>" >> $HTML
50 echo "<table BORDER='0' CELLPADDING='5' WIDTH='70%' CELLSPACING='5'>" >> $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
59 set TNUM
= ( `ls -1 WPS/test_suite` )
63 set CASE_NAME
= ( `grep geogrid WPS/test_suite/${n}/the_env | awk '{print $3}'` )
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
73 set ALL_ICs
= ( `ls -1 ${DATA_DIR}/${n}/DATA` )
74 foreach IC
( $ALL_ICs )
79 echo "<td><b>CASE NAME ${CASE_NAME}<br>${IC}</b></td>" >> $HTML
80 echo "<td BGCOLOR='#FFFFFF'>" >> $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
87 echo "<td BGCOLOR='#FFFFFF'>" >> $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
97 echo "<td BGCOLOR='#FFFFFF'>" >> $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