cf.FieldList.size

FieldList.size

The size attribute for each field.

fl.size is equivalent to cf.List(f.size for f in fl).

See cf.Field.size for details.

Returns :
out : cf.List of ints

The number of data array elements for each field.

Examples

>>> fl.shape
[(73, 96), (), (12, 19, 96, 73)]
>>> fl.size
[7008, 1, 1597824]

Previous topic

cf.FieldList.shape

Next topic

cf.FieldList.sum

This Page