#!/bin/csh -f

 echo $1
 echo '# sampling period 30.4375' > pre_files/$1.mom
 cat pre_files/$1.mom > $1.mom
 cat iny.bos/$1 >> pre_files/$1.mom
 sed -e "s/xxxx/$1/" estimatetrend.ctl_2 > estimatetrend.ctl
 estimatetrend < $1.mom > out2.bos/$1
 rm $1.mom

