cf.Constructs.__call__

Constructs.__call__(*identities)[source]

Select metadata constructs by identity.

Calling a Constructs instance selects metadata constructs by identity and is an alias for the filter_by_identity method.

New in version 1.7.0.

Parameters
identities: optional

See filter_by_identity for details.

Returns
Constructs

The 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_identity for more examples.