@echo off
setLocal EnableDelayedExpansion

cd ..
set WRK=%CD%

set DIR=c:
set PGM=%DIR%\hysplit
cd %PGM%\working

REM Select simulation results
REM SET INP=hysplit2.bin
SET INP=%WRK%\results\S8.4\hysplit2.bin

IF NOT EXIST %INP% (
   echo Missing input file %INP%
   echo Re-run previous example!
   pause
)

IF EXIST concplot.html DEL concplot.html
ECHO 'TITLE^&','### %0 ### ^&' >LABELS.CFG
%PGM%\exec\concplot +g1 -i%INP% -j%PGM%\graphics\arlmap -z95 -x1.0E+12 -upg -q%WRK%\captex\captex2_avrg.txt
concplot.html
