#!/bin/csh -f
#
#  This script manages the Multiscale Window Transform runs.
#
#  Arguments:
#
#     1  - KSTM1  starting vertical level minus 1
#     2  - KND    ending vertical level

unset noclobber

set datemwt = `date`

#-----------------------------------------------
#--- Launch Multiscale Window Transform run. ---
#-----------------------------------------------

set kp=$1

while ($kp < $2)
@ kp += 1

echo MWT Level $kp

nice +5 /data/projects2/AOSN2/Bin_Sun5/mwt<<EIEIO
$kp	        kp: horizontal level to be processed
1, 83, 1, 96	(ix0, ix1, jy0, jy1): Horiz delimits for the domain.
2		ext_id:	B. Ext. type. 1: periodical; 2: symmetric.
1501., 1501., 10800.	dx, dy, dt: stepsizes. in meters & seconds
/data/projects2/AOSN2/NotHops/MSEVA/Bases/1-D/phi.dat
/data/projects2/AOSN2/NotHops/MSEVA/Bases/1-D/t.dat
/data/projects2/AOSN2/NotHops/MSEVA/Bases/1-D/h0.dat
Profile/drho_dz.dat
interpol/pe_out_3hrflat.nc
Data-mwt
EIEIO


end

#----------------------------
#--- Announce Completion. ---
#----------------------------

Mail haley<<EIEIO
~s Multiscale Window Transform Job Done

The first Data Domain AOSN-II Multiscale Window Transform job
submitted to `hostname` on $datemwt is now
complete.  Please examine the files in the directory

   $cwd/Data-mwt

Thanks

Pat
EIEIO
