# cf.Constructs.filter_by_naxes¶

Constructs.filter_by_naxes(*naxes)[source]

Select metadata constructs by the number of domain axis constructs spanned by their data.

New in version (cfdm): 1.7.0

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 do or could 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)