cf.Field.nc_has_geometry_variable

Field.nc_has_geometry_variable()[source]

Whether the netCDF geometry container variable name has been set.

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