cf.Bounds.nc_del_dimension¶
-
Bounds.
nc_del_dimension
(default=ValueError())[source]¶ Remove the netCDF dimension name.
New in version (cfdm): 1.7.0
See also
- Parameters
- default: optional
Return the value of the default parameter if the netCDF dimension name has not been set. If set to an
Exception
instance then it will be raised instead.
- Returns
str
The removed netCDF dimension name.
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