cf.Field.sample_size

Field.sample_size()[source]

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

Returns a scalar cf.Data object.

f.sample_size() is equivalent to f.data.sample_size(squeeze=True).

New in version 1.0.

Examples:
>>> f.sample_size()
<CF Data: 7008.0>

Previous topic

cf.Field.roll

Next topic

cf.Field.sd

This Page