#!/bin/csh
cd $SCRIPTS/rad/webloop

echo "`date` - designed to run after makeweb completes ($0 needs files makeweb creates to produce natrad_4pnl_test.png)"

if (! -e plot_rad.ctl) then
	echo "`date` - apparently the makeweb script is running or hasnt been run in a while -- so this script cant run"
	goto EXITING
endif

set TESTPNG=natrad_4pnl_test.png
touch $TESTPNG; /bin/rm $TESTPNG

gp 4pnl_test

if (! -e $TESTPNG) echo "`date` - $TESTPNG was not created check test.log for more info"
if (  -e $TESTPNG) echo "`date` - $TESTPNG ready for display"

EXITING:
exit()
