#!/bin/csh
#		IAMESONET_plot.csh
#####################################################

source /home/nawips/Gemenviron

setenv GEMCOLTBL coltbl.xwp

set yy=`date -u +%y`
set mm=`date -u +%m`
set dd=`date -u +%d`
set date=${yy}${mm}${dd}
set hh=`date -u +%H`

set nicetime=`date +"%b %d %I %p"`

rm mesonet.gif* >& /dev/null

set DEVICE="GIF|mesonet.gif|900;700"
set AREA="40.15;-97.1;43.85;-89.9"

# Now we plot
sfmap << EOF > TMP/IAMESONET_sfmap.out
	AREA    = ${AREA}
	GAREA    = ${AREA}
 	SATFIL   =  
	RADFIL   =  
	SFPARM   =  skyc:.6;tmpf<120;wsym:1.2:2;alti;;dwpf<120;;;;brbk:1:1:231
	COLORS   =  32;2;32;0;4;32
 	DATTIM   =  ${date}/${hh}
 	SFFILE   =  /mesonet/data/gempak/${date}_meso.gem
 	LATLON   =  0
        TITLE    =  32/-1/GMT: ~ Iowa Mesonet Data
        CLEAR    =  yes
        PANEL    =  0
        DEVICE   = ${DEVICE}
        PROJ     =  LCC
        FILTER   =  .3
        TEXT     =  1/1//hw
        LUTFIL   =
        STNPLT   =
	MAP	= 25 + 25//2
	\$MAPFIL = HICNUS.NWS + hipowo.cia
	list
	run

	exit
EOF


gpend

if (-e mesonet.gif) then
	cp mesonet.gif WEB/
endif

