Implement all necessary functions to generate a merged data cube