cfdm.Field.domain_topologies¶
- Field.domain_topologies(*identities, **filter_kwargs)[source]¶
Return domain topology constructs.
Note that
f.domain_topologies(*identities, **filter_kwargs)is equivalent tof.constructs.filter(filter_by_type=["domain_topology"], filter_by_identity=identities, **filter_kwargs).Added in version (cfdm): 1.11.0.0
See also
- Parameters:
- identities: optional
Select domain topology constructs that have an identity, defined by their
identitiesmethods, that matches any of the given values.If no identities are provided then all domain topology constructs are selected.
A value may be any object that can match via the
==operator, or are.Patternobject that matches via itssearchmethod.Note that in the output of a
dumpmethod orprintcall, a construct is always described by an identity that will select it.- filter_kwargs: optional
Keyword arguments as accepted by
Constructs.filterthat define additional construct selection criteria.
- Returns:
The selected constructs in a new
Constructsobject, unless modified by any filter_kwargs parameters. The returned object will contain no constructs if none were selected.
Examples:
>>> f = cfdm.example_field(8) >>> print(f.domain_topologies()) Constructs: {'domaintopology0': <DomainTopology: 'cell:face(3) >}