cf.Field.coordinate_references¶
-
Field.
coordinate_references
(*identities, **filter_kwargs)[source]¶ Return coordinate reference constructs.
New in version (cfdm): 1.7.0
See also
- Parameters
- identities: optional
Select coordinate reference constructs that have an identity, defined by their
identities
methods, that matches any of the given values.Additionally, the values are matched against construct identifiers, with or without the
'key%'
prefix.If no identities are provided then all coordinate reference constructs are selected.
A value may be any object that can match via the
==
operator, or are.Pattern
object that matches via itssearch
method.Note that in the output of a
dump
method orprint
call, a construct is always described by an identity that will select it.- filter_kwargs: optional
Keyword arguments as accepted by
Constructs.filter
that define additional construct selection criteria. Also to configure the returned value.New in version (cfdm): 1.8.9.0
- Returns
The selected constructs in a new
Constructs
object, unless modified by any filter_kwargs parameters. The returned object will contain no constructs if none were selected.
Examples
>>> f.coordinate_references() Constructs: {}
>>> f.coordinate_references() Constructs: {'coordinatereference0': <CF CoordinateReference: atmosphere_hybrid_height_coordinate>, 'coordinatereference1': <CF CoordinateReference: rotated_latitude_longitude>}