FluxPointsEstimator

class gammapy.estimators.FluxPointsEstimator(e_edges, source=0, norm_min=0.2, norm_max=5, norm_n_values=11, norm_values=None, sigma=1, sigma_ul=2, reoptimize=False)[source]

Bases: gammapy.estimators.flux.FluxEstimator

Flux points estimator.

Estimates flux points for a given list of datasets, energies and spectral model.

To estimate the flux point the amplitude of the reference spectral model is fitted within the energy range defined by the energy group. This is done for each group independently. The amplitude is re-normalized using the “norm” parameter, which specifies the deviation of the flux from the reference model in this energy group. See https://gamma-astro-data-formats.readthedocs.io/en/latest/spectra/binned_likelihoods/index.html for details.

The method is also described in the Fermi-LAT catalog paper https://ui.adsabs.harvard.edu/#abs/2015ApJS..218…23A or the HESS Galactic Plane Survey paper https://ui.adsabs.harvard.edu/#abs/2018A%26A…612A…1H

Parameters
e_edgesQuantity

Energy edges of the flux point bins.

sourcestr or int

For which source in the model to compute the flux points.

norm_minfloat

Minimum value for the norm used for the fit statistic profile evaluation.

norm_maxfloat

Maximum value for the norm used for the fit statistic profile evaluation.

norm_n_valuesint

Number of norm values used for the fit statistic profile.

norm_valuesnumpy.ndarray

Array of norm values to be used for the fit statistic profile.

sigmaint

Sigma to use for asymmetric error computation.

sigma_ulint

Sigma to use for upper limit computation.

reoptimizebool

Re-optimize other free model parameters.

Attributes Summary

e_groups

Energy grouping table Table

e_ref

energy_range

Methods Summary

run(self, datasets[, steps])

Run the flux point estimator for all energy groups.

Attributes Documentation

e_groups

Energy grouping table Table

e_ref
energy_range

Methods Documentation

run(self, datasets, steps='all')[source]

Run the flux point estimator for all energy groups.

Parameters
datasetslist of SpectrumDataset

Spectrum datasets.

stepslist of str

Which steps to execute. See estimate_flux_point for details and available options.

Returns
flux_pointsFluxPoints

Estimated flux points.