cf.CoordinateConversion.del_domain_ancillary¶
-
CoordinateConversion.
del_domain_ancillary
(domain_ancillary, default=ValueError())[source]¶ Delete a domain ancillary.
New in version (cfdm): 1.7.0
- Parameters
- Returns
str
The removed domain ancillary key.
Examples:
>>> c = cf.CoordinateConversion() >>> c.set_domain_ancillary('orog', 'domainancillary2') >>> c.has_domain_ancillary('orog') True >>> c.get_domain_ancillary('orog') 'domainancillary2' >>> c.del_domain_ancillary('orog') 'domainancillary2' >>> c.has_domain_ancillary('orog') False >>> print(c.del_domain_ancillary('orog', None)) None >>> print(c.get_domain_ancillary('orog', None)) None