cf.Field._del_quantization¶
- Field._del_quantization(default=ValueError())[source]¶
Remove quantization metadata.
Quantization eliminates false precision, usually by rounding the least significant bits of floating-point mantissas to zeros, so that a subsequent compression on disk is more efficient.
Quantization metadata describes any existing quantization that has already been applied to the data. Removing the quantization metadata does not change the data in any way. If the data has in fact already been quantized, then it is up to the user to set new quantization metadata to describe this, with
_set_quantization
.Added in version (cfdm): 1.12.2.0
- Parameters:
- default: optional
Return the value of the default keyword if there is no quantization metadata.
If set to an
Exception
instance then it will be raised instead.
- Returns:
Quantization
The deleted quantization metadata.
Examples
>>> f.get_quantization() <CF Quantization: algorithm=bitgroom, quantization_nsd=4> >>> q = f._del_quantization() >>> print(f.get_quantization(None)) None >>> f._set_quantization(q) >>> f.get_quantization(None) <CF Quantization: algorithm=bitgroom, quantization_nsd=4>