cf.Field.remove_data

Field.remove_data()[source]

Remove the fields’s data array in-place, preserving internal consistency.

The field’s units and calendar properties are preserved.

Note that this will never remove a dimension from the field’s domain.

Returns :
out : cf.Data

The removed data array.

Examples

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

Previous topic

cf.Field.override_units

Next topic

cf.Field.select

This Page