@echo off
setLocal EnableDelayedExpansion

set DIR=c:
set PGM=%DIR%\hysplit4
cd %PGM%\working
SET INP=hysplit2.bin

IF NOT EXIST %INP% (
   echo Missing input file %INP%
   echo Re-run previous example!
   pause
)

IF EXIST concplot.ps DEL concplot.ps
ECHO 'TITLE^&','### %0 ### ^&' >LABELS.CFG
%PGM%\exec\concplot -i%INP% -j%PGM%\graphics\arlmap -z80 -x1.0E+12 -upg
ECHO Creating concplot animation ...
convert -trim +repage -density 140 -loop 100 -delay 50 -dispose Background concplot.ps concplot.gif
concplot.gif
PAUSE

ECHO Creating particle plot ...
convert -trim +repage -density 140 -lo
%PGM%\exec\parxplot -iPARDUMP -j%PGM%\graphics\arlmap -k1 -z80 -n10
ECHO Creating parxplot animation ...
convert -trim +repage -density 140 -loop 100 -delay 50 -dispose Background parxplot.ps parxplot.gif
parxplot.gif
PAUSE

%PGM%\exec\isochron -i%INP% -j%PGM%\graphics\arlmap -d6 -n10 -t0.0
toa.ps
PAUSE

%PGM%\exec\gridplot -i%INP% -ogridplot -j%PGM%\graphics\arlmap -c1.0E+12 -d2.0 -a1 -upg -l-1.0  
ECHO Creating gridplot animation ...
convert -trim +repage -density 140 -loop 100 -delay 50 -dispose Background gridplot.ps gridplot.gif
gridplot.gif
