cfdm.core.ParametersDomainAncillaries.has_domain_ancillary¶
-
ParametersDomainAncillaries.
has_domain_ancillary
(domain_ancillary)[source]¶ Whether a domain ancillary has been set.
New in version (cfdm): 1.7.0
- Parameters
- domain_ancillary:
str
The name of the term.
- domain_ancillary:
- Returns
The domain ancillary construct key.
Examples
>>> c = cfdm.core.ParametersDomainAncillaries() >>> 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