next up previous contents
Next: Individual Science Windows Spectra Up: Source Spectra Extraction Previous: Energy binning definition   Contents


Spectral response generation

For spectral analysis, a response redistribution function (RMF) should be generated according to the spectral binning specified by the user. The j_rebin_rmf script allows to do this very easily. There are several ways to run this script. The user can specify the bins individually, generate a bin list in a text file (see FTOOLS rbnrmf explanations). For example,

j_rebin_rmf chanMin="46 77 130 175" chanMax="76 129 174 233" jemx_num=2
or
j_rebin_rmf binlist=mybins.txt outfile="jmx1_rmf_mybins.fits"
Otherwise, it is possible to use pre-defined standard binnings matching those set with nChanBins :
j_rebin_rmf binlist=STD_016
(matches nChanBins=-4). As a result, a file jemx_rebinned_rmf.fits (unless a different file name has been specified through outfile), which contains the rebinned RMF will be produced.

Note that jemx_num=1 is the default value. The output file name (default jemx_rebinned_rmf.fits) can be set through the outfile parameter. It is convenient to create an RMF before the spectral analysis so that one can just pass the rebinned RMF to the analysis scripts. In this way, the fits files with the spectra will automatically contain a link to the correct RMF.



inthelp@sciops.esa.int