acdc.predict_dark_level.bin_science
- bin_science(corrtag, b, fact=1, exclude_airglow=False)[source]
Given a corrtag with lists of events as a function of X, Y, and PHA, bin the data into an image using the same bin sizes as the superdark.
- Parameters:
corrtag (str) – Corrtag to bin.
b (dict) – Dictionary that describes the binning information in both the spatial and PHA dimensions. (Only spatial is used)
- Returns:
binned (array) – Binned science image.
nevents (array) – Number of events in each binned pixel.