def mesh_to_dataset(mesh):
    """
        Generates an xarray dataset out of the mesh attributes; useful for
        merging this with other datarrays to attach mesh information to a
        dataset
        """
