#!/bin/sh
if [ "$#" -eq 0 ] 
then 
echo "No File Name"
fi

if [ "$#" -eq 1 -o "$#" -eq 2 ]
then
./nhmmode $2 < $1 | ./mercpat | ./intMercNW tmu m n | cat - $1 | ./nhmtrans p $2
fi

if [ "$#" -eq 3 ]
then
./nhmmode $2 < $1 | ./mercpat | ./intMercNW tmu m n | ./nhmfilter | cat - $1 | ./nhmtrans p $2
fi
