#! /bin/tcsh -f
echo "cleaning home"
\rm tmpcom*$1
\rm tmperr*$1
\rm tmpimo*$1
\rm tmprmf*$1
\rm tmpswi*$1
\rm $1.out
echo "cleaning scratch"
du -h -c /scratch/jemx/qqq/$1_??/ | tail -1
echo "cleaning scratch scw"
\rm -r /scratch/jemx/qqq/$1_??/obs/*/scw
echo "cleaning scratch bin"
\rm -f /scratch/jemx/qqq/$1_??/obs/*/*.bin
\rm -f /scratch/jemx/qqq/$1_??/obs/*/*.txt
\rm -f /scratch/jemx/qqq/$1_??/obs/*/*.fits
du -h -c /scratch/jemx/qqq/$1_??/ | tail -1
