DS-RENAME(1)

NAME
ds-rename - Rename variables and attributes.

SYNOPSIS
ds rename vars input output [options]
ds rename var attrs input output [options]
ds rename { var attrs }... input output [options]

ARGUMENTS

var Variable name, or an array of variable names whose attributes to rename, or none to rename dataset attributes.

vars
    Pairs of old and new variable names as oldvar: newvar. If newattr is none, remove the attribute.

attrs
    Pairs of old and new attribute names as oldattr: newattr. If newattr is none, remove the attribute.

input
    Input file.

output
    Output file.

options
    See help for ds for global options. Note that with this command options can only be supplied before the command name or at the end of the command line.

EXAMPLES
Rename variables time to newtime and temperature to newtemperature in dataset.nc and save the output in output.nc.

    $ ds rename time: newtime temperature: newtemperature dataset.nc output.nc

Rename a dataset attribute title to newtitle in dataset.nc and save the output in output.nc.

    $ ds rename none title: newtitle dataset.nc output.nc

Rename an attribute units of a variable temperature to newunits in dataset.nc and save the output in output.nc.

    $ ds rename temperature units: newunits dataset.nc output.nc