Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

TH2_to_FITS_data

gammapy.utils.root.TH2_to_FITS_data(hist, flipx=True)[source]

Convert TH2 bin values into a numpy array.

Parameters:

hist : ROOT.TH2

ROOT histogram

Returns:

data : array

Histogram data