cfdm.DomainAxis.nc_set_dimension¶
-
DomainAxis.
nc_set_dimension
(value)[source]¶ Set the netCDF dimension name.
If there are any
/
(slash) characters in the netCDF name then these act as delimiters for a group hierarchy. By default, or if the name starts with a/
character and contains no others, the name is assumed to be in the root group.New in version (cfdm): 1.7.0
See also
Examples
>>> f.nc_set_dimension('time') >>> f.nc_has_dimension() True >>> f.nc_get_dimension() 'time' >>> f.nc_del_dimension() 'time' >>> f.nc_has_dimension() False >>> print(f.nc_get_dimension(None)) None >>> print(f.nc_del_dimension(None)) None