cfdm.core.Domain.del_construct¶
- Domain.del_construct(key, default=ValueError())[source]¶
Remove a metadata construct.
If a domain axis construct is selected for removal then it can’t be spanned by any data arrays of the metadata constructs. However, a domain ancillary construct may be removed even if it is referenced by coordinate reference construct.
Added in version (cfdm): 1.9.0.0
See also
- Parameters:
- Returns:
The removed metadata construct.
Examples
>>> f.del_construct('auxiliarycoordinate2') <AuxiliaryCoordinate: latitude(111, 106) degrees_north> >>> f.del_construct('auxiliarycoordinate2') ValueError: Can't get remove non-existent construct >>> f.del_construct('auxiliarycoordinate2', default=False) False