rmf_to_matrix

sherpa.astro.instrument.rmf_to_matrix(rmf: DataRMF | RMF1D) → RMFMatrix[source] [edit on github]

Convert a RMF to a matrix (2D image).

Added in version 4.16.0.

Parameters:
rmfDataRMF or RMF1D

The RMF instance.

Returns:
infoRMFMatrix

The matrix as a 2D array (X axis is channels and Y axis is energy, and the channel and energy axes.