# compute_energy_thresholds¶

gammapy.irf.compute_energy_thresholds(aeff, edisp, method_lo='none', method_hi='none', **kwargs)[source]

Compute safe energy thresholds from 1D energy dispersion and effective area.

Set the high and low energy threshold based on a chosen method. For now the methods return thresholds assuming true and reco energy are comparable.

Available methods for setting the low energy threshold:

• area_max : Set energy threshold at x percent of the maximum effective area (x given as kwargs[‘area_percent_lo’])
• energy_bias : Set energy threshold at energy where the energy bias exceeds a value of x percent (given as kwargs[‘bias_percent_lo’])
• none : Do not apply a lower threshold

Available methods for setting the high energy threshold:

• area_max : Set energy threshold at x percent of the maximum effective area (x given as kwargs[‘area_percent_hi’]). The threshold is searched in the last true energy decade of the effective area.
• energy_bias : Set energy threshold at energy where the energy bias exceeds a value of x percent (given as kwargs[‘bias_percent_hi’]). The threshold is searched in the last true energy decade of the energy dispersion.
• none : Do not apply a higher energy threshold
Parameters: aeff : EffectiveAreaTable the 1D effective area edisp : EnergyDispersion the energy dispersion used method_lo : {‘area_max’, ‘energy_bias’, ‘none’} Method for defining the low energy threshold method_hi : {‘area_max’, ‘energy_bias’, ‘none’} Method for defining the high energy threshold