BinnedDataAxis

class gammapy.utils.nddata.BinnedDataAxis(lo, hi, **kwargs)[source]

Bases: gammapy.utils.nddata.DataAxis

Data axis for binned data

Parameters:

lo : Quantity

Lower bin edges

hi : Quantity

Upper bin edges

name : str, optional

Axis name, default: ‘Default’

interpolation_mode : str {‘linear’, ‘log’}

Interpolation behaviour, default: ‘linear’

Attributes Summary

bin_width Bin width
bins Bin edges
nodes Evaluation nodes.

Methods Summary

lin_center() Linear bin centers
log_center() Logarithmic bin centers
logspace(emin, emax, nbins[, unit])

Attributes Documentation

bin_width

Bin width

bins

Bin edges

nodes

Evaluation nodes.

Depending on the interpolation mode, either log or lin center are returned

Methods Documentation

lin_center()[source]

Linear bin centers

log_center()[source]

Logarithmic bin centers

classmethod logspace(emin, emax, nbins, unit=None, **kwargs)[source]