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.

hist1d_to_table

gammapy.utils.root.hist1d_to_table(hist)[source]

Convert 1D ROOT histogram into astropy table.

Parameters:

hist : ROOT.TH1

ROOT histogram

Returns:

table : Table

Astropy table