cf.FieldList.select_by_rank

FieldList.select_by_rank(*ranks)[source]

Select field constructs by the number of domain axis constructs.

New in version 3.0.0.

Parameters
ranks: optional

Define conditions on the number of domain axis constructs.

A condition is one of:

The condition is satisfied if the number of domain axis constructs equals the condition value.

Parameter example:

To see if the field construct has 4 domain axis constructs: 4

Parameter example:

To see if the field construct has at least 3 domain axis constructs: cf.ge(3)

Returns
bool

The matching field constructs.

Examples:

TODO