cf.Field.last_datum

Field.last_datum

The last element of the data array.

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

Examples

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

Previous topic

cf.Field.is_scalar

Next topic

cf.Field.mask

This Page