rmfgen provides RMFs for PN data, based on the model provided by MPE. The task determines which is the instrument in question from the information in the input spectrum dataset.
The PN response model is spatially dependent and has been defined in terms of the CCD line. The task extracts this from the datasubspace stored in the spectrum file header.
The PN response is also dependent upon the observing mode. This is obtained from the keyword SUBMODE in the header of the input spectrum. If the mode contained in this header is not recognised the PRIME_FULL_WINDOW mode is used by default.