#!/bin/sh

MDL=${1:-"${HOME}/hysplit"}
OUT=${2:-"${MDL}/working"}
  DSP=${3:-"YES"}
cd $OUT
echo "### ${0##*/} ###"

syr=83
smo=09
smn=00

dir=225
spd=6.0
mix=1500.0
stb=3
     
olat=40.7
olon=-83.5
        
inpfile="stndata.txt" 
outfile="stndata.bin" 
rm -f $inpfile $outfile

for sda in 25 26;do
for shr in 00 06 12 18;do
    echo $syr $smo $sda $shr $smn $dir $spd $mix $stb >>$inpfile
done
done
echo $inpfile

${MDL}/exec/stn2arl $inpfile $outfile $olat $olon
${MDL}/exec/profile -d./ -f$outfile  
cat profile.txt
