cf.AuxiliaryCoordinate.match_by_naxes¶
- AuxiliaryCoordinate.match_by_naxes(*naxes)[source]¶
Whether or not the data has a given dimensionality.
Added in version 3.0.0.
See also
- Parameters:
- Returns:
bool
Whether or not there is a match.
Examples
>>> f.ndim 3 >>> f.match_by_naxes(3) True >>> f.match_by_naxes(cf.ge(1)) True >>> f.match_by_naxes(1, 2, 3) True >>> f.match_by_naxes(2) False >>> f.match_by_naxes(cf.gt(3)) False