#!/bin/csh

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


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

echo $1.fis > ~/smo5scn.tmp
echo $1.f5s >> ~/smo5scn.tmp
echo y >> ~/smo5scn.tmp
echo $2 >> ~/smo5scn.tmp

$3/smooth5s -in < ~/smo5scn.tmp


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



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

echo $1.f5s > ~/smo5scn.tmp
echo $1.f55 >> ~/smo5scn.tmp
echo y >> ~/smo5scn.tmp
echo $2 >> ~/smo5scn.tmp

$3/smooth5s -in < ~/smo5scn.tmp


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


