#!/bin/csh -fv 

set echo
set verbose

set datadir = /fs/cgd/data0/yeager/POP_GRIDS/data
set nsmoothh = 1
set nsmoothk = 0
set removeisolatedpts = 1
set removeisolatedrgs = 0
set minh = 5.
set minkmt = 3

#################################
# SET HERE FILE INPUT
#################################

cat >! input.topography << EOF
320 384 60
grid.plot.da
gx1v5_vert_grid
1
h_unsmoothed.da
$minh
$nsmoothh
$nsmoothk
$removeisolatedrgs
$removeisolatedpts
0
$minkmt
1
kmt_e2b.ns.da
EOF

#################################
# RUN GRID ROUTINES
#################################

#../bin/topography < input.topography  >! output.topography
../bin/topography_e2b < input.topography  >! output.topography

exit(0)
