#!/bin/csh

unalias rm
if ( -e ~/smo3scn.tmp) then
	rm -f ~/smo3scn.tmp
endif

echo SMOOTHING FITS FOR FILE $1, 3 POINT RECTANGULAR, $2 MIN. MAXIMUM DELTA TIME

echo $1.fis > ~/smo3scn.tmp
echo $1.f3s >> ~/smo3scn.tmp
echo y >> ~/smo3scn.tmp
echo $2 >> ~/smo3scn.tmp

$3/smooth3s -in < ~/smo3scn.tmp


if ( -e ~/smo3scn.tmp) then
	rm -f ~/smo3scn.tmp
endif

echo SMOOTHING FITS FOR FILE $1, 3 POINT TRIANGULAR, $2 MIN. MAXIMUM DELTA TIME

echo $1.f3s > ~/smo3scn.tmp
echo $1.f33 >> ~/smo3scn.tmp
echo y >> ~/smo3scn.tmp
echo $2 >> ~/smo3scn.tmp

$3/smooth3s -in < ~/smo3scn.tmp


if ( -e ~/smo3scn.tmp) then
	rm -f ~/smo3scn.tmp
endif


