Closed hboisgon closed 1 year ago
Hi @hboisgon,
I've pushed an implementation (via .ugrid.rename()
) to main. Note that you can only rename a UgridDataset with a string if the dataset contains a single topology (just like .grid
will raise an error if there are multiple grids). In case of multiple topologies, you will need to provide a dictionary giving the old and new names instead.
It might be useful to have a method to be able to rename the grid.name in xugrid (eg if models have different expected names for their grids).
If it is useful, I implemented the following in hydromt: