rebin_1D¶
- ompy.rebin_1D(ndarray counts, ndarray mids_in, ndarray mids_out)¶
Rebin an array of counts from binning mids_in to binning mids_out
Assumes equidistant binning.
- Parameters:
counts – Array of counts to be rebinned
mids_in – Array of mid-bins energies giving the calibration of counts_in
mids_out – Array of mid-bins energies of the counts array after rebin
- Returns:
- Array of rebinned counts with calibration
given by mids_out
- Return type:
counts_out