ERI_FOLDN

Fold NSPEC energy spectra through the instrument responses

Invocation

CALL ERI_FOLDN( NENER, NSPEC, ESPEC, NCHAN, RMFID, ARFID,

Description

Folds the supplied energy spectrum through the energy response supplied. The response is in the form of a redistribution matrix and an area response. If the former is normalised then the second object is required to convert to counts/cm**2. This routine handles different kinds of response denoted by the 'CompressMethod' data member of RMFID,

ASTERIX - The format is a simple list of the elements of the 2D sparse matrix. ChannelIndices and EnergyIndices arrays hold the channel and energy bin numbers of the non-zero RMF elements.

XANADU -

NONE - Energy and Channels arrays hold boundaries of bins and RMF is a simple 2D array NCHAN x NENER storing the redistribution probability.

Arguments

References

CODE