netcdf.renameDim(ncid, dimid, newname)
| Parameter | Description |
|---|---|
| ncid | Open netCDF file or group identifier. |
| dimid | Dimension identifier. |
| dimname | Dimension name. |
| dimlen | Dimension length or NC_UNLIMITED. |
| Parameter | Description |
|---|---|
| none | This function does not return a value. |
netcdf.renameDim exposes low-level dimension metadata.
Dimensions define the shape of variables and can be shared by several variables in the same group.
filename = [tempdir(), 'help_netcdf_renameDim.nc'];
ncid = netcdf.create(filename, netcdf.getConstant('NC_CLOBBER'));
dimid = netcdf.defDim(ncid, 'x', 3);
netcdf.renameDim(ncid, dimid, 'samples');
netcdf.close(ncid);
| Version | Description |
|---|---|
| 2.0.0 | initial version |