swcx uses the spectral fitting results from Xspec and model SWCX detector maps to create model SWCX contamination maps for a given observation.
Warning and requirements: swcx is part of the esas package, integrated into SAS, but (still) limited to work within the esas data reduction scheme. This is specially true vis a vis input files structure and names. In particular, swcx assumes that another task from the package, mosspectra / pnspectra, and mosback / pnback, have been successfully run for the mos / pn exposures to be used, and that spectral fitting has been done.