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