Initial code for diffuse intensity binning