Rename Command

Use this command to rename a dataset. A renamed dataset is a distinct artefact from its parent, so the command:

  1. Assigns a new uuid to the dataset metadata.

  2. Updates the dataset name stored in the recipe metadata to match the new path (the basename of the target without the .zarr extension).

  3. Moves the store from the source path to the target path.

Both the source and target paths must end in .zarr. This command operates on local stores; use the Copy Command for remote stores.

It works for both gridded and tabular datasets, as it only updates the store attributes and moves the directory.

Rename a dataset.

Assign a new UUID, update the dataset name stored in the recipe metadata, and move the store to the new path.

usage: anemoi-datasets rename [-h] [--overwrite] source target

Positional Arguments

source

Path of the dataset to rename (must end in .zarr).

target

New path for the dataset (must end in .zarr).

Named Arguments

--overwrite

Overwrite the target if it already exists.

Default: False