cfdm.DomainAxis.nc_set_unlimited

DomainAxis.nc_set_unlimited(value)[source]

Set the unlimited status of the a netCDF dimension.

By default output netCDF dimensions are not unlimited. The status is used by the write function.

New in version (cfdm): 1.7.4

See also

nc_is_unlimited

Parameters
value: bool

The new unlimited status. True and False signify “unlimited” and “not unlimited” repectively.

Returns

None

Examples:

>>> da = f.domain_axis('domainaxis1')
>>> da.nc_is_unlimited()
False
>>> da.nc_set_unlimited(True)
>>> da.nc_is_unlimited()
True
>>> da.nc_set_unlimited(False)
False
>>> da.nc_is_unlimited()
True