mdim_translate function

Convert multidimensional data between different formats, and subset