xugrid.UgridDatasetAccessor.rename#

UgridDatasetAccessor.rename(new_name_or_name_dict: str | Dict[str, str]) UgridDataset[source]#

Give a new name to the UGRID topology and update the associated coordinate and dimension names in the Dataset.

Parameters:

new_name_or_name_dict (str or dict) – If the argument is a string, the new name of the topology. This only works if the dataset contains a single UGRID topology. If the argument is a dict, it used as a mapping from old names to new names.