create_gh_cuts_hdu#

magicctapipe.io.create_gh_cuts_hdu(gh_cuts, reco_energy_bins, fov_offset_bins, **header_cards)[source]#

Creates a fits binary table HDU for dynamic gammaness cuts.

Parameters:
gh_cutsnp.ndarray

Array of the gammaness cuts, which must have the shape (n_reco_energy_bins, n_fov_offset_bins)

reco_energy_binsastropy.units.quantity.Quantity

Bin edges in the reconstructed energy

fov_offset_binsastropy.units.quantity.Quantity

Bin edges in the field of view offset

**header_cardsdict

Additional metadata to add to the header

Returns:
astropy.io.fits.hdu.table.BinTableHDU

Gammaness-cut HDU