cf.Field.remove_items

Field.remove_items(items=None, **kwargs)[source]

Remove and return domain items from the domain.

An item is either a dimension coordinate, an auxiliary coordinate, a cell measure or a transform object of the domain.

By default all items of the domain are removed, but particular items may be selected with the keyword arguments.

Parameters :
items, kwargs : optional

Select the items which would be selected by this call of the field’s items method: f.items(items, **kwargs). See cf.Field.items for details.

Returns :
out : list

The removed items. The list may be empty.

Examples

Previous topic

cf.Field.remove_item

Next topic

cf.Field.roll

This Page