cf.Field.remove_data

Field.remove_data()[source]

Remove and return the data array of the field.

Returns :
out : cf.Data or None

The removed data array, or None if there isn’t one.

Examples

>>> f._hasData
True
>>> f.data
<CF Data: [0, ..., 9] m>
>>> f.remove_data()
>>> f._hasData
False

Previous topic

cf.Field.remove_axis

Next topic

cf.Field.remove_item

This Page