barray function

Convert 3d array of CATA data to 4d array of CATA differences