function [arr, dim_labels, dim_values] = cosmo_unflatten(ds, dim, varargin)
cosmo type hdr
cosmo vol coordinates hdr