cf.Constructs.domain_axes¶
-
Constructs.
domain_axes
(*identities, **filter_kwargs)[source]¶ Return domain axis constructs.
New in version (cfdm): 1.8.9.0
See also
constructs
- Parameters
- identities:
tuple
, optional Select domain axis 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.Additionally, if for a given
value
,c.filter(filter_by_type=["dimension_coordinate", "auxiliary_coordinate"], filter_by_naxes=(1,), filter_by_identity=(value,))
returns 1-d coordinate constructs that all span the same domain axis construct then that domain axis construct is selected. Seefilter
for details.Additionally, if there is an associated
Field
data array and a value matches the integer position of an array dimension, then the corresponding domain axis construct is selected.If no values are provided then all domain axis 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
- identities:
- Returns
The selected constructs in a new
Constructs
object, unless modified by any filter_kwargs parameters.
Examples: