cf.Constructs.filter_by_data

Constructs.filter_by_data()[source]

Select metadata constructs by whether they could contain data.

Selection is not based on whether they actually have data, rather by whether the construct supports the inclusion of data. For example, constructs selected by this method will all have a get_data method.

New in version (cfdm): 1.7.0

Returns
Constructs

The selected constructs and their construct keys.

Examples:

Select constructs that could contain data:

>>> d = c.filter_by_data()