@classmethod
def redim(cls, dataset, dimensions):
    """
        Rename coords on the Cube.
        """
    new_dataset = dataset.data.copy()
    for name, new_dim in dimensions.items():
        if name == new_dataset.name():
            new_dataset.rename(new_dim.name)
        for coord in new_dataset.dim_coords:
            if name == coord.name():
                coord.rename(new_dim.name)
    return new_dataset
