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_cuts
np.ndarray Array of the gammaness cuts, which must have the shape (n_reco_energy_bins, n_fov_offset_bins)
- reco_energy_bins
astropy.units.quantity.Quantity Bin edges in the reconstructed energy
- fov_offset_bins
astropy.units.quantity.Quantity Bin edges in the field of view offset
- **header_cards
dict Additional metadata to add to the header
- gh_cuts
- Returns:
astropy.io.fits.hdu.table.BinTableHDUGammaness-cut HDU