cfdm.Constructs.filter_by_naxes¶
-
Constructs.
filter_by_naxes
(*naxes)[source]¶ Select metadata constructs by the number of domain axis contructs spanned by their data.
New in version 1.7.0.
See also
filter_by_axis
,filter_by_data
,filter_by_key
,filter_by_measure
,filter_by_method
,filter_by_identity
,filter_by_ncdim
,filter_by_ncvar
,filter_by_property
,filter_by_type
,filters_applied
,inverse_filter
,unfilter
Parameters: - naxes: optional
Select constructs whose data spans a particular number of domain axis constructs.
A number of domain axis constructs is given by an
int
.If no numbers are provided then all constructs that have data, spanning any domain axes constructs, are selected.
Returns: Constructs
The selected domain axis constructs and their construct keys.
Examples:
Select constructs that contain data that spans two domain axis constructs:
>>> d = c.filter_by_naxes(2)
Select constructs that contain data that spans one or two domain axis constructs:
>>> d = c.filter_by_ncdim(1, 2)