cf.Field.sample_size

Field.sample_size()

The number of non-missing data elements in the data array.

See also

collapse, max, mean, mid_range, min, range, sd, sum, var

Examples 1:
>>> d = f.sample_size()
Returns:
out : cf.Data

The number of non-missing data elements in the data array.

Examples 2:
>>> f.data
<CF Data: [[[236.512756348, ..., 256.93371582]]] K>
>>> f.sample_size()
<CF Data: 98304.0>