get_rebinned_axis#

gammapy.estimators.utils.get_rebinned_axis(fluxpoint, axis_name='energy', method=None, **kwargs)[source]#
Get the rebinned axis for resampling

the flux point object along the mentioned axis.

Parameters
fluxpointgammapy.estimators.FluxPoints

The fluxpoint object to rebin

methodstr

The method to resample the axis. Supported options are fixed_bins and min-ts

kwargsDict

keywords passed to get_edges_fixed_bins or get_edges_min_ts if method is fixed-bins, keyword should be group_size if method is min-ts, keyword should be ts_threshold

axis_nameThe axis name to combine along
Returns
axis_newMapAxis or TimeMapAxis

The new axis