cf.BoundedVariable.sample_size

BoundedVariable.sample_size()[source]

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()
98304.0
>>> f.sample_size().data
<CF Data: 98304.0>