cf.Domain.nc_has_geometry_variable

Domain.nc_has_geometry_variable()[source]

Whether a netCDF geometry container variable has a name.

New in version (cfdm): 1.8.0

Returns
bool

True if the netCDF geometry container variable name has been set, otherwise False.

Examples

>>> f.nc_set_geometry_variable('geometry')
>>> f.nc_has_geometry_variable()
True
>>> f.nc_get_geometry_variable()
'geometry'
>>> f.nc_del_geometry_variable()
'geometry'
>>> f.nc_has_geometry_variable()
False
>>> print(f.nc_get_geometry_variable(None))
None
>>> print(f.nc_del_geometry_variable(None))
None