get_binned_label#

torusimaging.data.get_binned_label(pos, vel, label, bins, moment='mean', label_err=None, units=None, s=None, s_N_thresh=128)#

Bin the data in pixels of phase-space coordinates (pos, vel) and return the mean (or other moment) of the label values in each pixel.

Parameters:
Returns:

Keys are “pos”, “vel”, “counts”, “label”, and “label_err”.

Return type:

dict