rmfgen spectrumset=spectrum.ds rmfset=myresp.rmf detmaptype=flat
and supplying an image to give the ultimate accuracy by:
rmfgen spectrumset=spectrum.ds rmfset=myresp.rmf detmaptype=dataset detmaparray=myimage.ds
NB: The image supplied MUST be in detector and NOT sky (X/Y) coordinates.