def METHOD_NAME(self):
    bin_data = None
    self.Warning.nan_in_image.clear()
    self.Error.invalid_axis.clear()
    self.Error.invalid_block.clear()
    attrs = self.attrs
    if self.data and len(self.data.domain.attributes) and len(attrs):
        if np.any(np.isnan(self.data.X)):
            self.Warning.nan_in_image(np.sum(np.isnan(self.data.X)))
        try:
            bin_data = bin_hyperspectra(self.data, attrs, self.bin_shape)
        except InvalidAxisException as e:
            self.Error.invalid_axis(e.args[0])
        except InvalidBlockShape as e:
            self.Error.invalid_block(e.args[0])
    self.Outputs.bindata.send(bin_data)