cf.Field.first_datum

Field.first_datum

The first element of the data array.

Equivalent to f.subset[(0,)*f.ndim].array.item()

Examples

>>> f.array
array([[1, 2],
       [3, 4]])
>>> f.first_datum
1

Previous topic

cf.Field._FillValue

Next topic

cf.Field.is_scalar

This Page