#!/bin/sh

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

offset=12
increm=6
     
olat=39.90
olon=-84.22
        
data="captex2_wrf27uw.bin"

#  -d[Input metdata directory name with ending /]
#  -f[input metdata file name]
#  -y[Latitude]
#  -x[Longitude]
#  -o[Output time offset (hrs)]
#  -t[Output time interval (hrs)]
#  -n[Hours after start time to stop output (hrs))]
#  -w[Wind direction instead of components=1]
#  -p[process ID number for output text file]

${MDL}/exec/profile -d$MET/ -f$data -y$olat -x$olon -o$offset -t$increm 
cat profile.txt
