#!/bin/tcsh

setenv BASEDIR /home/www/htdocs/icm


awk '{ if (NR > 3) { \
   print NR-3 , $8 >  "wsh.dat" ; \
   print NR-3 , $9 >  "wsl.dat" ; \
   print NR-3 , $10 > "wri.dat" ; \
   print NR-3 , $11 > "wti.dat" ; \
   print NR-3 , $12 > "wro.dat" ; \
   print NR-3 , $13 > "wtw.dat" ; \
}} ' icm.par 



gracebat -par $BASEDIR/pars/icmgrace.par -nxy icm.dat  -hardcopy -hdevice PNG -printfile E.png -fixed 200 200
gracebat -par $BASEDIR/pars/sh.par -autoscale xy -hardcopy -hdevice PNG -printfile thumb.wsh.png -fixed 150 125 wsh.dat
gracebat -par $BASEDIR/pars/sl.par -autoscale xy -hardcopy -hdevice PNG -printfile thumb.wsl.png -fixed 150 125 wsl.dat
gracebat -par $BASEDIR/pars/ri.par -autoscale xy -hardcopy -hdevice PNG -printfile thumb.wri.png -fixed 150 125 wri.dat
gracebat -par $BASEDIR/pars/ti.par -autoscale xy -hardcopy -hdevice PNG -printfile thumb.wti.png -fixed 150 125 wti.dat
gracebat -par $BASEDIR/pars/ro.par -autoscale xy -hardcopy -hdevice PNG -printfile thumb.wro.png -fixed 150 125 wro.dat
gracebat -par $BASEDIR/pars/tw.par -autoscale xy -hardcopy -hdevice PNG -printfile thumb.wtw.png -fixed 150 125 wtw.dat

gracebat -par $BASEDIR/pars/icmgrace.par -nxy icm.dat  -hardcopy -hdevice PNG -printfile EL.png -fixed 700 600
gracebat -par $BASEDIR/pars/sh.par -autoscale xy -hardcopy -hdevice PNG -printfile wsh.png -fixed 500 400 wsh.dat
gracebat -par $BASEDIR/pars/sl.par -autoscale xy -hardcopy -hdevice PNG -printfile wsl.png -fixed 500 400 wsl.dat
gracebat -par $BASEDIR/pars/ri.par -autoscale xy -hardcopy -hdevice PNG -printfile wri.png -fixed 500 400 wri.dat
gracebat -par $BASEDIR/pars/ti.par -autoscale xy -hardcopy -hdevice PNG -printfile wti.png -fixed 500 400 wti.dat
gracebat -par $BASEDIR/pars/ro.par -autoscale xy -hardcopy -hdevice PNG -printfile wro.png -fixed 500 400 wro.dat
gracebat -par $BASEDIR/pars/tw.par -autoscale xy -hardcopy -hdevice PNG -printfile wtw.png -fixed 500 400 wtw.dat
