cf.Index.nc_has_variable¶
-
Index.
nc_has_variable
()[source]¶ Whether the netCDF variable name has been set.
New in version 1.7.0.
See also
Returns: Examples:
>>> f.nc_set_variable('tas') >>> f.nc_has_variable() True >>> f.nc_get_variable() 'tas' >>> f.nc_del_variable() 'tas' >>> f.nc_has_variable() False >>> print(f.nc_get_variable(None)) None >>> print(f.nc_del_variable(None)) None