rot-im-det-sky controls the recasting of images from detector coordinates into sky coordinates. It is used to reproject both the model particle background and model soft proton images. It extracts the central pixel values and coordinates from a template image and uses a call to esky2det to determine the detector coordinates for that location. rot-im-det-sky the calls the task rot_det_sky to do the reprojection.
Warning and requirements: rot-im-det-sky is part of the esas package integrated into SAS, but it is limited to work within the esas data reduction scheme. This is specially true wrt the structure and names if the input files. In particular, rot-im-det-sky assumes that other tasks from the package, mos-spectra and mos_back have been successfully run for the recasting of the particle background, as well as proton for the recasting of the soft proton background.