cf.Field.remove_item

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

Remove and return a domain item from the field.

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

The item may be selected with the keyword arguments. If no unique item can be found then no items are removed and None is returned.

Parameters:
items, kwargs : optional

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

Returns:
out :

The removed item, or None if no unique item could be found.

Examples:

Previous topic

cf.Field.remove_data

Next topic

cf.Field.remove_items

This Page