cf.Constructs.__call__¶
-
Constructs.__call__(*identities)[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').New in version (cfdm): 1.7.0
See also
- Parameters
- identities: optional
See
filter_by_identityfor details.
- Returns
ConstructsThe selected constructs and their construct keys.
Examples:
>>> print(c('latitude')) Constructs: {'dimensioncoordinate0': <DimensionCoordinate: latitude(5) degrees_north>} >>> print(c.filter_by_identity('latitude')) Constructs: {'dimensioncoordinate0': <DimensionCoordinate: latitude(5) degrees_north>}
See
filter_by_identityfor more examples.