#!/bin/csh

setenv HEADAS /software/lheasoft/6.11/linux/
source $HEADAS/BUILD_DIR/headas-init.csh


foreach XISID (0 1 3)

rm -f addrmf_xi${XISID}.list 2amin_xi${XISID}.rsp

sed s/xi0/xi${XISID}/g addrmf_xi0.list.org > addrmf_xi${XISID}.list

echo "----------------------------------------------------------------"
echo "addrmf list=@addrmf_xi${XISID}.list rmffile=2amin_xi${XISID}.rsp"
echo "----------------------------------------------------------------"
addrmf list="@addrmf_xi${XISID}.list" rmffile="2amin_xi${XISID}.rsp"

end

echo done

