cf.Constructs.__call__¶
-
Constructs.__call__(*identities, **filter_kwargs)[source]¶ Select metadata constructs by identity.
Calling a
Constructsinstance selects metadata constructs by identity and is an alias for thefilter_by_identitymethod. For example, to select constructs that have an identity of ‘air_temperature’:d = c('air_temperature').Note that
c(*identities, **filter_kwargs)is equivalent toc.filter(filter_by_identity=identities, **filter_kwargs).New in version (cfdm): 1.7.0
See also
- Parameters
- identities: optional
Select constructs that have an identity, defined by their
identitiesmethods, that matches any of the given values.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. Also to configure the returned value.New in version (cfdm): 1.8.9.0
- Returns
ConstructsThe selected constructs and their construct keys.
Examples
See
filter_by_identityandfilterfor examples.