Multidimensional histogram from 3d file using a single bin per x/y/z element to do a query