def wrap_data(data):
    if len(data.shape) == 1:
        return data
    elif len(data.shape) == 2:
        return glue_2d(data)
    elif len(data.shape) == 3:
        return glue_3d(data)
    else:
        return data


# dictionary get/put
wrap h5py.highlevel.Dataset objects into a more numpy like object
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/glue.py/wrap_data