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