The task hanning allows you to Hanning smooth the velocity of a cube (regardless of which axis it is) and write ou the smoothed data set. Any blanked pixels are treated as zeros.
Having produced the smoothed cube, you could then drop every other channel (as they are no longer independent) with imsub . In the example, we assume the velocity axis is the third axis.