cfdm.Domain.nc_set_mesh_variable¶
- Domain.nc_set_mesh_variable(value)[source]¶
Set the netCDF mesh variable 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.Added in version (cfdm): 1.13.1.0
Examples
>>> f.nc_set_mesh_variable('mesh1') >>> f.nc_has_mesh_variable() True >>> f.nc_get_mesh_variable() 'mesh1' >>> f.nc_del_mesh_variable() 'mesh1' >>> f.nc_has_mesh_variable() False >>> print(f.nc_get_mesh_variable(None)) None >>> print(f.nc_del_mesh_variable(None)) None